This looks like just the thing I need. I have a setup (multi file/directories) that I want to distribute as 1 file so I tried this.
I get a problem though. When my setup application should start to copy files that was included in the 7z file it says it can't find the files.
So, I started to look at this. I run my SFX exe which I created like this:
;!@Install@!UTF-8! GUIMode="2" RunProgram="MyApp\setup.exe" ;!@InstallEnd@!
copy /b 7zsd_All.sfx + config.txt + MySetup.7z Test.exe
I then run test.exe and it takes a while (a lot of files) and at the same time I go to my users temp folder and see that it is decompressing all the files into a 7ZipSfx.000 directory.
Everything perfect so far!
Then it automatically starts my setup.exe and I click through my setup steps. Then the setup comes to the stage when it should start copying files and I get my error message which says that it can't find a file it should copy.
I now look at the temp directory and see that most of the files that were decompressed are gone, only a number of files starting with "_" are left behind and the setup.exe hasn't even finished its "thing" yet.
Any ideas what's going on, why it is removing the files before the setup has finished and how to get around this problem?
I'm doing this on a Windows 7 computer but the same thing happens on Windows Vista. Have not tested it on an XP machine.