Jump to content

How to make a 7-Zip Switchless Installer


keytotime

Recommended Posts

dose it go in the 7zs.sfx file ??? and if so what do I open file with.

Yes : google for "ResHacker" (or another resource editing tool)

(but the guide you quoted should have said : "go to Dialog→500→1033 ; click once on the fake cancel button, then press DEL" same effect, but really easier :lol: )

Link to comment
Share on other sites

  • 4 weeks later...

sorry guys, i understand and realize my first 7z unattended program but if i have a situation like this that always worked using the cmd install:

ECHO.

ECHO [bETTER FILE RENAME]ECHO wait...

start /wait %systemdrive%\install\bfr.exe /VERYSILENT /SP-

ECHO wait...

REGEDIT /S %systemdrive%\install\Registri\bfr_register.reg

ECHO fatto!

how can i do for creating a 7z archive??

I tried like this but don't work:

* a 7z archive with my exe

* a config file with only this:

CLS

@echo off

start /wait %systemdrive%\install\bfr.exe /VERYSILENT /SP-

REGEDIT /S %systemdrive%\install\Registri\bfr_register.reg

EXIT

* and a config.txt with this:
;!@Install@!UTF-8!

RunProgram="bfr.cmd"

;!@InstallEnd@!

and tring to complete the archive with "copy /b 7zs.sfx + config.txt + bfr.7z bfr.exe"

where i was wrong??

Link to comment
Share on other sites

where i was wrong??

Nowhere. You did exactly what you were willing to do. :P

BUT 7z SFX modules are unable to launch .cmd files (only .exe), and they are unable to launch a .exe that is not inside the archive.

So, to launch your .cmd, you'll need to include in your archive a .exe that will launch it :wacko:

search for "startx.exe" here, DL it, put it inside the 7z and modify the config.txt :

;!@Install@!UTF-8!

RunProgram="StartX.exe /WAIT /B \"bfr.cmd\""

;!@InstallEnd@!

StartX is a tool similar to the "start" command of cmd.exe. Little explanation :

/WAIT switch to make startx wait until the end of the .cmd execution (without this switch startx will return immediately and 7zSFX will delete everything before .cmd execution)

/B switch to run the .cmd in backgound, without any window visible (similar to CMDOW inside the batch, but the windows will not flash)

\" escape sequences for quotes, they must be present even if your batch file name doesn't have spaces

nota: i don't know if RunProgram= is case sensitive, so you should use the correct case...

++

Link to comment
Share on other sites

  • 3 weeks later...

bfr.exe

tnx i will try soon

You can try ExeScript from www.hide-folder.com

It can converts batch files (.bat), Visual Basic and Java

scripts to executable files (.exe)

download the attachement as an example for your cmd

CLS
@echo off

start /wait %systemdrive%\install\bfr.exe /VERYSILENT /SP-
REGEDIT /S %systemdrive%\install\Registri\bfr_register.reg

EXIT

and edit your config.txt like below:

;!@Install@!UTF-8!
RunProgram="bfr.exe"
;!@InstallEnd@!

Nice try.

Link to comment
Share on other sites

I don't know if anyone noticed, but the config.txt also has an other syntax:

ID_String="Value"

Title: Title for messages

BeginPrompt: Begin Prompt message

Progress: Value can be "yes" or "no". Default value is "yes".

RunProgram: Command for executing. Default value is "setup.exe".

Substring %%T will be replaced with path to temporary

folder, where files were extracted

Directory: Directory prefix for "RunProgram". Default value is "..\\"

ExecuteFile: Name of file for executing

ExecuteParameters: Parameters for "ExecuteFile"

You can omit any values.

Example:

;!@Install@!UTF-8!
Title="7-Zip 4.42"
BeginPrompt="Do you want to install 7-Zip 4.42?"
ExecuteFile="msiexec.exe"
ExecuteParameters="/i 7zip.msi REINSTALL=ALL REINSTALLMODE=vomus"
;!@InstallEnd@!

Edited by Glowy
Link to comment
Share on other sites

wow ok so I thought msietub.exe or startX wasn't needed and tried this:

;!@Install@!UTF-8!
Title="Shockwave"
Progress="no"
ExecuteFile="msiexec.exe"
ExecuteParameters="/i shockwave.msi /qn"
;!@InstallEnd@!

did the copy command and tested: after extracting it says cannot find Setup.exe.

And I don't think it will work since it will try to find msiexec.exe in the 7z extracted folder..

Edited by ZileXa
Link to comment
Share on other sites

BUT 7z SFX modules are unable to launch .cmd files (only .exe),

Funny but all my sfx installers launch a .cmd from config.txt without the help from an .exe.

;!@Install@!UTF-8!

RunProgram="install.cmd"

;!@InstallEnd@!

maybe I have a special computer that allows it?

;-)

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...