Using 7z 9.20 with sfx addon 9.20. What I do is to create my archive, create a sfx wich when run shold extract its contents to a tempdir and run a program contained in the archive and should wait before delteing the temp files until the exe is closed:
cd CD_Image_2008
; here is the autorun.exe, so the archive should not caontain the parent path
; autorun needs in total 4 other files to be read
c:\programme\7-zip\7z.exe a -mx=0 ..\nuts_2008.7z
cd ..
However, this does not work. It seems as if the autorun is executed, but at the same time the temp dir is removed, so autorun can not read the files and terminates with an error.
What am I missing?
Brgds Bernd
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can find the prefix nowait, however this seems to be the opposite of what I want. As wait is the default, I am unsure wheter these modfied modules will help.
Can you direct my what is my problem and why these modules can hel me?
Tx!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I use InstallDir with a valid path, verything works ok. If I extract to a temp dir, the call to RunProgram fails.
When is the conent of the temp dir deleted?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi + tx for any info.
Using 7z 9.20 with sfx addon 9.20. What I do is to create my archive, create a sfx wich when run shold extract its contents to a tempdir and run a program contained in the archive and should wait before delteing the temp files until the exe is closed:
cd CD_Image_2008
; here is the autorun.exe, so the archive should not caontain the parent path
; autorun needs in total 4 other files to be read
c:\programme\7-zip\7z.exe a -mx=0 ..\nuts_2008.7z
cd ..
copy /b c:\programme\7-zip\sfx\7zS.sfx + CreateSFX.txt + nuts_2008.7z nuts_2008.exe
The CreateSFX.txt is:
;!@Install@!UTF-8!
Title="nut.s nutritional.software"
RunProgram="autorun.exe"
;!@InstallEnd@!
However, this does not work. It seems as if the autorun is executed, but at the same time the temp dir is removed, so autorun can not read the files and terminates with an error.
What am I missing?
Brgds Bernd
1 Download modified module here
2 Please read about prefix forcenowait
Full description contains only Russian part of site
I can find the prefix nowait, however this seems to be the opposite of what I want. As wait is the default, I am unsure wheter these modfied modules will help.
Can you direct my what is my problem and why these modules can hel me?
Tx!
http://7zsfx.info/ru/prefixes.html#forcenowait
tx for this. But still: Why should a NOWAIT help me?
When I use InstallDir with a valid path, verything works ok. If I extract to a temp dir, the call to RunProgram fails.
When is the conent of the temp dir deleted?
waitall did the trick.
tx a lot!