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

#261 User is offline   radix 

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

Posted 29 January 2009 - 01:13 PM

If the sfx extract the installer on the hdd and start installation from there works?
;!@Install@!UTF-8!
InstallPath="%temp%\\RHD"
RunProgram="setup.exe /s /SMS"
Delete="%temp%\\RHD"
GUIMode="2"
;!@InstallEnd@!



#262 User is offline   Geej 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 634
  • Joined: 01-January 08
  • OS:XP Pro x86
  • Country: Country Flag

Posted 29 January 2009 - 01:22 PM

View Postw00dr0w, on Jan 28 2009, 05:05 AM, said:

If you need any extra info don't hesitate to ask!

Could it be your c:\mylog.log and C:\RHDSetup.log were in wrong location? As far as I understand, mylog.log or RHDSetup.log should normally be in same directory as your setup.exe. Just my guess.

#263 User is offline   w00dr0w 

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

Posted 29 January 2009 - 05:54 PM

View PostGeej, on Jan 29 2009, 11:22 AM, said:

View Postw00dr0w, on Jan 28 2009, 05:05 AM, said:

If you need any extra info don't hesitate to ask!

Could it be your c:\mylog.log and C:\RHDSetup.log were in wrong location? As far as I understand, mylog.log or RHDSetup.log should normally be in same directory as your setup.exe. Just my guess.


that just tells the install where to put the log of the install when it's installing.
ill have to try that other code here in a few, though having it run the manual installer would be undesirable, i guess i can manage

#264 User is offline   gora 

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

Posted 30 January 2009 - 05:54 AM

It is my error, inverted commas in line are obligatory!!! Should be so:
RunProgram="setup.exe /s /f2c:\\test\\mylog.log /z[-rpC:\\RHDSetup.log]"

About syntax of the command
setup.exe /s /f2c:\mylog.log /z[-rpC:\RHDSetup.log]
I do not know, but if it works in bath a file in such kind and in a file of a configuration of the modified module will work. Check up its work at first in bath a file, and then already working variant transfer to a configuration file considering inverted commas and double slashes.

This post has been edited by gora: 30 January 2009 - 06:02 AM


#265 User is offline   w00dr0w 

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

Posted 30 January 2009 - 08:39 AM

View Postgora, on Jan 30 2009, 03:54 AM, said:

It is my error, inverted commas in line are obligatory!!! Should be so:
RunProgram="setup.exe /s /f2c:\\test\\mylog.log /z[-rpC:\\RHDSetup.log]"

About syntax of the command
setup.exe /s /f2c:\mylog.log /z[-rpC:\RHDSetup.log]
I do not know, but if it works in bath a file in such kind and in a file of a configuration of the modified module will work. Check up its work at first in bath a file, and then already working variant transfer to a configuration file considering inverted commas and double slashes.


I have the installer working, perfectly using this config.txt
;!@Install@!UTF-8!
RunProgram="setup.exe /s /f2c:\mylog.log /z[-rpC:\RHDSetup.log]"
;!@InstallEnd@!
with one exception
I'll post what I posted @ ryanvm forums

It's restarting the PC as soon as it's finished installing. I need to turn this off. I don't know if there's a parameter I can add to config.txt to keep it from restarting the PC, I checked the setup's .ini file and found some promising stuff, but I'm no coder and I have no clue what I need to do. So hopefully one of you can help me with this.

The interesting info in the setup.ini is below
[General Settings]
OEM = 0
DelDatUpd = 0
DelDatUni = 0
RtkLogON = 1
ForceSetupQFE = 0
ForceInstallRtk = 1
RtkAPODbgReg = 0
RtkAPOReg = 1
RemoveHDQFE = 0
QFEReboot = 0
fW2KForceRebt = 0
SilentReboot = 0
NUpgradeDrv = 0
NRunClsWin = 0
QFEOption = /o /norestart /passive
HideWinParm = /go


I tried adding /norestart to config.txt, but that doesn't do anything. I'm wondering if I can edit the .ini itself and change one of those flags to keep it from restarting after installing?

Once again your time, effort, and help are greatly appreciated...
large test

#266 User is offline   judolphin 

  • Group: Members
  • Posts: 1
  • Joined: 16-May 08

Posted 05 February 2009 - 02:44 PM

What a great guide, thanks so much!

To automate the process even more:

1. Modify 7zs.sfx as desired according to OP's instructions
2. Copy 7zS.sfx to your SYSTEM32 directory
3. Enter the following into a batch file:

-------------------------------BEGIN CODE-------------------------------
@echo off
cls
%~d1
cd %~p1
echo Enter the command (e.g. "msistub setup.msi /qb-!") without quotes:
echo.
SET /P CMDLINE=
echo ;!@Install@!UTF-8! > config.txt
echo RunProgram="%CMDLINE%" >> config.txt
echo ;!@InstallEnd@! >> config.txt
copy /b %windir%\system32\7zs.sfx + config.txt + %1 %~n1.exe
del /q config.txt
------------------------------- END CODE -------------------------------
(The "code" tag messed up the echo commands)

4. Save batch file as %WINDIR%\System32\CreateInstaller.bat (save as UTF-8 as stated by original poster)
5. In Windows Explorer, Go to the "Tools\Folder Options"
6. under the "File Types" tab, go to the .7Z extension and click "Advanced"
7. Click "New..."
8. Under "Action" type "Create Installer" without quotes
9. Under "Application used to perform action" type
%WINDIR%\system32\CreateInstaller.bat "%1"

