Jump to content

7z SFX Modified Module and Tools


Oleg_Sch

Recommended Posts

1-One question, how I can make a 7zsfx with hidden files...? I can do with password, but I just want the password to prevent decompression, and not for install, as in Button setup by Gora...

Read here

FAQ, item 2

Now I look... thanks... :lol:

Excuse my stupidity, can not find it... :blushing:

Edited by alfreire
Link to comment
Share on other sites


 
RunProgram="x86:NotepadReplacer116.exe /NOTEPAD=\"%programfiles%\\Notepad++\\notepad++.exe\" /VERYSILENT"
RunProgram="x64:NotepadReplacer116.exe /NOTEPAD=\"%programfiles(x86)%\\Notepad++\\notepad++.exe\" /VERYSILENT"

These two lines are equivalent to a single line (for x86 modules):

 
RunProgram="NotepadReplacer116.exe /NOTEPAD=\"%programfiles%\\Notepad++\\notepad++.exe\" /VERYSILENT"

Link to comment
Share on other sites

 
RunProgram="x86:NotepadReplacer116.exe /NOTEPAD=\"%programfiles%\\Notepad++\\notepad++.exe\" /VERYSILENT"
RunProgram="x64:NotepadReplacer116.exe /NOTEPAD=\"%programfiles(x86)%\\Notepad++\\notepad++.exe\" /VERYSILENT"

These two lines are equivalent to a single line (for x86 modules):

 
RunProgram="NotepadReplacer116.exe /NOTEPAD=\"%programfiles%\\Notepad++\\notepad++.exe\" /VERYSILENT"

Just a little typo error inside your config.txt: check it!

There is no error in config.txt, error by copy/paste... X-D

;!@InstallEnd@!

Cheers

Thanks again... :rolleyes:

Edited by alfreire
Link to comment
Share on other sites

 
RunProgram="x86:NotepadReplacer116.exe /NOTEPAD=\"%programfiles%\\Notepad++\\notepad++.exe\" /VERYSILENT"
RunProgram="x64:NotepadReplacer116.exe /NOTEPAD=\"%programfiles(x86)%\\Notepad++\\notepad++.exe\" /VERYSILENT"

These two lines are equivalent to a single line (for x86 modules):

 
RunProgram="NotepadReplacer116.exe /NOTEPAD=\"%programfiles%\\Notepad++\\notepad++.exe\" /VERYSILENT"

Just a little typo error inside your config.txt: check it!

;!@InstallEnd@!

Cheers

There is no error in config.txt, error by copy/paste... X-D

Thanks again... :rolleyes:

Link to comment
Share on other sites

1-One question, how I can make a 7zsfx with hidden files...? I can do with password, but I just want the password to prevent decompression, and not for install, as in Button setup by Gora...

Read here

FAQ, item 2

Now I look... thanks... :lol:

Excuse my stupidity, can not find it... :blushing:

I found it... sorry and thanks... :yes:

Edited by alfreire
Link to comment
Share on other sites

Just a little typo error inside your config.txt: check it!

;!@InstallEnd@!

Cheers

There is no error in config.txt, error by copy/paste... X-D

However the error is inside your post and not corrected on this thread! :)

Enjoy!

Corrected now... :lol:

Regards and thanks again... :rolleyes:

Link to comment
Share on other sites

Other question... :whistle: How to work with spaces in name of exe file...? any trick...? Obviously I can rename the file, but I just want to learn... :lol:

RunProgram="Firefox Setup 16.0b3.exe /S"

Regards... ;-)

Edited by alfreire
Link to comment
Share on other sites

Firefox is already an SFX file!

Silent switch is: -ms

You can use 7ZSplit.exe to open Firefox and see how it was created!

Example:

Firefox Setup 15.0.1.txt


;!@Install@!UTF-8!
Title="Mozilla Firefox"
RunProgram="setup.exe"
;!@InstallEnd@!

And you can try to add inside your customized config file:

RunProgram="\"%%T\\setup.exe\" -ms"

Edited by myselfidem
Link to comment
Share on other sites

Firefox is already an SFX file!

Silent switch is: -ms

You can use 7ZSplit.exe to open Firefox and see how it was created!

Example:

Firefox Setup 15.0.1.txt


;!@Install@!UTF-8!
Title="Mozilla Firefox"
RunProgram="setup.exe"
;!@InstallEnd@!

And you can try to add inside your customized config file:

RunProgram="\"%%T\\setup.exe\" -ms"

Wow... i dont kwow this... :w00t: but need aswer to my question, the spaces in names... :rolleyes:

Thanks, I pay another beer for you... :lol:

Link to comment
Share on other sites

Wow... i dont kwow this... :w00t: but need aswer to my question, the spaces in names... :rolleyes:

Thanks, I pay another beer for you... :lol:

I'm waiting for the first beer ! :D

Firefox seems not to be a good example, like I show you is already an SFX file!

Tip: unpack Firefox and do the same for others programs, if you want...

However filenames containing spaces must be properly enclosed in quotes.

For 'RunProgram' and all 'AutoInstall' parameters you CAN/MUST enclose the path to the executable along with its name in quotes.You CAN do so, even if the path and file name DO NOT contain spaces. You MUST do so, if the path or/and file name CONTAIN spaces. This is due to the fact that the full path is formed AFTER expanding the variables.

Edited by myselfidem
Link to comment
Share on other sites

Wow... i dont kwow this... :w00t: but need aswer to my question, the spaces in names... :rolleyes:

Thanks, I pay another beer for you... :lol:

I'm waiting for the first beer ! :D

Firefox seems not to be a good example, like I show you is already an SFX file!

Tip: unpack Firefox and do the same for others programs, if you want...

However filenames containing spaces must be properly enclosed in quotes.

For 'RunProgram' and all 'AutoInstall' parameters you CAN/MUST enclose the path to the executable along with its name in quotes.You CAN do so, even if the path and file name DO NOT contain spaces. You MUST do so, if the path or/and file name CONTAIN spaces. This is due to the fact that the full path is formed AFTER expanding the variables.

Thanks again, friend... :hello:

Link to comment
Share on other sites

How to add context menus on a folder with right click to create an Archive .7z customized and an .exe file with 7-Zip and SFX modified module?

Using this reg file works fine for me!

7zSFX.reg


Windows Registry Editor Version 5.00

; © myselfidem le 30/09/2012
; Right click context menu to create an exe file or archive 7z
; 7-Zip 9.20 must be installed on your computer
; Create your folder with all files needed first
; Select your folder and right click to create your customized 7z archive or exe file
; CAUTION: only one file .sfx and .txt and .7z must be inside the folder!
; Give the name you need to your folder to have 7z archive and exe file output names
; Available for x86 or x64 sfx modified modules
; The command prompt will be closed after 3 seconds

[HKEY_CLASSES_ROOT\Directory\shell\7zSFX]
"MUIVerb"="Create SFX file"
"NoWorkingDirectory"=""
"Icon"="C:\\Program Files\\7-Zip\\7zG.exe, 0"
"Extended"=-
[HKEY_CLASSES_ROOT\Directory\shell\7zSFX\command]
@="cmd.exe /c cd/d \"%1\" && cmd.exe /c copy /b /y *.sfx + *.txt + *.7z \"%1\".exe && move /y \"%1\".exe \"%1\" && ping /n 3 127.0.0.1 >nul"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\7zSFX]
"MUIVerb"="Create SFX file"
"NoWorkingDirectory"=""
"Icon"="C:\\Program Files\\7-Zip\\7zG.exe, 0"
"Extended"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\7zSFX\command]
@="cmd.exe /c cd/d \"%1\" && cmd.exe /c copy /b /y *.sfx + *.txt + *.7z \"%1\".exe && move /y \"%1\".exe \"%1\" && ping /n 3 127.0.0.1 >nul"

[HKEY_CLASSES_ROOT\Directory\shell\7z]
"MUIVerb"="Create Archive 7z"
"NoWorkingDirectory"=""
"Icon"="C:\\Program Files\\7-Zip\\7zG.exe, 0"
"Extended"=-
[HKEY_CLASSES_ROOT\Directory\shell\7z\command]
@="cmd.exe /c cd/d \"%1\" && cmd.exe /c 7z.exe a -t7z -mx9 -y \"%1\".7z && move /y \"%1\".7z \"%1\" && ping /n 3 127.0.0.1 >nul"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\7z]
"MUIVerb"="Create Archive 7z"
"NoWorkingDirectory"=""
"Icon"="C:\\Program Files\\7-Zip\\7zG.exe, 0"
"Extended"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\7z\command]
@="cmd.exe /c cd/d \"%1\" && cmd.exe /c 7z.exe a -t7z -mx9 -y \"%1\".7z && move /y \"%1\".7z \"%1\" && ping /n 3 127.0.0.1 >nul"

Thanks to improve this reg file!

Cheers

*Edit: updated

7zSFX_Install.rar

Edited by myselfidem
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...