jeudi 26 février 2015

SFX with 7-zip : Is it possible to run a included .bat file *before* extracting the files?

I'm creating a SFX executable with 7-zip (command line version) and the 7zsd.sfx module. My current config file looks like this :



;!@Install@!UTF-8!
Title="Test"
BeginPrompt="Test"
CancelPrompt="Do you want to cancel the extraction?"
ExtractDialogText="Please, wait..."
ExtractPathText="Please, enter the extraction path:"
ExtractTitle="Extracting..."
GUIFlags="8+32+64+256+4096"
GUIMode="1"
InstallPath="%%S"
RunProgram="test2.bat"
;!@InstallEnd@!


Is it possible to run a program before extracting the files? Currently, test2.bat is ran once the files are extracted. I'd like :




  • The user click "OK"




  • test1.bat is executed




  • Files are extracted




  • test2.bat is executed




Using WinRAR's SFX, there is a presetup option. Is there something similar using 7-zip and 7zsd.sfx?


Aucun commentaire:

Enregistrer un commentaire