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

#176
Glowy

Glowy

    The voices made me do it!

  • Member
  • PipPipPip
  • 315 posts
  • Joined 25-March 04
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, 16 May 2006 - 06:49 AM.

Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes,fsck,fsck,fsck,umount, sleep.


How to remove advertisement from MSFN

#177
ZileXa

ZileXa

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 767 posts
  • Joined 27-May 04
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, 18 May 2006 - 06:03 PM.


#178
Glowy

Glowy

    The voices made me do it!

  • Member
  • PipPipPip
  • 315 posts
  • Joined 25-March 04
that's true..

I bluntly copy pasted it. :blushing:
it works, just not for msiexec
Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes,fsck,fsck,fsck,umount, sleep.

#179
jaws75

jaws75

    Member

  • Member
  • PipPip
  • 124 posts
  • Joined 22-April 06

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

#180
Delprat

Delprat

    Poll: Why are you reading this ?

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

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:

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 !

#181
Nilfred

Nilfred

    Member

  • Member
  • PipPip
  • 210 posts
  • Joined 18-September 04
WOW! :w00t: The just released 7-zip version 4.42 (non beta) allow a new syntax:
;!@Install@!UTF-8!

Title="7-Zip 4.01 Update"

BeginPrompt="Do you want to install the 7-Zip 4.01 Update?"

ExecuteFile="msiexec.exe"

ExecuteParameters="/i 7zip.msi REINSTALL=ALL REINSTALLMODE=vomus"

;!@InstallEnd@!
End of StartX/msistub reign?
Nilfred :-)

#182
Glowy

Glowy

    The voices made me do it!

  • Member
  • PipPipPip
  • 315 posts
  • Joined 25-March 04
already posted 5 posts ago. and no, it does not mean the end of StartX/MsiStub (also already posted)
Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes,fsck,fsck,fsck,umount, sleep.

#183
ZileXa

ZileXa

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 767 posts
  • Joined 27-May 04
@Glowy, I read back, there is only something about msiexec not working, but you don't even need it.
This works just fine:
;!@Install@!UTF-8!
Title="Software app v1.0"
BeginPrompt="Do you want to install the Software app v1.0?"
ExecuteFile="browser.msi"
ExecuteParameters="/qb"
;!@InstallEnd@!
Ofcourse it works just fine without ExecuteParameters, and you don't need the BeginPrompt.

So why still use msistub?
Same goes for StartX. Simply use ExecuteFile and you don't need it anymore.


QUESTION:
It must be possible to create a 7z file that extracts to a specified folder? Nothing more.

It can be done with Winzip and winrar, very easy. But I haven't figured out how to do this with 7z.
the method in this topic first extracts everything to temp folder. then I could make a batchfile copying it to the right folder but that's double work..
Any ideas?
(especially with big archives the double work is annoying AND this method is meant for Installers so I know it is normal that it is done this way)

Edited by ZileXa, 01 June 2006 - 01:57 PM.


#184
Delprat

Delprat

    Poll: Why are you reading this ?

  • Member
  • PipPipPip
  • 481 posts
  • Joined 18-May 05
To extract to a specified folder, you'll need 7zCon.sfx (console version, no config.txt). It offer these options :
7-Zip SFX 4.32  Copyright (c) 1999-2005 Igor Pavlov  2005-12-09

Usage: 7zSFX [<command>] [<switches>...]

<Commands>
  l: List contents of archive
  t: Test integrity of archive
  x: eXtract files with full pathname (default)
<Switches>
  -o{Directory}: set Output directory
  -p{Password}: set Password
  -y: assume Yes on all queries
You can reproduce "winzip sfx overwrite" mode with :
my-7zcon-sfx.exe -oC:\MyDir -y

++

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 !

#185
Shark007

Shark007

    Repackaging Specialist

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,154 posts
  • Joined 07-January 04
I use a modified 7zip sfx module to specify an extraction path.
Get it here Usage instructions are in german (oops) russian and english.

