MSFN Forum: How to make a 7-Zip Switchless Installer - MSFN Forum

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
  • 15 Pages +
  • « First
  • 11
  • 12
  • 13
  • 14
  • 15
  • You cannot start a new topic
  • You cannot reply to this topic

How to make a 7-Zip Switchless Installer Rate Topic: ***** 3 Votes

#241 User is offline   cybpsych 

  • Member
  • PipPip
  • Group: Members
  • Posts: 283
  • Joined: 02-December 03

Posted 03 July 2008 - 09:31 PM

just curious: has anybody tried to make sfx installer which has total size >700MB?

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.


#242 User is offline   Inferi0r 

  • Little dude
  • PipPip
  • Group: Members
  • Posts: 180
  • Joined: 28-July 06

Posted 04 July 2008 - 03:28 AM

Have you used the latest versions of 7zSD (v1.2 RC1), 7z (v4.58) and UPX (v3.03w)? Check here the downloadlinks and my new updated tutorial (maybe you did it already on this way)

This post has been edited by Inferi0r: 04 July 2008 - 03:31 AM


#243 User is offline   cybpsych 

  • Member
  • PipPip
  • Group: Members
  • Posts: 283
  • Joined: 02-December 03

Posted 04 July 2008 - 03:57 AM

that's what i'm using but wihtout UPX ...

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.

#244 User is offline   amitri 

  • Junior
  • Pip
  • Group: Members
  • Posts: 55
  • Joined: 24-April 04

Posted 04 July 2008 - 07:03 AM

Fyi: 713MB archive works just fine for me, icon and info included.
Installer was made with 7z v4.57 and upx v3.02 using this tutorial.

#245 User is offline   cybpsych 

  • Member
  • PipPip
  • Group: Members
  • Posts: 283
  • Joined: 02-December 03

Posted 04 July 2008 - 05:12 PM

hmmm, that's strange ...

thanks for the confirmation, amitri

#246 User is offline   LeveL 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 551
  • Joined: 30-September 05

Posted 13 August 2008 - 10:41 PM

I asked the developer of WinRAR why that happens (no icon on files above 500Mb) and he said its a Windows bug.

A Windows bug - but he was looking to fix it. :blink:

#247 User is offline   ExTruckie 

  • Junior
  • Pip
  • Group: Members
  • Posts: 73
  • Joined: 30-July 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 August 2008 - 02:09 PM

:hello: This is way cool :thumbup
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 :thumbup

#248 User is offline   radix 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 732
  • Joined: 08-February 07
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 24 August 2008 - 03:03 PM

View PostExTruckie, on Aug 24 2008, 11:09 PM, said:

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.

Those two files is for older Windows (2000 and 98 or Millenium probably).

#249 User is offline   ExTruckie 

  • Junior
  • Pip
  • Group: Members
  • Posts: 73
  • Joined: 30-July 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 August 2008 - 03:20 PM

Thanks
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 User is offline   radix 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 732
  • Joined: 08-February 07
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 25 August 2008 - 08:59 AM

View PostExTruckie, on Aug 25 2008, 12:20 AM, said:

Since I posted I redownloaded the open office installer, and redid the steps and I get the same error box

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 User is offline   ExTruckie 

  • Junior
  • Pip
  • Group: Members
  • Posts: 73
  • Joined: 30-July 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 August 2008 - 07:34 PM

:hello: In other words run the installer then archive the extracted files along with the following in the config.txt
Thanks

View Postradix, on Aug 25 2008, 10:59 AM, said:

View PostExTruckie, on Aug 25 2008, 12:20 AM, said:

Since I posted I redownloaded the open office installer, and redid the steps and I get the same error box

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.


#252 User is offline   ExTruckie 

  • Junior
  • Pip
  • Group: Members
  • Posts: 73
  • Joined: 30-July 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2008 - 06:33 PM

Thanks that did the trick

#253 User is offline   insan 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 10-January 08

Posted 04 September 2008 - 12:07 PM

Thanks for this thread !

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 User is offline   insan 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 10-January 08

Posted 05 September 2008 - 12:18 AM

It's ok now, I have solved my problem :

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


#255 User is offline   COKEDUDEUSF 

  • Member
  • PipPip
  • Group: Members
  • Posts: 227
  • Joined: 24-January 07

Posted 11 September 2008 - 07:23 AM

Thx for this. I hope I can figure it out.

#256 User is offline   JoaoVr 

  • Portugal
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 28-August 04
  • OS:none specified
  • Country: Country Flag

Posted 27 November 2008 - 06:52 AM

Hi,
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 User is offline   bojinov 

  • Group: Members
  • Posts: 1
  • Joined: 30-May 06

Posted 08 December 2008 - 11:39 AM

Hi all,

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 User is offline   w00dr0w 

  • Group: Members
  • Posts: 4
  • Joined: 27-January 09

  Posted 27 January 2009 - 03:05 PM

Ok I'm having an issue (probably my inept scripting)
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 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 January 2009 - 02:51 AM

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

IMPORTANT! Certain two-symbol sequences in the Value are parsed as follows:

\\ = \
\" = "
\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 User is offline   w00dr0w 

  • Group: Members
  • Posts: 4
  • Joined: 27-January 09

Posted 29 January 2009 - 11:57 AM

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


Share this topic:


  • 15 Pages +
  • « First
  • 11
  • 12
  • 13
  • 14
  • 15
  • You cannot start a new topic
  • You cannot reply to this topic

4 User(s) are reading this topic
0 members, 4 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy