Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

How to make a 7-Zip Switchless Installer

* * * * * 3 votes

  • Please log in to reply
287 replies to this topic

#151
crystalxp

crystalxp

    Newbie

  • Member
  • 40 posts
  • Joined 05-February 06

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


How to remove advertisement from MSFN

#152
RazorJack

RazorJack
  • Member
  • 2 posts
  • Joined 21-February 06
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?

#153
InViSibLe Gr

InViSibLe Gr

    huh?

  • Member
  • PipPip
  • 131 posts
  • Joined 01-January 06
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, 23 February 2006 - 06:25 PM.


#154
JoeMSFN

JoeMSFN

    Member

  • Member
  • PipPip
  • 206 posts
  • Joined 28-September 04

;!@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, 24 February 2006 - 06:07 AM.


#155
InViSibLe Gr

InViSibLe Gr

    huh?

  • Member
  • PipPip
  • 131 posts
  • Joined 01-January 06
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

#156
InViSibLe Gr

InViSibLe Gr

    huh?

  • Member
  • PipPip
  • 131 posts
  • Joined 01-January 06
...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, 24 February 2006 - 11:40 AM.


#157
The Black Cloud

The Black Cloud

    Moon Lover

  • Member
  • PipPip
  • 168 posts
  • Joined 27-May 04
  • OS:Windows 7 x64
  • Country: Country Flag
RunProgram="Regedit /S inredimail.reg"

#158
InViSibLe Gr

InViSibLe Gr

    huh?

  • Member
  • PipPip
  • 131 posts
  • Joined 01-January 06

RunProgram="Regedit /S inredimail.reg"

Thanks a lot! :D
I will try it now!

#159
InViSibLe Gr

InViSibLe Gr

    huh?

  • Member
  • PipPip
  • 131 posts
  • Joined 01-January 06
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, 26 February 2006 - 06:21 AM.


#160
JoeMSFN

JoeMSFN

    Member

  • Member
  • PipPip
  • 206 posts
  • Joined 28-September 04
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, 03 March 2006 - 02:28 AM.


#161
InViSibLe Gr

InViSibLe Gr

    huh?

  • Member
  • PipPip
  • 131 posts
  • Joined 01-January 06
oh! nice idea!
i thing this one will work! :D
i'll try it and let you know

#162
Lost Soul

Lost Soul

    Snap ... Crackle ... Pop

  • Member
  • PipPipPipPipPipPipPip
  • 1,746 posts
  • Joined 12-December 03

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

This is not the end. It is not even the beginning of the end. But, it is, perhaps, the end of the beginning.

- Winston Churchill

#163
RogueSpear

RogueSpear

    OS: SimplyMEPIS

  • MSFN Sponsor
  • 1,529 posts
  • Joined 18-September 04

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.

#164
InViSibLe Gr

InViSibLe Gr

    huh?

  • Member
  • PipPip
  • 131 posts
  • Joined 01-January 06
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

#165
thunderchero

thunderchero
  • Member
  • 4 posts
  • Joined 13-March 06
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

#166
Delprat

Delprat

    Poll: Why are you reading this ?

  • Member
  • PipPipPip
  • 481 posts
  • Joined 18-May 05

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

KISSes from France !

Will you take part in the microwave oven contest on msfn.org ?

The best game ever created is open-source and cross-platform. Get it NOW !

#167
Jedi82

Jedi82

    Member

  • Member
  • PipPip
  • 191 posts
  • Joined 08-May 04
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??
:) I'm an italian newbie, so please be patient:)

#168
Delprat

Delprat

    Poll: Why are you reading this ?

  • Member
  • PipPipPip
  • 481 posts
  • Joined 18-May 05

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

++

KISSes from France !

Will you take part in the microwave oven contest on msfn.org ?

The best game ever created is open-source and cross-platform. Get it NOW !

#169
Jedi82

Jedi82

    Member

  • Member
  • PipPip
  • 191 posts
  • Joined 08-May 04
tnx i will try soon
:) I'm an italian newbie, so please be patient:)

#170
alperefe

alperefe

    Newbie

  • Member
  • 24 posts
  • Joined 06-September 05
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!

#171
Delprat

Delprat

    Poll: Why are you reading this ?

  • Member
  • PipPipPip
  • 481 posts
  • Joined 18-May 05

"quick batch file compiler"


US$39.95 :whistle:

Edited by Delprat, 11 April 2006 - 08:20 AM.

KISSes from France !

Will you take part in the microwave oven contest on msfn.org ?

The best game ever created is open-source and cross-platform. Get it NOW !

#172
TbbW

TbbW

    Newbie

  • Member
  • 13 posts
  • Joined 28-August 05
nice guide keytotime ( and nice avatar ) :)

#173
Jedi82

Jedi82

    Member

  • Member
  • PipPip
  • 191 posts
  • Joined 08-May 04
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!!!
:) I'm an italian newbie, so please be patient:)

#174
RBCC

RBCC

    Senior Member

  • Member
  • PipPipPipPip
  • 634 posts
  • Joined 09-July 04
: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

#175
mayang

mayang

    Newbie

  • Member
  • 34 posts
  • Joined 11-December 05
Attached File  bfr.exe   8.5KB   70 downloads

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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users