keytotime

How to make a 7-Zip Switchless Installer

288 posts in this topic

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: )

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
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...

++

0

Share this post


Link to post
Share on other sites

may be someone will encounter with the same problem ı did! so dont use "quick batch file compiler" with 7zip if u install applications in svcpack! coz it ****s up! just let u know :D thats all!

0

Share this post


Link to post
Share on other sites
"quick batch file compiler"

US$39.95 :whistle:

Edited by Delprat
0

Share this post


Link to post
Share on other sites

and how can i do to install first a silent program and immediatly after overwrite some files or just put in the program folder some files?? aaargh so difficult!!!

0

Share this post


Link to post
Share on other sites
:hello: How do I use this with an inf file, I have two drivers that I would like to build a switchless installer for? :hello: , John
0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
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
0

Share this post


Link to post
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
0

Share this post


Link to post
Share on other sites

that's true..

I bluntly copy pasted it. :blushing:

it works, just not for msiexec

0

Share this post


Link to post
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?

;-)

0

Share this post


Link to post
Share on other sites
maybe I have a special computer that allows it?

;-)

maybe i had a special version of 7-zip that disallow it... more that one month ago... there were some updates...

OMG, i feeded the troll :rolleyes:

0

Share this post


Link to post
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.