shark

Edited by Shark007, 02 June 2006 - 05:53 PM.

When posting about an issue in the codec thread,
please state what Operating System you use.


#186
ZileXa

ZileXa

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 767 posts
  • Joined 27-May 04
Shark007, a suggestion, contact the 7zip developers! They should replace the 7zS.exe with your build! Thanks a lot for your work. This is absolutely the best user-made thing here on msfn!

#187
Shark007

Shark007

    Repackaging Specialist

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,154 posts
  • Joined 07-January 04

Shark007, a suggestion, contact the 7zip developers! They should replace the 7zS.exe with your build! Thanks a lot for your work. This is absolutely the best user-made thing here on msfn!

I didnt say i made it, i said i use it.

shark

When posting about an issue in the codec thread,
please state what Operating System you use.


#188
ZileXa

ZileXa

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 767 posts
  • Joined 27-May 04
oops :D

I want to run an INF file, the command to run the inf works when I try it in command prompt... doesn't work with the modified 7z sfx:
;!@Install@!UTF-8!
RunProgram="rundll32.exe advpack.dll,LaunchINFSection %programfiles%\DVD-ReBuilder\SHORTCUTS.INF,DefaultInstall"
InstallPath="%PROGRAMFILES%"
ExtractTitle="Easy Installer: Extracting..."
GUIMode="2"
;!@InstallEnd@!

(ofcourse the RunProgram parameter is 1 line, after LaunchINFSection there is only a space).

I am getting an error that says System cannot find given file.
posted this question also in the modded 7zS.sfx Russian forum :D


EDIT:
And I got an answer! Check this out:
;!@Install@!UTF-8!
ExtractTitle="Easy Installer: Extracting..."
InstallPath="%PROGRAMFILES%"
RunProgram="hidcon:install.cmd"
GUIMode="2"
;!@InstallEnd@!

All files will get extracted to the Program Files folder, then the file install.cmd is run, hiding the console window!
Guimode=2 will hide the 7zip extraction window completely.

EDIT:
Oleg_Sch modified 7z SFX module has A LOT of possibilities I think no English user knows about! My DVD-ReBuilder Easy Installer now uses it to create shortcuts (no matter what Windows language you use, for ALL users, WinRAR can't even do this! does it for current user only), view a dialog, even view an optional dialog so that the user can give extraction path! It can run a file or run a different file/command when silent switch is given.
And a lot of customisation options.
There will be an English translation from the Russian documentation.

Edited by ZileXa, 14 June 2006 - 05:17 PM.


#189
kof94

kof94

    Advanced Member

  • Member
  • PipPipPip
  • 433 posts
  • Joined 28-November 05
Just a quick question,

If you include the msi redistributions (instmsia.exe and instmsiw.exe) in your archive and execute your silent install on a 9x OS:

A. Will the relevant redistribution get installed silently if required prior to installation taking place.

and

B. If it is installed will it screw with the rest of the installation.

I know this was brought up earlier on in the post but it wasn't really answered.

Thanks.

#190
vampyrus

vampyrus

    Newbie

  • Member
  • 14 posts
  • Joined 25-August 06
I tried to follow the instructions and make a switchless installer for adobe reader 6 and got an error message "cannot find setup.exe"
I later tried extracting the files from the adobe installer and got the file called setup.exe but now the install sequence does not complete ... the extraction works but then everything just stops and no installation actually occurs.

I have tried with other programs as well but again received the error message "cannot find setup.exe" and was also unable to extract the install files from those programs installers ...

any ideas ??

#191
YoBoGo

YoBoGo
  • Member
  • 1 posts
  • Joined 27-August 06
I know some of you have been having a few issues getting InstallShield apps to work. For what it's worth, here are a couple tricks I have figured out that are working for me:

* try it with and without the dash(-) in front of the f1 or f2 in the config.txt file (ex. setup.exe -s f1setup.iss)

* try both the .iss file and the .log file, I have found some apps need one of them, some need the other (ex. setup.exe -s f1setup.iss OR setup.exe -s f2setup.log)

* if you can't get it to work at all, use a batch file to run it. The trick here that took me awhile to figure out was you have to put the batch file in your app folder PRIOR to using 7z to archive. I know that is obvious for some of you, but being somewhat new to this, I didn't pick that up right away. So in other words, use this:

config.txt file
;!@Install@!UTF-8!
RunProgram="start.cmd"
;!@InstallEnd@!

start.cmd
start /wait setup.exe -s -f1setup.iss
exit

* if nothing else works, and your app seems to run but then nothing happens, I figured out a little work around. I ended up having to use this for 3DMark family, because for some reason it wouldn't find setup.iss in the same folder with setup.exe, it wanted to be told where to find it, so:

config.txt
;!@Install@!UTF-8!
RunProgram="start.cmd"
;!@InstallEnd@!

start.cmd
xcopy setup.* %systemdrive%\ /Y /Q
start /wait 3DMark.exe -s -f1"%systemdrive%\setup.iss"
del %systemdrive%\setup.iss /Q
del %systemdrive%\setup.log /Q
exit

I hope this helps...

#192
ds22

ds22
  • Member
  • 3 posts
  • Joined 18-October 06
Hello! anybody know how to transfer the % complete in 7zS.sfx on the left side instead from the right.... :)




