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
  • 9
  • 10
  • 11
  • 12
  • 13
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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

#201 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,233
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 February 2007 - 10:31 AM

View PostShark007, on Feb 21 2007, 11:26 AM, said:

View Posthfrfc, on Feb 21 2007, 10:16 AM, said:

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
Yep and use RunHiddenConsole and /W to hide the ugly cmd window http://www.msfn.org/board/index.php?showto...p;mode=threaded


#202 User is offline   hsnorh 

  • Group: Members
  • Posts: 1
  • Joined: 27-April 07

Posted 27 April 2007 - 05:57 AM

thank you keytotime...

#203 User is offline   tech_boy 

  • Newbie
  • Group: Members
  • Posts: 43
  • Joined: 21-December 06

Posted 09 May 2007 - 05:14 AM

ok... newbie question coming up... :thumbup

Righty, so my installer has been made (happy days), it all works fine, BUT, where in the folder hierachy for my unattended CD does it go?

Appologies for the horrendous question, but its wednesday and i'm tired!

Jonny :unsure:

#204 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 09 May 2007 - 05:36 AM

I simply follow the great MSFN unattended guide's RunOnceEx section :
http://unattended.ms...xp/view/web/31/

So inside your 'XPCD\$OEM$' folder, then make a new folder named '$1' and everything you place in there will be copied to '%systemdrive%' during installation. Then make a new folder in 'XPCD\$OEM$\$1' called e.g. 'install'(you can also make another one called e.g. drivers) and then place all your apps in there + a 'cleanup.cmd' file which amongst other command also includes 'rd /s /q %systemdrive%\install' at the end, so that the '%systemdrive%\install' directory is deleted. Also follow the above linked guide to make yourself a 'RunOnceEx.cmd' file and place it in the 'XPCD\$OEM$' folder and add "RunOnceEx.cmd' to your 'cmdlines.txt' file right under [COMMANDS].

Alternatively, you can make the switchless installers into nLite addons instead and add them as hotfixes, but personally i preffer the above solution...

CU, Martin.

Edit: Corrected 'Additionally' to 'alternatively'.

This post has been edited by Martin H: 09 May 2007 - 05:39 AM


#205 User is offline   tech_boy 

  • Newbie
  • Group: Members
  • Posts: 43
  • Joined: 21-December 06

Posted 09 May 2007 - 08:05 AM

thanks for your fast and knowledgeable reply martin!

Few questions,
After following the 7Zip installer method, im left with a file called dotnetfx.exe (for example) is that the app that has to be run through RunOnceEx?
Also, is RunOnceEx the only way to install switchless installers, or is there another way?

Cheers again

Jonny

Sorry, is there no way to call it from cmdlines.txt directly and not have to use runonceex?. appologies for being a berk!

This post has been edited by tech_boy: 09 May 2007 - 08:08 AM


#206 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 11 May 2007 - 06:38 AM

You can instead use the GuiRunOnce method for installing apps and which is a little easier than the RunOnceEx method(but a little less professional looking during install). You then remove the 'RunOnceEx.cmd' from your 'cmdlines.txt' and instead add the following to your 'winnt.sif' file :

[GuiRunOnce]
%systemdrive%\install\start.cmd

Then place all your apps/switchless installers into a folder you create called: 'XPCD\$OEM$\$1\install\'. Then you create a batch file which installs all the apps and name the batch file 'start.cmd' and also place it in the 'XPCD\$OEM$\$1\install\' folder.

Please read MSFN's 'Unattended Windows' guide, so that you will understand the basics a litttle better :

http://unattended.ms...nded.xp/sitemap

CU, Martin.

Edit: Sorry, i apologise for being off-topic...

This post has been edited by Martin H: 11 May 2007 - 06:46 AM


#207 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 11 May 2007 - 08:23 PM

Just in case someone didn't knew it, then Oleg_Sch has made a modified version of the 7-Zip SFX installer module, which e.g. gives the possibility of hidding the extraction dialog completely, so that the installation will become totally silent. This is done by adding 'GUIMode="2"' to 'config.txt'.

It's from the same guy which also gave us the two other great tools 'hidcon.exe' and 'msistub.exe'.

http://7zsfx.solta.ru/en/

CU, Martin.

This post has been edited by Martin H: 26 July 2007 - 03:52 PM


#208 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 12 May 2007 - 08:12 PM

I have just read up on the docs for the modified 7-Zip SFX installer module and i'm just blown away of how cool it's been made now :)

There are a bunch of commands that can be used in 'config.txt', but most notably, then '.msi' files can be run from 'RunProgram=', so 'msistub.exe' isn't needed anymore.

The console window can be completely hidden if adding the parameter 'hidcon:' to 'RunProgram=', like this : RunProgram="hidcon:setup.cmd", so 'hidcon.exe', 'hidec.exe' and 'cmdow.exe' and the likes isn't needed anymore either.

Finally, then "waiting" is enabled by default for 'RunProgram=', unless 'nowait:' parameter is used, so 'startX.exe' is also not needed anymore.

These examples are all from the latest beta linked to in my previous post.

CU, Martin.

#209 User is offline   leadboots5 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 13-May 07

Posted 13 May 2007 - 11:34 PM

ok, im completely noob i guess. im pretty good at computers, but im completely new to this. . heres how i interpret this. any help is appreciated. i have read all 11 pages of this.

making winrar 3.7:

1. make the archive - i used universal extractor to extract the .exe and then archived them
made file: winrar.7z

2. from reading i gathered i could use the newest .sfw thinger
downloaded file: 7zSD.sfx

3. make notepad file save in UTF8
file has:
;!@Install@!UTF-8!
RunProgram="winrar.exe /s" (i have no idea what executable it wants. so i assume the final one you make from the 3 files)
GUIMode="2"
;!@InstallEnd@!

4. folder has 3 files now

5. open command prompt CD to folder
type/run : copy /b 7zsd.sfx + config.txt + winrar.7z winrar.exe

then i go and to Run As. im an administrator. and i get "could not open archive file (target file here) access is denied"
so i uncheck the protect my computer box on the run as and do it again. it opens up WinRAR. which is installed already and an old version.

#210 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 14 May 2007 - 04:30 AM

Sorry, i don't know what the problem is and i also don't know why you need to make extra "run as" changes if your user account has admin rights to begin with, but atleast i can answer this question of yours :

Quote

RunProgram="winrar.exe /s" (i have no idea what executable it wants. so i assume the final one you make from the 3 files)

It's the '.exe' or '.cmd' file which you want to have loaded after the '.7z' archive has been extracted, so if you have a folder with: '7ZSD.sfx', 'config.txt' and 'archive.7z', then it's the installation program, or batch file which is packed inside the 7z archive. Basically, what happens is that the '7ZSD.sfx' module will unpack the 7z archive into your Windows Temp folder and then it will look in the 'config.txt' file to see which file you want to have loaded from the newly unpacked 7z archive, which in your case is the 'winrar.exe' installer executable and with the extra '/s' switch to make the installation silent/unattended.

Sorry that i couldn't be of more help, though - but i just thought that i would explain what exactly happens, so that you would understand the answer to your question.

CU, Martin.

Edit: Ahh, i thought that i did remember that the WinRAR installer executable was called 'wrar.exe' or something and not 'winrar.exe' and so i have just downloaded the latest version(WinRAR v3.7b8) to check the name of it(i personally have converted to 7-Zip for all packing/unpacking jobs) and sure enough, it was called 'wrar37b8.exe', so unless you have renamed the installer executable, then this should be the reason why you're having problems :)

This post has been edited by Martin H: 14 May 2007 - 04:42 AM


#211 User is offline   leadboots5 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 13-May 07

Posted 16 May 2007 - 12:07 AM

Thank you so much Martin. I think some of that should maybe be incorporated into the first post. I now have a silent installing WinRAR.

#212 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 16 May 2007 - 02:56 AM

You are very welcome, my friend :)

CU, Martin.

#213 User is offline   mr.Ghost 

  • Group: Members
  • Posts: 1
  • Joined: 05-February 07

Posted 23 May 2007 - 03:16 PM

Ghost's SFX-GUI for creating 7-zip SFX setups - Update 1.5
*Added Drag and drop
**Fixed some bugs

:thumbup

This is a GUI for creating Automated SFX - Archives with setup command! You can visit my website to download it. You can find it in URL REMOVED >> My Shared Downloads<<!


