prometheus0ne Posted March 5, 2013 Posted March 5, 2013 I have been playing with 7zip SFX module and I'm looking for a way to give the executable a path to extract to, and do so silently. Does anyone know how I might achieve this?
allen2 Posted March 5, 2013 Posted March 5, 2013 To my knowledge, there isn't any command line switch to specify the folder but there is a way to do almost the same: you need to use the installpath with an environment variable. For example, you set it to %7zipsfxinstallpath% when creating the sfx; next, before auto-extracting it, you just need to do a set 7zipsfxinstallpath= to the value you wanted before launching the 7zip sfx.
Geej Posted March 5, 2013 Posted March 5, 2013 try this sample config;!@Install@!UTF-8!GUIMode="2"OverwriteMode="0"InstallPath="%programfiles%\\KLOCKS"Shortcut="T,{%%T\\KLOCKSNumOn.exe},{},{},{NumLock On},{numlockon}";!@InstallEnd@!It will put whatever files you have wrapped up to %programfiles%\Klocks when you run it silently
allen2 Posted March 5, 2013 Posted March 5, 2013 try this sample config;!@Install@!UTF-8!GUIMode="2"OverwriteMode="0"InstallPath="%programfiles%\\KLOCKS"Shortcut="T,{%%T\\KLOCKSNumOn.exe},{},{},{NumLock On},{numlockon}";!@InstallEnd@!It will put whatever files you have wrapped up to %programfiles%\Klocks when you run it silentlyOf course using %programfiles% make sense if you want to extract always in "c:\program files" but it lose ability to extract to a complete different folder if needed. Also i wouldn't put the program folder (in your example KLOCKS) in the installpath variable and create the archive with the folder (not only with what is inside the folder).
Geej Posted March 5, 2013 Posted March 5, 2013 @allen2The Op just want an example "a way to give the executable a path to extract to, and do so silently."I just provide some sample for him. Not a specific config.txtHe can always adjust at his end what he wants etc etc etc Cheers
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now