RogueSpear uses a custom SFX module, which can be found here:
http://www.msfn.org/board/index.php?showtopic=101552That module allows the parameters required for Multimode installers.
Now just open up a console and run the following on any RogueSpear Multimode installer.
- Code: Select all
file.exe -sfxconfig ".\config.txt"
That will put "config.txt" in the working directory (you can extract it anywhere you wish, of course).
RogueSpear uses one of the following commands to create his 7zip archives:
- Code: Select all
7za a -t7z -m0=lzma -mx=9 -mmt=off -m0=LZMA:d27:fb=128:mc=256 -r "file.7z" "file\*"
or
- Code: Select all
7za a -t7z -m0=lzma -mx=9 -mmt=off -m0=BCJ2 -m1=LZMA:d27:fb=128:mc=256 -m2=LZMA:d24:fb=128:mc=256 -m3=LZMA:d24:fb=128:mc=256 -mb0:1 -mb0s1:2 -mb0s2:3 -r "file.7z" "file\*"
The top one is best when compressing lots of text files and whatnot. The bottom one is far more suitable for compressing PE files like DLLs, EXEs, etcetera. In general, he uses the bottom one.
Now you merge that config.txt, the 7zip archive, and the abovementioned 7zip SFX module the same way you would for any command-line creation of a 7zip SFX.
- Code: Select all
COPY /b "7zsd.sfx" + "config.txt" + "file.7z" "file.exe"