Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Vista Unattended Programs Install Walkthrough

- - - - -

  • Please log in to reply
9 replies to this topic

#1
outkast134

outkast134
  • Member
  • 4 posts
After a LOT of searching and only being able to piece together sketchy answers I (with the help of a friend also) have finally figured out a way to install 3rd party programs during an unattended installation of Vista, similar to how the RunOnceEx works for WinXP. I thought I would share it here.

I am going to assume that users that look a this guide have already started making a new unattended installation CD of Vista using vLite. There is also a guide for how to use vLite HERE. You don't have to use vLite, however, it is so far the easiest and most dependable method I have found. Another method would be using the windows full WAIK.

Whatever method you choose is up to you, basically the point I want to get at is by now you should have your Vista DVD copied to your hard drive by now and it should look similar to this:

Posted Image

Now once you are at this point we will focus on creating the necessary directory structure to be able to install our apps.

1. In your Vista DVD that you have copied to your hard drive open the Sources folder.
2. In the sources folder create a new folder and name it $OEM$
3. In the $OEM$ folder create 2 new folders and name one $1 and the other $$
4. In the $1 folder create another folder and name it Install (this is where we will put our installers for the apps we want installed)
5. In the $$ folder create another folder and name it Setup
6. In the Setup folder create another folder and name it Scripts (this is where we will put our batch file that runs the commands to install the apps)

So now just to make sure we have everything set up right the directory structure should be:

Posted Image

Once you have verified your directory structure copy your application installers into the Install folder.

Now the last thing we have to do is create the batch file to run the installers during windows install. You can create that using Notepad. There are a few commands you will need to know to be able to make a successful batch file.

The first one is the 'start' command. This will run your installers.
The second one is '/wait'. This makes sure the previous app installation has finished before starting the next one.
The next one is 'RD'. We will use this to remove our Install directory after everything is installed so that they aren't taking up space on our hard drive.
Its also good practice to use %systemdrive% to point to the root of which ever drive letter you have your windows installation on in case it is something other than C:\

The full command to run an installer will then be:

start /wait %systemdrive%\install\apptoinstall.exe
You can also put the different switches to make the application install silently at the end of the line. To install another app just simple begin a new line with another 'start' command.

To remove the Install folder once everything has been installed the command is:

RD %systemdrive%\install /q /s
Besides that the only other things you need to do is make sure you start your batch file with '@echo off' and end it with 'exit'.

Once you have finished making you batch file you MUST save it as setupcomplete.cmd and put it on your scripts folder you have created.

Here is an example of a setupcomplete.cmd file I have created in order to silently install .net Framework 3.5 and AVG 8.5. I have tested the install and it worked perfectly under 32-bit Vista. Just be sure to not allow word wrapping when creating your batch file because as you can see some app installers have a lot of switches to include (like AVG).

@echo off

start /wait %systemdrive%\install\dotnetfx35.exe /q /norestart
start /wait %systemdrive%\install\avg_free_85.exe /HIDE /NO_WELCOME /NOAVGTOOLBAR /DONT_START_APPS /REMOVE_FEATURE fea_AVG_SafeSurf /REMOVE_FEATURE fea_AVG_SafeSearch /ADD_FEATURE fea_AVG_EmailPlugins /ADD_FEATURE fea_AVG_EMC

RD %systemdrive%\install /q /s

exit
After you have finished all of this the last thing you will need to do is build your iso of your new Vista DVD. You will be able to do that using vLite, or your favorite iso building software.

Good Luck!!!!

Edited by outkast134, 28 April 2010 - 12:45 PM.



How to remove advertisement from MSFN

#2
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,763 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

Welcome to the MSFN!

:hello:

We have a couple of forum sections you may be interested in:
Unattended Vista
vLite
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#3
outkast134

outkast134
  • Member
  • 4 posts
Thank you for the welcome. Couldn't find a guide much like this but saw dozens of questions about it. Have fun with it. ;)

#4
surnas

surnas
  • Member
  • 1 posts
thank you for this guide.

i want to ask : does it work in win 7 as vista??

#5
outkast134

outkast134
  • Member
  • 4 posts
It is not tested in Windows 7. I would assume it depends if the directory structure and command is the same.

#6
jpavly

jpavly
  • Member
  • 4 posts
I already use this method, but why use ECHO OFF?

Mine is having some trouble when I want to use paths with spaces, such as:

 
"C:\Program Files\Common Files\Windows Live\.cache\WLMessenger 2009.msi" /passive 


installations always fail, I thing it does not recognize thttp://www.msfn.org/board/index.php?#he quotes or something.

Edited by jpavly, 22 May 2009 - 02:25 AM.


#7
razormoon

razormoon

    Little boots...!

  • Member
  • PipPip
  • 216 posts
@jpavly

You can concatenate your paths with tilde. c:\progra~\common~\...

@surnas

Most of it does work with W7. $OEM$ paths diagram for sure...
Zero in 2012

#8
jpavly

jpavly
  • Member
  • 4 posts

@jpavly

You can concatenate your paths with tilde. c:\progra~\common~\...

LOLed, I sure didn't think of the obvious, thanks for the reminder. :)

#9
Burntman

Burntman
  • Member
  • 1 posts
:thumbup thaqnk you very much

#10
ajua

ajua

    Custom Installer Maker

  • Member
  • PipPipPipPipPipPip
  • 1,261 posts
Does using OEM folder make the setup to copy all its contents to the hard drive? Making the installation time longer.

I use FirstLogonCommands.cmd to install my programs and Setupcomple.cmd to import my tweaks prior to the first user logon.

Works great, and avoids all the copying.

Custom Installers for your unattended needs.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN