odar Posted May 4, 2013 Posted May 4, 2013 (edited) this reg file for create module sfx.exe to context menu right clic7zsfx3.regadd 3 voicecreate 7z archive (folder compress in 7z)create sfx (folder container module 7zs*.sfx + file conf*.txt + file *.7z)create sfx folder (module sfx + file config.txt in folder compress and convert in sfx)file (win_7_8_contexmenu_ 7zsfx.7z for win 7-8 reg) file in context menu in cascade mode work in window 7 and windows 8 (x86 x64)win_7_8_contexmenu_ 7zsfx.7z Edited May 24, 2013 by odar
c0nfuser Posted June 9, 2013 Posted June 9, 2013 Hello,I would like to ask if is possible to propagate the exit code of "myprogram.exe" when the sfx file finish? ;!@Install@!UTF-8!GUIMode="2"RunProgram="myprogram.exe"Autoinstall="myprogram.exe";!@InstallEnd@!For example if myprogram.exe will exit with code 9 I want sfx file to return the same code.Thank you,c0nf
gora Posted June 9, 2013 Posted June 9, 2013 ;!@Install@!UTF-8!GUIMode="2"RunProgram="hidcon:cmd /c myprogram.exe & Echo %ErrorLevel% >\"%%S\\Errorlog.txt\""Autoinstall="hidcon:cmd /c myprogram.exe & Echo %ErrorLevel% >\"%%S\\Errorlog.txt\"";!@InstallEnd@!
c0nfuser Posted June 9, 2013 Posted June 9, 2013 ;!@Install@!UTF-8!GUIMode="2"RunProgram="hidcon:cmd /c myprogram.exe & Echo %ErrorLevel% >\"%%S\\Errorlog.txt\""Autoinstall="hidcon:cmd /c myprogram.exe & Echo %ErrorLevel% >\"%%S\\Errorlog.txt\"";!@InstallEnd@!Hi gora,thank you for your answer,I can't test it for the moment to be sure so just to clarify for the forum operation ,is this command will just print the Exit code in the error.txt file or will propagate it also in the exit code of my sfx file?Cheers,c0nf
alfreire Posted June 9, 2013 Posted June 9, 2013 (edited) Hello,I would like to ask if is possible to propagate the exit code of "myprogram.exe" when the sfx file finish? ;!@Install@!UTF-8!GUIMode="2"RunProgram="myprogram.exe"Autoinstall="myprogram.exe";!@InstallEnd@!For example if myprogram.exe will exit with code 9 I want sfx file to return the same code.Thank you,c0nfI think understand your question, but don't understand why...? can you explain me...?Regards... ;-) Edited June 9, 2013 by alfreire
bphlpt Posted June 10, 2013 Posted June 10, 2013 AFAIK, gora's solution will only log the error code. Your code will then have to read it to find out what it was.Cheers and Regards
c0nfuser Posted June 10, 2013 Posted June 10, 2013 I think understand your question, but don't understand why...? can you explain me...?Regards... Because I am running a script inside the script. The first script will execute the main sfx.exe and will wait for a specific exit codes in order to Report the system that execution of "myprogram.exe" (program inside the sfx.exe) was executed with or without errors. Cheers,c0nf
gora Posted June 10, 2013 Posted June 10, 2013 (edited) or will propagate it also in the exit code of my sfx file?No. The module will return only your own exit code. Edited June 10, 2013 by gora
Oleg_Sch Posted June 10, 2013 Author Posted June 10, 2013 No. The module will return only your own exit code.Correction: it's (module's) exit code.At now no way to return external program exit code.
j7n Posted June 12, 2013 Posted June 12, 2013 Is it possible to add a vertical scroll bar to the control containing BeginPrompt text to display more text in it than fits in the dialog (description of the archive contents, usage of the software in it, etc.)?I am considering migrating to SevenZip from WinRar to use a larger compression dictionary, and need this functionality that's present in WinRar SFX modules (both old ones and new ones that call a MSIE window to show the text).Sample screenshot
c0nfuser Posted June 12, 2013 Posted June 12, 2013 No. The module will return only your own exit code.Correction: it's (module's) exit code.At now no way to return external program exit code.Thank you for the clarification. It would be amazing if you can include this option in the feature. Cheers,c0nf
Forseti Posted September 20, 2013 Posted September 20, 2013 For ProgramData:cmd /c Del /F /S /Q "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Test\Test.lnk";!@Install@!UTF-8!RunProgram="Setup.exe /S"RunProgram="hidcon:cmd /c del /F /S /Q ?????????????????????????????\Test.lnk"GUIMode="2";!@InstallEnd@!For AppData:cmd /c Del /F /S /Q "C:\Users\Test\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Test\Test.lnk";!@Install@!UTF-8!RunProgram="Setup.exe /S"RunProgram="hidcon:cmd /c del /F /S /Q ???????????????????????\Test.lnk"GUIMode="2";!@InstallEnd@!how to remove shortcuts? please help!
gora Posted September 20, 2013 Posted September 20, 2013 SfxFolder23=C:\ProgramData\Microsoft\Windows\Start Menu\ProgramsSfxFolder02=C:\Users\gora\AppData\Roaming\Microsoft\Windows\Start Menu\Programs;!@Install@!UTF-8!RunProgram="Setup.exe /S"Delete="%SfxFolder23%\\Test\\Test.lnk"GUIMode="2";!@InstallEnd@!;!@Install@!UTF-8!RunProgram="Setup.exe /S"Delete="%SfxFolder02%\\Test\\Test.lnk"GUIMode="2";!@InstallEnd@!
Escorpiom Posted January 14, 2014 Posted January 14, 2014 Is it possible for someone to post a link to the latest 7z SFX Tools (1.6 develop build 2712 December 30, 2012)?It seems the file is offline, getting a 404.Cheers.
Oleg_Sch Posted February 11, 2014 Author Posted February 11, 2014 http://svn.7zsfx.org/filedetails.php?repname=7zSfxMod&path=%2Ftags%2F1.6.0.2712%2Fbin%2F7zsd_160_2712.7z
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now