• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
keytotime

How to make a 7-Zip Switchless Installer

288 posts in this topic

I used startx becuase it is free and i know that o some machines batch files converted using quick batch file coverter does not work. My machine being one of them :whistle: . Also startx compressed with upx is 90Kb while your installer.exe for office is 144. I atached the compressed startx in my original post.

WHERE CAN I GET THE STARTX.EXE ?... NOT FOUND IN FIRST POST

0

Share this post


Link to post
Share on other sites

And what about the applications, that don't need to be installed? I mean when it's enough only to extract them and create shortcuts?

How to tell the modified 7zS.sfx where i want to extract the files?

0

Share this post


Link to post
Share on other sites

ok... i have read this guide about 10 times and i'm doing it again and again but i dont know... i'm doing something wrong :blushing:

i'm trying to create incredimail installer

i have found the switch in the app switches sticky and i have added the pskill in system32 folder as the guy who posted the swithes said

i did made everything as the guide says but i dont know whats the prob :no:

maybe it is in the config.txt cause the installer doesnt starting and it says "config error" :angrym:

here it is:

;!@Install@!UTF-8!
RunProgram="incml.exe /s"
pskill IncMail.exe
pskill IMApp.exe
;!@InstallEnd@!

have i done something wrong in there?

please help me i'm realy confused with this :blushing:

(the name of the exe in the 7zip archive is incml.exe , its not mistyped)

do you see something that i have to change in the config.txt?

Edited by InViSibLe Gr
0

Share this post


Link to post
Share on other sites
;!@Install@!UTF-8!
RunProgram="incml.exe /s"
pskill IncMail.exe
pskill IMApp.exe
;!@InstallEnd@!

I have searched in vain for the full syntax of the config.txt file...

But I'm willing to bet you need

RunProgram="

and

"

around your pskill statements...

It's not like a .cmd or .bat file.

The only problem with my advice (going back to the lack of documentation for the config.txt file) is I'm not sure if it's ok to have more than one RunProgram statement per config.txt or if you'd have to have it call a .cmd file via "RunProgram" then do multiple program exections within the .cmd file...

Also as a side note, (I think I've seen other's do it) is that the original post takes great pains to mention that the .msi file must be 8 characters or less. I have sucesfully repackaged (and it installs) the Adobe Reader 7.0.7.msi file (with a InstallShield Tuner transform file of equal length spaces and all) by just doing the backslash quote thing to escape the spaces in the RunProgram statement...

Edited by JoeMSFN
0

Share this post


Link to post
Share on other sites

thanks for your reply JoeMSFN :)

so you're telling that i have to do it with

RunProgram="incml.exe /s"
RunProgram="pskill IncMail.exe"
RunProgram="pskill IMApp.exe"

?

and or do it without pskill in the config.txt

and only with runprogram incml

and make a batch file for the pskill's

right?

i'll try both of them and let you know if it work

I have searched in vain for the full syntax of the config.txt file

i have googled for this but didnt find anything if i do i'll tell you

0

Share this post


Link to post
Share on other sites

...ok this one worked i did it with

;!@Install@!UTF-8!
RunProgram="incml.exe /s"
RunProgram="pskill IncMail.exe"
RunProgram="pskill IMApp.exe"
;!@InstallEnd@!

and the kills worked the first time the exes try to open but

the d**n prog after that insists to open cause it doesnt have acount settings inside it :realmad:

so i have to add them with some reg import or something?

how can i do that?

can someone tell me if i can do that?

maybe if i export the HKEY_LOCAL_MACHINE\SOFTWARE\IncrediMail in sys32 folder and add it to run through config with

RunProgram="inredimail.reg"

will that do something ?

or i have to do it through batch file? will that stop the fu****g prog from running?

please help me... i'm so confused about that i dont know what to do to make it work

Edited by InViSibLe Gr
0

Share this post


Link to post
Share on other sites

well... i give up

it doesnt want to work fully silent like this :no:

i'll never make incredimail to work with 7zip silently :(

i'll give it a try with winrar and if it does not work

i wiill do it with the easy batch way ;)

thanks JoeMSFN & The Black Cloud for your help :hello:

Edited by InViSibLe Gr
0

Share this post


Link to post
Share on other sites

Sorry, InViSibLe Gr, it didn't work for you. I still haven't found any real documentation for the config.txt file.

What you might be able to do put your commands (from your previous post)

incml.exe /s
pskill IncMail.exe
pskill IMApp.exe

into a incrmail.cmd file then in your config.txt put

;!@Install@!UTF-8!
RunProgram="incrmail.cmd"
;!@InstallEnd@!

I had to do that to get multiple commands to work... again not sure, but I was unable to get multiple "RunProgram" commands to work in config.txt. (it only seemed to do the 1st "RunProgram" line).

Edited by JoeMSFN
0

Share this post


Link to post
Share on other sites

oh! nice idea!

i thing this one will work! :D

i'll try it and let you know

0

Share this post


Link to post
Share on other sites
well... i give up

it doesnt want to work fully silent like this :no:

i'll never make incredimail to work with 7zip silently :(

i'll give it a try with winrar and if it does not work

i wiill do it with the easy batch way ;)

thanks JoeMSFN & The Black Cloud for your help :hello:

the best way to do incredimail is to recreate the intstaller with inno,,

0

Share this post


Link to post
Share on other sites
Sorry, InViSibLe Gr, it didn't work for you. I still haven't found any real documentation for the config.txt file.

What you might be able to do put your commands (from your previous post)

incml.exe /s
pskill IncMail.exe
pskill IMApp.exe

into a incrmail.cmd file then in your config.txt put

;!@Install@!UTF-8!
RunProgram="incrmail.cmd"
;!@InstallEnd@!

I had to do that to get multiple commands to work... again not sure, but I was unable to get multiple "RunProgram" commands to work in config.txt. (it only seemed to do the 1st "RunProgram" line).

Sometimes when using a .cmd file in the config.txt, I've found you need to preceed some of the commands with "start /wait". Sometimes you don't though. Trial and error usually gets you what you need though.

0

Share this post


Link to post
Share on other sites

i found today what was the problem

i opened task manager two see if pskill was actually killing the processes

it was killing them but incredimail was opening because inmail & imapp was loading two times

so to make it work i added

pskill incmail

pskill imapp

pskill incmail

pskill imapp

and it's ok now

0

Share this post


Link to post
Share on other sites

could some one give more details on this part of making a 7-zip switchless installer.

In order to get rid of the cancel button and the close button, go to Dialog→500→1033. Select all then paste in this code:

CODE500 DIALOG 0, 0, 186, 26

STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION

CAPTION "Progress"

LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US

FONT 8, "MS Shell Dlg"

{

CONTROL "Progress1", 1000, "msctls_progress32", PBS_SMOOTH | WS_CHILD | WS_VISIBLE | WS_BORDER, 7, 7, 172, 14

}

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

thunderchero

0

Share this post


Link to post
Share on other sites
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

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.