How to make a 7-Zip Switchless Installer
#241
Posted 03 July 2008 - 09:31 PM
My situation is this: I have made sfx installer with 7z file at ~500MB. No problem. the SFX details (icon, version info, etc.) are intact.
However, if my 7z file is >700MB, the SFX details (icon, version info, etc.) are missing! Running the sfx exe is ok, but file details are not visible.
I've tried to compile this in Vista and XP, both having the same symptoms.
#243
Posted 04 July 2008 - 03:57 AM
on the same exact copy of 7zSD (modified the icon and version texts) and 7zip ...
1) Works fine for 7z archive with size ~500MB... icon and version info were shown/intact... extraction works fine.
2) Works fine too for archive >700MB but the icon and version infos are missing/not shown. Extraction works fine.
#245
Posted 04 July 2008 - 05:12 PM
thanks for the confirmation, amitri
#246
Posted 13 August 2008 - 10:41 PM
A Windows bug - but he was looking to fix it.
#247
Posted 24 August 2008 - 02:09 PM
However when I try to make a installer for Open Office. Everything goes fine until I try to run the installer. Then I get an Unspecified Error Box. I have a folder with the following files in it: 7zS.sfx, config.txt:
;!@Install@!UTF-8! RunProgram="OOo_2.4.1_Win32Intel_install_wJRE_en-US.exe" ;!@InstallEnd@!OOffice.7z and OOo_2.4.1_Win32Intel_install_wJRE_en-US.exe . The last one is the installer created.
Open office Looks like it has 3 installers included in it. instmsiw.exe, instmsia.exe, and OOo_2.4.1_Win32Intel_install_wJRE_en-US.exe. If i click on the file of the first 2 I get an, wrong os or os version for application, error box.
What am I doing wrong, I created several other installers using this method before stumbling onto this problem.
Again this rocks
#248
Posted 24 August 2008 - 03:03 PM
ExTruckie, on Aug 24 2008, 11:09 PM, said:
Those two files is for older Windows (2000 and 98 or Millenium probably).
#249
Posted 24 August 2008 - 03:20 PM
Since I posted I redownloaded the open office installer, and redid the steps and I get the same error box
The new installer did not have the instamsiw.exe and instamsia.exe files
#250
Posted 25 August 2008 - 08:59 AM
ExTruckie, on Aug 25 2008, 12:20 AM, said:
Run the downloaded installer and use the extracted files.
The .cmd file should look like this:
@echo off msiexec /i openofficeorg24.msi ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1 ADDLOCAL=ALL /qb! /norestart exit
or
@echo off msiexec /i openofficeorg24.msi ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1 ADDLOCAL=ALL /qn /norestart exit
The second does not have the progress bar.
#251
Posted 25 August 2008 - 07:34 PM
Thanks
radix, on Aug 25 2008, 10:59 AM, said:
ExTruckie, on Aug 25 2008, 12:20 AM, said:
Run the downloaded installer and use the extracted files.
The .cmd file should look like this:
@echo off msiexec /i openofficeorg24.msi ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1 ADDLOCAL=ALL /qb! /norestart exit
or
@echo off msiexec /i openofficeorg24.msi ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1 ADDLOCAL=ALL /qn /norestart exit
The second does not have the progress bar.
#253
Posted 04 September 2008 - 12:07 PM
I want to integrate MS .NET Framework 1.1 SP1 & 2.0 in my xp cd.
I have used this french forum. But I don't know how to make a 7-Zip switchless installer.
For information, I have in my \$OEM$\$1\apps\: 2 folder (dotnet11 + dotnet02) and 1 file (dotnetfx.bat), this batch :
@echo off echo Installing Microsoft .NET Framework 1.1 SP1 ... echo =============================================== start /wait msiexec /i %systemdrive%\apps\dotnet11\netfx.msi start /wait msiexec /i %systemdrive%\apps\dotnet11\langpack.msi /qb echo. echo Installing Microsoft .NET Framework 2.0 ... echo =========================================== start /wait msiexec /i %systemdrive%\apps\dotnet02\netfx.msi ADDEPLOY=1 REBOOT=REALLYSUPRESS /qb start /wait msiexec /i %systemdrive%\apps\dotnet02\langpack.msi ADDEPLOY=1 /qb echo.
Thanks for help.
This post has been edited by insan: 04 September 2008 - 12:10 PM
#254
Posted 05 September 2008 - 12:18 AM
1. To compress with 7-Zip : dotnet11, dotnet02, dotnetfx.bat, StartX.exe
This create : dotnetfx.7z
2. To create a folder containing : dotnetfx.7z, 7zs.sfx, Msistub.exe, config.txt
______ config.txt_________
;!@Install@!UTF-8!
RunProgram="dotnetfx.bat"
;!@InstallEnd@!
_______________________
3. To make in command prompt : copy /b 7zs.sfx + config.txt + dotnetfx.7z dotnetfx.exe
This create dotnetfx.exe who I use to instal MS .NET Framework 1.1 SP1 and 2.0 silently.
This post has been edited by insan: 05 September 2008 - 12:24 AM
#256
Posted 27 November 2008 - 06:52 AM
Is there any way to make the desktop the default folder for the Sfx extraction?
Ty
This post has been edited by JoaoVr: 27 November 2008 - 10:15 AM
#257
Posted 08 December 2008 - 11:39 AM
Thanks for the great tut.
I have a small, but fatal (to me) problem with it. I hope you can help me out:
config.txt
;!@Install@!UTF-8! RunProgram="program.exe" GUIMode="2" Progress="no" ;!@InstallEnd@!
copy /b 7zS.sfx + config.txt + 7zSFX.7z test.exe
I ve created the 7z archive using the latest 7zip - v 4.62 and the SFX module from the current tutorial.
When the "program.exe" is started the application window is not on focus, it appears to be behind the current window. It looses focus even if started from the Desktop
It is shown on the task bar but I have to switch to it manually. what bugz me out is that only happens like 30% of the starts .. some times it is on focus.
I checked the startup path and they are all started from diff folders in the temp folder and there is no pattern.
Thank you.
This post has been edited by bojinov: 08 December 2008 - 11:40 AM
#258
Posted 27 January 2009 - 03:05 PM
I'm trying to make Realtek's HD audio drivers & app install silently, in the readme it says
-------------------- Silent Installation: -------------------- Run "Setup.exe /s /f2<path\LogFile> /z[-rp<path\LogFile>]" i.e. setup.exe /s /f2c:\mylog.log /z[-rpC:\RHDSetup.log]
I tried all sorts of formating for it and none of it seems to work. The last one i tried I created the Config.txt containing an almost exact copy of their command and to no avail :sigh:
;!@Install@!UTF-8! RunProgram=setup.exe /s /f2c:\test\mylog.log /z[-rpC:\RHDSetup.log] ;!@InstallEnd@!
Just get a msgbox with the header 7-zip and the message saying config failed
Could someone help me figure out how to setup the config.txt right please?
I just need to get this one driver/program to install silently and I'll have my whole boards devices slipstreamed into XPhome
If you need any extra info don't hesitate to ask!
#259
Posted 29 January 2009 - 02:51 AM
w00dr0w, on Jan 28 2009, 12:05 AM, said:
;!@Install@!UTF-8! RunProgram=setup.exe /s /f2c:\test\mylog.log /z[-rpC:\RHDSetup.log] ;!@InstallEnd@!
RunProgram=setup.exe /s /f2c:\\test\\mylog.log /z[-rpC:\\RHDSetup.log]
Quote
\\ = \
\" = "
\n = caret return
\t = tabulation (TAB)
As a result, you MUST use DOUBLE backslashes (\\) wherever you normally use backslashes (\) (e.g. in paths or dialog texts). Similarly, if the Value contains double quotes ("), you MUST precede them with a backslash (\").
#260
Posted 29 January 2009 - 11:57 AM
I asked this on ryanvm forums and I was told I forgot the quotes
RunProgram="setup.exe /s /f2c:\test\mylog.log /z[-rpC:\RHDSetup.log]"
was their suggestion, which worked. However Im having difficulty with the PC being rebooted once the installer has ran, and realtek says the silent install shouldn't reboot the PC...
I'll try it with your code and see if I don't come out any better.
Nope, just tried your code and it's not working again
This post has been edited by w00dr0w: 29 January 2009 - 12:05 PM



Help


Back to top









