odar Posted May 4, 2013 Share 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 Link to comment Share on other sites More sharing options...
c0nfuser Posted June 9, 2013 Share 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 Link to comment Share on other sites More sharing options...
gora Posted June 9, 2013 Share 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@! Link to comment Share on other sites More sharing options...
c0nfuser Posted June 9, 2013 Share 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 Link to comment Share on other sites More sharing options...
alfreire Posted June 9, 2013 Share 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 Link to comment Share on other sites More sharing options...
bphlpt Posted June 10, 2013 Share 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 Link to comment Share on other sites More sharing options...
c0nfuser Posted June 10, 2013 Share 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 Link to comment Share on other sites More sharing options...
gora Posted June 10, 2013 Share 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 Link to comment Share on other sites More sharing options...
Oleg_Sch Posted June 10, 2013 Author Share 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. Link to comment Share on other sites More sharing options...
j7n Posted June 12, 2013 Share 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 Link to comment Share on other sites More sharing options...
c0nfuser Posted June 12, 2013 Share 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 Link to comment Share on other sites More sharing options...
Forseti Posted September 20, 2013 Share 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! Link to comment Share on other sites More sharing options...
gora Posted September 20, 2013 Share 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@! Link to comment Share on other sites More sharing options...
Escorpiom Posted January 14, 2014 Share 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. Link to comment Share on other sites More sharing options...
Oleg_Sch Posted February 11, 2014 Author Share Posted February 11, 2014 http://svn.7zsfx.org/filedetails.php?repname=7zSfxMod&path=%2Ftags%2F1.6.0.2712%2Fbin%2F7zsd_160_2712.7z Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now