URL's REMOVED - YOU CANNOT LINK TO SITES THAT LEAD TO WAREZ

v1.4 Attached File  7zs_sfx.exe.exe (173.24K)
Number of downloads: 46450

This post has been edited by Shark007: 27 May 2007 - 07:52 PM
Reason for edit: removed URL's - edit post accordingly


#214 User is offline   ozzy 

  • Group: Members
  • Posts: 5
  • Joined: 17-September 07

  Posted 18 September 2007 - 06:28 PM

I'm a little confused. well thats because i'm totaly new in creating unattended windows cd's. I read keytotime's guide about how to create swichless installer (don't even know what that is), and didn't really understood what to do. could someone please help with a little more detailed version about how to create switchless installer??

#215 User is offline   Arie 

  • One Man Army
  • PipPipPipPipPip
  • Group: Members
  • Posts: 835
  • Joined: 27-August 07

Posted 19 September 2007 - 02:47 AM

View Postozzy, on Sep 19 2007, 02:28 AM, said:

I'm a little confused. well thats because i'm totaly new in creating unattended windows cd's. I read keytotime's guide about how to create swichless installer (don't even know what that is), and didn't really understood what to do. could someone please help with a little more detailed version about how to create switchless installer??

Why would you want to make a switchless installer, if you don't even know what it is? :unsure:

Creating an unattended installation disc does not require you to make any installers for other software, unless you want to include those in your whole installation process. May I suggest simply creating an unattended installation disc first, before looking into installing any other software unattendedly via silent, switchless installers? Once you have created an unattended installation disc which installs to your liking, you can always still add other software to your installation process. The tutorials posted on this forum, on the main web site and on RyanVM's forum are all very clear. Perhaps once you know how to create an unattended installation disc, these tutorials will be more clear to you.

#216 User is offline   Inferi0r 

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

Posted 19 September 2007 - 10:58 AM

Keytime's guide is a little old. Take a look at my new tutorial here. If you want help: just ask.

#217 User is offline   ozzy 

  • Group: Members
  • Posts: 5
  • Joined: 17-September 07

Posted 20 September 2007 - 12:00 AM

could someone tell me what the -ms inline option does??

#218 User is offline   piyasa_sager 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 08-April 08

Posted 10 April 2008 - 04:54 AM

excuse me guyes ... i have a problem .. i make 7zip files according the procedure define earlier ..than make it cab file .. but as the windows in last stage there is a msg "7.zip The System Cannot fine the file" can any one help me ?

#219 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,334
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 April 2008 - 05:10 AM

Post your config.txt file you used.

#220 User is offline   piyasa_sager 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 08-April 08

Posted 11 April 2008 - 09:09 AM

View PostKelsenellenelvian, on Apr 10 2008, 05:10 AM, said:

Post your config.txt file you used.

here is the for silent install and after making exe file of silent install i used this procedure

ADDON METHOD

Copy and paste [between the lines] into Notepad
__________________

[general]
builddate=2006/11/25
description=
language=
title=
version=
website=

[EditFile]
I386\SVCPACK.INF,SetupHotfixesToRun,AddProgram

[AddProgram]
example.exe
____________________

Change example.exe with the actual switch-less installer name you are using
Save this file as Entries_exampleAddon.ini

Put the emample.exe into a folder named SVCPACK
use rar or 7zip to package the ini file and the svcpack folder together with the same name as the ini file


but nlite is not accepting the file for nero :o i dont know why i do same procedure for msn, itunes and winamp.. successfully added to my xp cd .. but in case of nero the error is as follows

Unsupported File
K:\Nero.7z

can't able to understand..

one thing i want to confirum my procedure .. for making silent install 1st i have to install the main exe file into a folder .. then zip it using 7zip. in ultra mode, and put it into a folder.. after it i have to copy a file named as 7zS.sfx and then write the config file as i upload it .. after it i used this command
copy /b 7zs.sfx + config.txt + (whatever the archive name).7z (Installer_Name).exe
and one exe file is created that is silent instell

kindly tell me is that procedure is right ? plz mention here my mistakes ..

Attached File(s)

  • Attached File  config.7z (181bytes)
    Number of downloads: 21


Share this topic:


  • 15 Pages +
  • « First
  • 9
  • 10
  • 11
  • 12
  • 13
  • Last »
  • 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