ds22

#193
pkoppelaar

pkoppelaar

    Newbie

  • Member
  • 49 posts
  • Joined 06-October 06
Could the topicstarter update his first post? Some images are missing, step 9 doesn't clearly state we are making a new text file and where does the .msi go and where do the other files go? It seems as if all the files go in the archive and a 2nd copy of the .msi is also placed outside the archive...?

#194
monoxide

monoxide

    Newbie

  • Member
  • 23 posts
  • Joined 02-August 06
thanks man this helped me alot.

#195
Inferi0r

Inferi0r

    Little dude

  • Member
  • PipPip
  • 180 posts
  • Joined 28-July 06
7-Zip 4.44 alpha 2 released. Works fine :thumbup

7-Zip 4.44 alpha 2 for 32-bit Windows:
http://www.7-zip.org/alpha/7z444a2.exe
http://www.7-zip.org/alpha/7z444a2.msi

7-Zip 4.44 alpha 2 for 64-bit Windows x64:
http://www.7-zip.org...7z444a2-x64.msi

#196
hend0012

hend0012
  • Member
  • 1 posts
  • Joined 14-January 07
this might sound stupid but where can i find 7sf.sfx file or how do i create it will someone please explain

#197
tech_boy

tech_boy

    Newbie

  • Member
  • 43 posts
  • Joined 21-December 06

Thanks for this guide, extremely helpful! :thumbup


Jonny

#198
pmshah

pmshah

    Member

  • Member
  • PipPip
  • 292 posts
  • Joined 10-September 05

this might sound stupid but where can i find 7sf.sfx file or how do i create it will someone please explain

From 7.zip site I presume.

If you open the help file under 7zip it is very clearly explained how to create auto installation sfx files. Also provides links for downloads.

#199
hfrfc

hfrfc

    Junior

  • Member
  • Pip
  • 56 posts
  • Joined 04-February 05
How to run multiple commands (runprogram) inside txt file ??
thx

Edited by hfrfc, 21 February 2007 - 09:17 AM.

Rule 5. <snip>Flash and animated signatures and avatars are not permitted.<snip>

#200
Shark007

Shark007

    Repackaging Specialist

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,154 posts
  • Joined 07-January 04

How to run multiple commands (runprogram) inside txt file ?? thx

Put the multiple commands into a batchfile and have the installer execute that instead.


shark

When posting about an issue in the codec thread,
please state what Operating System you use.





4 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users


    Baidu (2)