How to make a 7-Zip Switchless Installer
Posted 14 February 2005 - 06:27 PM
Mekrel, on Feb 14 2005, 10:15 AM, said:
the problem is this
Im converting all my WinRAR SFX installers to 7-Zip SFX installer, and im using 7-Zip on some Install Shield installers.
One of them is Anti virus Kit 2004 from GData, and I had it installing fine before with the switches i use in the config.txt which is saved with UTF-8 encoding like stated in the guide.
;!@Install@!UTF-8! RunProgram="Setup.exe -s -f2\"%systemdrive%\avk.log\"" ;!@InstallEnd@!
The setup.iss is in the archive aswell, and being as its ran from %CDROM% variable, it needs to have the avk.log assigned to it too according to the unattended guide made by Allanol.
Try ising the /SMS switch with the setup. Note this switch should be upper case as shown. RunProgram="Setup.exe -s -SMS -f2\"%systemdrive%\avk.log\""
Install Shield Command Line Parameters
MSI Online Commandline Generator ("CleverMSI-OCG")
Posted 15 February 2005 - 10:25 AM
Posted 23 February 2005 - 07:20 AM
Posted 01 March 2005 - 03:46 PM
I followed the direction to a T. but when I test it the files look like they are extracted but the msi doesn't install.
Here is my config.txt
RunProgram="StartX.exe /WAIT \"msiexec /i Adobe.msi /qb-!\""
If I try via command line StartX.exe /WAIT "msiexec /i Adobe.msi /qb-!" the program installs.
Posted 01 March 2005 - 07:52 PM
Posted 01 March 2005 - 09:49 PM
If u can't understand i dont know what to tell u it already gives u everything
u need to build a 7zip installer.
My installers are slightly different since i dont use StartX
Prior to using this program i suggest that first learn about adobe acrobat
reader install points. Then follow his guide again step by step.
Posted 02 March 2005 - 03:45 AM
I'm also experiencing rather strange problems with 7zip and this guide.
I'm trying to pack the IntelliPoint software from Microsoft version 4.12 and I already have it install flawlessly from a RunOnceEx command:
IP4_1.msi MM=14 /QR REBOOT=ReallySuppress
The reason I want to pack it is that right now all the install files are unpacked in a folder which obviously takes up more space than a compressed package.
Now, I've compressed the installation files (including StartX.exe), changed icons in the 7zs.sfx, written a config.txt, copied all three files to a single .exe - in other words, followed the guide exactly as stated. The problem is that it won't start the .msi which I instruct it to. Instead, it tries to start the setup.exe which is also in the package. It isn't needed but it's there since I figured it didn't matter.
Here's my config.txt (saved in UTF-8 format):
;!@Install@!UTF-8! RunProgram="StartX.exe /WAIT \"msiexec /i IP4_1.msi MM=14 /QR REBOOT=ReallySuppress\"" ;!@InstallEnd@!
Here comes the strange part: it works like a charm in WinRAR! Here's the comment:
;The comment below contains SFX script commands Setup=StartX.exe /WAIT "msiexec /i IP4_1.msi MM=14 /QR REBOOT=ReallySuppress" TempMode Silent=1 Overwrite=1
I have been able to make similar working 7zip files using this guide, I just can't see why this one doesn't. Also, I've been making 7zip sfx's from ATi catalyst which don't change icons and can't be deleted Thus I have 4-5 21 mbyte files on my desktop which cannot be deleted from Windows. Strange. I should mention that I'm testing the packages in VMware 5.0 RC2.
What am I doing wrong?
Posted 02 March 2005 - 05:29 AM
I compress all the files I want, add 7zs.sfx and config.txt and make the .exe, all edited and works perfectly when tested - except if run during RunOnceEx. If I test with VMware 4.5.2, NeroBR, NVE3, Office2003 and SymantecAV9 do not install at all when run via RunOnceEx. If I run the .exe's after install then they install fine (both in VMware and not).
The 7-zip exe calls "Install.exe" which is just a converted .cmd file, basically following this format:
@ECHO OFF cmdow @ /HID ECHO. TITLE Installing Symantec Antivirus SymantecAntivirus.msi /qn reboot=reallysuppress liveupdate=0 servergroupname=Username servergrouppass=Userpass REGEDIT /S Fix.reg RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Symantec Client Security" EXIT
SymantecAV and Office2003 are .msi's and both Nero's are .exe's and they both work fine otherwise. Is there something 'pre-first boot' that won't work such as "cmdow @ /HID"?
Cheers for your help.
Telling 7-Zip to load Install.cmd rather than converted Install.exe worked a treat.
Astalavista, you seem to use the Quick Batch file Compiler a lot. Know the reason?
Posted 02 March 2005 - 05:59 AM
EDIT: You're a champ, keytotime. It worked like a charm. Cheers.
Reply to FoLmEr:
Instead of getting the 7-Zip to call StartX.exe with additional paramters, try creating a .cmd file which then calls the msi. Before compiling the 7-Zip sfx, try running the cmd file by itself to test if it works.