10. Now, right-click any .7Z file you want to convert into an installer, and click "Create Installer"
11. A DOS window will prompt you for the command you want to execute within the 7Z archive. Enter it without quotes.
12. Voila! The installer appears alongside the 7Z file.

Sorry I don't have time at the moment to upload screen shots. Just wanted to post this up. It's been a *great* tool for me. Thanks!

This post has been edited by judolphin: 05 February 2009 - 02:46 PM


#267 User is offline   PiRaT3iToR 

  • Group: Members
  • Posts: 4
  • Joined: 19-February 09

Posted 25 February 2009 - 10:18 AM

hi , nice guide ! :yes:

my problem is this

;!@Install@!UTF-8!
RunProgram="tfb.exe"
$location = @ProgramFilesDir & "\tfb\test\"
fileCopy("tc.plg", $location)
;!@InstallEnd@!


I like 7zip too, for it wonderful compression - but its not work :no:

Any Ideas?

#268 User is offline   iuli_kyle 

  • SFXMaker Developer
  • PipPip
  • Group: Members
  • Posts: 125
  • Joined: 24-March 07

Posted 25 February 2009 - 01:57 PM

The configuration file is incorrect. From what i see, i guess you used AutoIT. 7-Zip (written in C) and AutoIT are totally different things. I suggest you use my little application, SFXMaker which automatizes the process of creating switchless installers. You can find it in this forum or at iSoft Official WebPage :)

#269 User is offline   znogi 

  • Group: Members
  • Posts: 1
  • Joined: 06-July 09

Posted 06 July 2009 - 11:06 AM

I am a Noob to this. Where can i find the $OEM$ Folder?

This post has been edited by znogi: 06 July 2009 - 11:06 AM


#270 User is offline   ghostE 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 13-May 08

Posted 06 July 2009 - 02:09 PM

Hello ppl
How do you know to make all the switches? & all the cmd commands?
i need a guide please for the switches
Thank you for your help...

This post has been edited by ghostE: 06 July 2009 - 02:10 PM


#271 User is offline   strel 

  • segmentation fault
  • PipPipPipPip
  • Group: Members
  • Posts: 629
  • Joined: 24-February 08
  • OS:XP Pro x86
  • Country: Country Flag

Posted 06 July 2009 - 02:15 PM

Look here: http://7zsfx.info/en/

#272 User is offline   ghostE 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 13-May 08

Posted 06 July 2009 - 02:23 PM

View Poststrel, on Jul 6 2009, 03:15 PM, said:


Thank man it look scary but i'll try
Thanks again

#273 User is offline   peekaboo2 

  • Group: Members
  • Posts: 1
  • Joined: 10-May 10
  • OS:XP Home

Posted 10 May 2010 - 06:36 AM

View PostAstalavista, on 15 March 2005 - 04:56 PM, said:

DigitalAZ

it u are hving problems with keytotime guide

i have a video! yes a video on how to 7zip office 2003

check the link on my sig

keytotime

u are welcome to link or use my video as a ref to making 7zip.

:)

I cant find your video !

#274 User is offline   behdadsoft 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 29-May 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 08 June 2010 - 05:24 AM

I act according to your instructions and I made a file setup with 7Zip
But the program only compressed mode is removed and the file runs the installation program should I install it myself. While the installation program should automatically be done. Please guide me. :hello:

This my Config File :

config:
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="Setup.exe"
;!@InstallEnd@!

And use this command :

copy /b 7zsD.sfx + config.txt + (Setup.exe).7z (Setup.exe).exe

#275 User is offline   twistedfate122 

  • Group: Members
  • Posts: 1
  • Joined: 20-June 10
  • OS:XP Pro x86
  • Country: Country Flag

Posted 20 June 2010 - 11:13 AM

for some reason i cant download the 7zs.sfx file

#276 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 04 September 2010 - 01:27 AM

@keytotime
Thanks for this tutorial!
Could you please give the new links, because there are "broken"!?
Regards

#277 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 18 September 2010 - 10:55 AM

Many Thanks keytotime! :rolleyes:
Links work now correctly!
Regards

This post has been edited by myselfidem: 18 September 2010 - 10:55 AM


#278 User is offline   diginode 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 05-September 06
  • OS:XP Pro x86
  • Country: Country Flag

Posted 06 April 2011 - 10:53 AM

How can add extract progress bar in 7z switch-less installer? any that version 7z.sfx is available?

#279 User is offline   eltunisie 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 17-February 11
  • OS:XP Pro x86
  • Country: Country Flag

Posted 18 June 2011 - 11:58 AM

haiiiiiiiiiiiiiiiiii
I need to copy some files to c:\
i used this code but not working :
--------------------------------------------
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="cmd /c xcopy *.* \"%SystemDrive%" /y /h"
;!@InstallEnd@!
---------------------------------------------
What the true code i used to copy????????????

#280 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,447
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 20 June 2011 - 10:27 AM

View Posteltunisie, on 18 June 2011 - 11:58 AM, said:

haiiiiiiiiiiiiiiiiii
I need to copy some files to c:\
i used this code but not working :
--------------------------------------------
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="cmd /c xcopy *.* \"%SystemDrive%" /y /h"
;!@InstallEnd@!
---------------------------------------------
What the true code i used to copy????????????

Happy to see that the problem is solved! :)

http://www.msfn.org/...240#entry968970

Share this topic:


  • 15 Pages +
  • « First
  • 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