Page 1
MSFN's Unattended Windows : Sitemap
Sitemap
q
Introduction
q
Beginner Introduction
r
Step 1 - Creating a Local Source
r
Step 2 - Slipstreaming Latest Service Pack
r
Step 3 - Updating Setup Source with Latest Hotfixes
s
Getting the Hotfixes
s
Installing the Hotfixes
s
Post-SP2 Hotfix Switch
s
SVCPACK.INF Method
s
nLite
r
Step 4 - Creating a Basic Unattended Setup
r
Finalising and Testing the CD
q
Intermediate Introduction
r
Methods of Install
s
Batch Scripting
s
RunOnceEX
r
Device Drivers
s
Drivers via WINNT.SIF
s
Drivers from CD
s
RAID/SATA Drivers
s
Bâshrat the Sneaky's Driver Packs
r
Applications
s
Office XP Index
s
Simple Installation
s
Advanced Installation
s
Office 2003 Index
s
Office 2003 Slipstreaming
s
Simple Installation
s
Advanced Installation
s
Application Database
s
Inno Setup
s
Installshield
s
NSIS
s
Windows Installer (.msi)
s
Wise Installer
r
Adding Users
r
Activation
r
Registry Tweaks
s
Registry Tweak Database
r
Finalising and Testing the CD
q
Advanced Introduction
r
Advanced Methods of Install
s
RunOnceEX from CD
s
Windows Post-Installer
s
Windows Installation Helper Utility
s
XPlode
r
Using Modified System Files
s
Unsigned Visual Styles
s
More Concurrent Connections
s
Windows File Protection
s
Other Modified files
r
Cosmetics
s
Setup Billboard
s
New Style Setup Billboards
s
Background Image
s
Other Images to Change
s
Text
http://unattended.msfn.org/unattended.xp/sitemap/print/ (1 of 2)12/24/2005 8:42:09 PM

Page 2
MSFN's Unattended Windows : Sitemap
s
Colors
s
Classic Style Setup Billboards
s
Boot Screen
s
Themes
s
Logon Screens
s
Adding custom OEM Info
r
Slimming down your CD/DVD
r
Creating a Multiboot CD/DVD
r
Member Created Applications
r
Finalising and Testing the CD
q
Reference
r
FAQ
r
Timeline
r
Overview of the $OEM$ Folders
r
winnt.sif Reference
r
Crashcourse in Switches
r
Virtual Machine Tips
r
Compressed Files
r
Using CDIMAGE GUI
r
CMDLINES.TXT Explained
r
Examples
r
Member Sites
r
Downloads
r
Credits/Copyright
Last updated 2005-12-24 15:57:57
http://unattended.msfn.org/unattended.xp/sitemap/print/ (2 of 2)12/24/2005 8:42:09 PM

Page 3
MSFN's Unattended Windows : Introduction
Introduction
Welcome!
Have you ever wanted a Windows CD that would install Windows by automatically putting in your name, product key, timezone
and regional settings? And have it merged with the latest Service Pack to save time? Followed by silently installing all your
favourite applications along with DirectX 9.0c, .Net Framework 1.1 and then all the required hotfixes, updated drivers, registry
tweaks, and a readily patched UXTheme.dll without any user interaction whatsoever? Then this guide will show you how you can
do just that!
Through the course of this guide, you will create a CD that does all the installing for you. The CD will be fully updated with the
latest hotfixes, and install all your programs for you.
This guide has been broken up into three parts: Beginner, Intermediate, Advanced.
It has been done so, to help you understand what you're doing and not to get over your head too fast. There are pages upon
pages of information on this subject, and this guide only covers the tip of the iceberg.
The Beginner portion will cover the updating of your CD, along with automating setup itself.
The Intermediate portion covers adding Drivers and Applications to your CD, as well as User creation and other little tidbits.
The Advanced section is where it gets really fun. We'll customize the look and feel of your setup, as well as add hacked files to
remove the limits put upon the system.
I must strongly suggest that you adhere to the sections untill you feel you have completely mastered them. You don't want to go
sailing without knowing how to sail.
Target Audience: Home users - who are taking up a time-consuming process of re-installing Windows, manually installing
essential applications, downloading windows updates, and tweaking their OS to perfection on every re-format.
Difficulty: Requires an intermediate experience of Microsoft Windows and a basic knowledge of how batch commands function.
Though batch scripts are briefly covered, it will be a good idea to brush up on your skills before starting.
» Latest Site Updates
24th December 2005 - Another major renovation you say? OF COURSE! New design, new backend management system, AND the
ability for normal users to submit additions???? HECK YES!
Enjoy!!
» Translations
These translations are neither supported or maintained by MSFN. We cannot verify the integrity of these translations so please use
at your own risk. Requesting help in your native language (with the exception of english) is not permitted on the MSFN forums.
You can check this forum thread to see if a translation is in progress if its not listed below. Please reply to the thread if you want
to make a translation.
German | Russian | Italian | Dutch | Simplified Chinese | Polish | Turkish
Last updated 2005-12-24 16:33:09 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/1/12/24/2005 8:42:12 PM

Page 4
MSFN's Unattended Windows : Beginner's Introduction
Beginner's Introduction
Welcome to the beginner's section of the guide. This portion is intended solely to get your CD updated and create a basic
Unattended disc. What this means, is that you get your CD/DVD updated with the latest service packs and hotfixes and
automating the majority of Windows Setup.
What you will need:
q
A Windows CD. This portion of the guide is applicable with Windows 2000 through Windows 2003.
q
The Service Pack you wish to use for your operating system. You will need the NETWORK INSTALL. It's the larger of the
two options to download. Windows 2000 SP4 - Windows XP SP1a - Windows XP SP2
q
The Deployment tools for your operating system. This guide will cover the build for Windows XP SP2. Those can be found
here
When testing your CD/DVD, instead of burning countless test discs, you could use a Virtual Machine. They're slightly slower, but
you don't have to reformat your computer just to test your CD/DVD.
Last updated 2005-12-14 16:46:19 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/2/12/24/2005 8:42:12 PM

Page 5
MSFN's Unattended Windows : Step 1 - Creating a Local Source
Step 1 - Creating a Local Source
This step is perhaps one of the easiest things to do, and with all easy things, many different ways to accomplish it.
I'm just going to cover two methods: Manual, and Automated.
» The Automated Way
We're going to use a program called nLite. It requires the .NET Framework, so if you don't want that on your computer, skip down
to the Manual section.
So let's get started.
q
Put the OS CD into your CDROM drive. If the Autorun menu starts, feel free to close it. We're not going to use it.
q
Now let's start of nLite. And continue untill you get to this screen.
q
Click the "Browse" button.
q
Select the CDROM drive with your OS CD inside of it.
http://unattended.msfn.org/unattended.xp/print/web/3/ (1 of 4)12/24/2005 8:42:13 PM

Page 6
MSFN's Unattended Windows : Step 1 - Creating a Local Source
q
Now, because you have selected a READ-ONLY source, i.e. the CDROM, another box will come up just like the first. This is
where your CD will be copied to.
q
Click OK and when finished, go ahead and exit out of nLite.
» The Manual Way
I prefer this method myself, primarily because I like doing things myself. We're going to manually copy our CD to the hard drive.
q
Put the OS CD into your CDROM drive. If the Autorun menu starts, feel free to close it. We're not going to use it.
http://unattended.msfn.org/unattended.xp/print/web/3/ (2 of 4)12/24/2005 8:42:13 PM

Page 7
MSFN's Unattended Windows : Step 1 - Creating a Local Source
q
Open up My Computer, then Right-Click on the CDROM with your CD in it, and select Open.
q
You can either, click and drag selecting all the contents of your current location, or simply press <CTRL><A>
q
Right-Click on your mouse, and select copy, or press <CTRL><C>
q
Now navigate to your hard drive, and create a new folder called whatever you want. Just remember it's name.
q
Open that folder, Right-Click on your mouse, and select paste, or press <CTRL><V>
http://unattended.msfn.org/unattended.xp/print/web/3/ (3 of 4)12/24/2005 8:42:13 PM

Page 8
MSFN's Unattended Windows : Step 1 - Creating a Local Source
From this point on, for the sake of ease, I will call the destination of your copied source XPCD.
The next step is to slipstream your copied source with your service pack.
Last updated 2005-12-03 18:22:22 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/3/ (4 of 4)12/24/2005 8:42:13 PM

Page 9
MSFN's Unattended Windows : Step 2 - Slipstreaming the Latest Service Pack
Step 2 - Slipstreaming the Latest Service Pack
As with the making of the local source in Step 1, this step also has two ways of accomplishing the goal.
The two methods are the Manual way, and the Automated way using nLite.
» The Automated Way
q
Start up nLite. Just keep clicking next till you get to this screen:
q
Click the Browse button, and select the folder you copied your source to in Step 1. I'll be using C:XPCD
q
After selecting the folder click till you get to this screen:
http://unattended.msfn.org/unattended.xp/print/web/6/ (1 of 5)12/24/2005 8:42:15 PM

Page 10
MSFN's Unattended Windows : Step 2 - Slipstreaming the Latest Service Pack
q
Click the Select button, and navigate to your download of the network service pack file, and click Open.
q
A couple boxes should come open with progress bars.
The above is for the extracting of the service pack, and the below for the integration of the service pack.
http://unattended.msfn.org/unattended.xp/print/web/6/ (2 of 5)12/24/2005 8:42:15 PM

Page 11
MSFN's Unattended Windows : Step 2 - Slipstreaming the Latest Service Pack
Just wait untill they all close and you're back at the nLite screen. If you receive this box:
feel free to click OK.
q
Back in nLite, the area just above where you clicked Select, should now reveal your Operating System and what service
pack level it is at.
q
Exit out of nLite, and continue to Step 3.
» The Manual Way
This way is going to walk you through the steps necessary, as if you didn't have nLite and wanted to type in the commands
necessary.
q
Click Start, and select Run. If you don't see it on the start menu, simply press <WINDOWSKEY><R>
http://unattended.msfn.org/unattended.xp/print/web/6/ (3 of 5)12/24/2005 8:42:15 PM

Page 12
MSFN's Unattended Windows : Step 2 - Slipstreaming the Latest Service Pack
q
Now click within the box where it says your filename, and type:
-s:C:XPCD
Where C:XPCD is the path to your Operating System local source. Note however, I did NOT point it to the I386 directory. It
MUST be the directory I386 is within.
q
You should see these boxes appear on screen:
http://unattended.msfn.org/unattended.xp/print/web/6/ (4 of 5)12/24/2005 8:42:15 PM

Page 13
MSFN's Unattended Windows : Step 2 - Slipstreaming the Latest Service Pack
q
Click OK on the final box, and continue to Step 3.
Last updated 2005-12-03 18:24:08 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/6/ (5 of 5)12/24/2005 8:42:15 PM

Page 14
MSFN's Unattended Windows : Step 3 - Updating Setup Source with Latest Updates
Step 3 - Updating Setup Source with Latest Updates
At the time of making this guide, there's probably approximately 25-35 MB of critical updates on Windows Update for Windows.
Nobody likes to download them, especially if you're on 56K when you're eager to get all your essential applications installed and
making a full backup before properly using your OS. Thanks to the silent install switches, we can now include 35 MB of hotfixes on
the CD and get them installed all in one go. This section covers two parts - Getting the Hotfixes and Installing the Hotfixes.
Getting the Hotfixes | Installing the Hotfixes
Last updated 2005-12-03 18:14:28 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/26/12/24/2005 8:42:15 PM

Page 15
MSFN's Unattended Windows : Hotfix Introduction
Hotfix Introduction
Welcome to the portion to add system updates to your OS CD. There 4 methods. 2 manual, and 2 automated.
» Manual Way
The two methods here are using the /INTEGRATE switch of the newer hotfixes, or creating a SVCPACK.INF file. The /INTEGRATE
method only works for the most recent hotfixes released, I recommend using this ONLY with Windows XP SP2 hotixes. This does
not include the Internet Explorer patches. The SVCPACK.INF method is the old official method, which the /INTEGRATE switch does
create, but doing it by hand allows you to also add the IE patch and others. The SVCPACK.INF method is compatible with Windows
2000-2003
Choose your method now:
/INTEGRATE switch | SVCPACK.INF Method
» Automated Way
The other way is nLite which is only compatible with the newer hotfixes that have been recently released, and again suggested
only for Windows XP SP2.
nLite Method
» Other Ways
A member of our forums, RyanVM, has created his own Update pack based on the Microsoft patches. While this is an efficient
method of apply the hotfixes, it will not be discussed as there are many variables involved. However, if you are interested, feel
free to visit his webpage for details. RyanVM's MSFN Files
XPCREATE is another member program created by GreenMachine. It's not mentioned in this guide because it is currently being
updated and will be added at a later date. GreenMachine's Website
AutoPatcherXP and associated programs will not be discussed here as well. This is not meant to be a form of bias, but as above,
there are many variables, and not everyone requires the patches that are included in this pack. AutoPatcher's Homepage
Last updated 2005-12-22 14:59:03 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/4/12/24/2005 8:43:17 PM

Page 16
MSFN's Unattended Windows : Getting the Hotfixes
Getting the Hotfixes
You're probably wondering how to find out which exact hotfixes you need for Windows, there are 4 ways to do this, excluding
using XPCREATE which downloads them for you:
» Method 1 - An up-to-date list
A full list of Critical Updates are available at this forum thread (Covers Windows 2000 up to 2003). The list at the forums is kept
up-to-date at all times.
» Method 2 - Windows Update
Set up a base install of Windows XP SP2 (with no updates installed), and go to Windows Update. Take note of the 6 digit numbers
on each Critical Update, e.g. "329441: Security Update for Microsoft Windows".
After you have taken note of all the 6 digit numbers on every security update, you need to attach them to the end of this URL:
http://support.microsoft.com/?kbid=xxxxxx replacing the xxxxxx with the numbers you wrote down.
Then download from the link provided at the Knowledge Base Article (some articles will link to a Technet Security Bulletin). Repeat
for the other updates shown on Windows Update.
» Method 3 - Windows Update Catalog
Set up a base install of Windows XP SP2 (with no updates installed), and access Windows Update. . Click on the "Personalize
Windows Update" link on the left pane, Check the "Display the link to the Windows Update Catalog" under the "See Also" check-
box under "Set options for Windows Update" list in the right pane, Click the "save settings" button in the top right of the right
pane.
Then click on the "Windows Update Catalog" link under the "See Also" list in the left pane, click "Find updates for Microsoft
Windows operating systems" in the right pane, select OS (Windows XP SP2) in the Operating-system-list and your OS language in
the Language-List, and then click search in bottom right of the right pane.
You are now presented with links to "Critical Updates and Service Packs", "Multi-Language Features" and "Recommended
Updates". Open each link and add what components/updates you want and click the "Go to Download Basket" link when you are
done. Select the path to download the updates in (Must be an existing folder) and click on the "Download now" Button. The
updates will now be downloaded and categorized in separate folders, automatically on your own hard-drive.
Note: The Windows Update Catalog is not as accurate as Windows Update itself.
» Method 4 - HFNetChk
Instead of accessing Windows Update, grab the freeware HFNetChk Utility. As it explains on its site: "HFNetChk.exe is the multi-
threaded command-line tool you can use to assess a computer or selected group of computers for the absence of security
patches.".
Install HFNetChk and open up Command Prompt (Start > Run > CMD). Change to the directory where HFNetChk is installed
(Usually C:\Program Files\Shavlik Technologies\HFNetChk\), and type: hfnetchk -v
Make a note of the Knowledge Base Article numbers and look them up as explained in Method 2, or use the Technet Security
Bulletin numbers (MSxx-xxx) and look them up using this URL:
http://www.microsoft.com/technet/security/bulletin/MSxx-xxx.asp replacing the xx-xxx with the numbers shown in HFNetChk.
» Conclusion
Its a lengthy process, but it certainly does pay off in the end. It will be much easier to maintain your hotfix list in the future since
only a hotfix or two is released every second tuesday of the month. (That's Microsoft Patch Day!). Hotfix updates will be
announced on the frontpage of MSFN.org as soon as they are released.
Last updated 2005-11-21 16:33:04 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/5/12/24/2005 8:42:16 PM

Page 17
MSFN's Unattended Windows : /INTEGRATE Method
/INTEGRATE Method
Of the manual methods, this is most likely one of the simplest. All we're going to do is execute the hotfixes we downloaded
previously, and add the /INTEGRATE switch to them.
» Getting down to business
q
Open up the Run dialog box.
q
Click browse, and select your first hotfix file.
q
Now click into the box, and type:
/integrate:C:XPCD
Change C:XPCD to the directory you copied your source to in Step 1.
q
Click OK.
q
When the process has finished, a box similar to this should appear:
q
Continue repeating these steps untill you have processed all the hotfixes you have downloaded.
Last updated 2005-12-02 22:14:45 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/23/12/24/2005 8:42:16 PM

Page 18
MSFN's Unattended Windows : SVCPACK.INF Method
SVCPACK.INF Method
In this section of the guide, we'll help you set up a hotfixes installation that will run in the GUI-mode part of Setup. The hotfixes
installation will execute at the "13 minutes left" stage, which will take somewhere between 5-20 minutes to complete - depending
on your system specifications.
(I know this page seems very long, but it only takes 10 minutes to do everything explained. Its just very detailed!)
» Setting up your Hotfixes and the svcpack.inf file
Copy all your downloaded hotfix files into this directory: C:\XPCD\i386\SVCPACK\
All hotfixes must be renamed to an 8.3 naming format (no more than 8 characters in length). For example, filenames such as
Q819696_WXP_SP2_x86_ENU.exe and WindowsXP-KB824146-x86-ENU.exe should be renamed to Q819696.exe and
KB824146.exe in that order respectively.
Below are the necessary SVCPACK.INF entries for Windows 2000, Windows XP, and Windows 2003 respectively.
Open Notepad and copy and paste the following below:
;Windows 2000
[Version]
Signature=" NT$"
MajorVersion=5
MinorVersion=0
BuildNumber=2195
[SetupData]
CatalogSubDir="\i386\SVCPACK"
[ProductCatalogsToInstall]
[SetupHotfixesToRun]
Q330994.exe /Q:A /R:N
Q819696.exe /Q /O /N /Z
KB824146.exe /Q /O /N /Z
qchain.exe
;Windows XP
[Version]
Signature=" NT$"
MajorVersion=5
MinorVersion=1
BuildNumber=2600
[SetupData]
CatalogSubDir="\i386\SVCPACK"
[ProductCatalogsToInstall]
[SetupHotfixesToRun]
Q330994.exe /Q:A /R:N
Q819696.exe /Q /O /N /Z
KB824146.exe /Q /O /N /Z
qchain.exe
;Windows 2003
[Version]
Signature=" NT$"
MajorVersion=5
http://unattended.msfn.org/unattended.xp/print/web/24/ (1 of 3)12/24/2005 8:42:17 PM

Page 19
MSFN's Unattended Windows : SVCPACK.INF Method
MinorVersion=2
BuildNumber=3790
[SetupData]
CatalogSubDir="\i386\SVCPACK"
[ProductCatalogsToInstall]
[SetupHotfixesToRun]
Q330994.exe /Q:A /R:N
Q819696.exe /Q /O /N /Z
KB824146.exe /Q /O /N /Z
qchain.exe
Save this as svcpack.inf in C:\XPCD\I386\. You must delete svcpack.in_ in the I386 directory otherwise Windows XP Setup will
not use the svcpack.inf file.
The entries shown in [SetupHotfixesToRun] are just an example. All the hotfixes you have downloaded, renamed and copied to the
SVCPACK folder should be added under this section in svcpack.inf in numerical order. The images below will help to know what
syntax should be used:
Files that look like this should be installed
using the /Q /O /N /Z switch.
We'll call them Type 1 Hotfixes
Files that look like this should
be installed using the /Q:A /R:
N switch.
We'll call them Type 2 Hotfixes
You can also check this page for an in-depth description of the Type 1 switches. Keep in mind that the MDAC update does not use
any of those switches, please look here for the latest information on hotfixes and their switches.
» DOSNET.inf
Open up DOSNET.infin the i386 directory with Notepad and add the following text into the blank space you see in Notepad, (this
can be put anywhere really):
[OptionalSrcDirs]
SVCPACK
» QCHAIN.exe
Don't forget to add QCHAIN.exe to your SVCPACK folder. This utility will ensure that the highest file version is installed if there is
a scenario where 2 hotfixes contain the same exe/dll file with different version numbers.
Download and extract the file to get the actual QCHAIN.exe inside the compressed file. Copy QCHAIN.exe to the Update folder
then add QCHAIN.exe to the very last line after all your hotfix entries in svcpack.inf. It does not require any switches.
» Adding Windows Media Player 9/10
If you wish to include the latest Windows Media Player version, there are both available from this site as silent install packages,
below are the links. These are for ENGLISH platforms ONLY.
Adding this to SVCPACK.INF is simple.
http://unattended.msfn.org/unattended.xp/print/web/24/ (2 of 3)12/24/2005 8:42:17 PM

Page 20
MSFN's Unattended Windows : SVCPACK.INF Method
Open up your SVCPACK.INF file, and add an entry BEFORE any other hotfixes, simply with the name of the file you download
below. That's it!
Download: Windows Media Player 9 | Windows Media Player 10
» End Results
If you have done it all correctly, there should be no Critical Updates listed on Windows Update!
Last updated 2005-12-24 20:08:42 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/24/ (3 of 3)12/24/2005 8:42:17 PM

Page 21
MSFN's Unattended Windows : Explanation of Hotfix Switches used
Explanation of Hotfix Switches used
There are 5 switches in total which we can use with the Type 1 Hotfixes (the other switches documented by Microsoft's Knowledge
Base articles are irrelevant). Below you can find an explanation of them, and choose which ones you can use.
/U - Unattended Mode. No user interaction is required to install a hotfix, but you will see progress bar windows.
/Q - Quiet Mode. This functions exactly the same way as /U, but does not display any progress bar windows. You do not need to
use /Q and /U together.
/O - Overwrites OEM Files without prompting. Recent tests by several forums users have seen this to speed up hotfix installation
very noticeably, roughly shaving off one minute per hotfix. This is because each hotfix installation spends time searching for "third-
party drivers" repeatedly one after another. Using /O will prevent this.
Please use this switch with caution as this may overwrite any driver files you choose to install. (although we've not
heard any side effects from this since mentioning it here)
/N - Do not back up files for removal. This won't create any backups of older system files, thus there won't be any Add/Remove
entries for the hotfixes.
/Z - Do not restart when installation is complete.
Last updated 2005-12-03 02:01:09 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/22/12/24/2005 8:43:17 PM

Page 22
MSFN's Unattended Windows : nLite Method
nLite Method
nLite can also be used as a hotfix slipstreamer, however it can only be used with the LATEST hotfixes, and RyanVM's Hotfix Pack.
» Adding Hotfixes to be slipstreamed
q
Start up nLite click next till you reach this screen:
Right now everything is selected, deselect everything besides Hotfix Integration and click next.
q
After clicking next, you'll be brought to this screen:
http://unattended.msfn.org/unattended.xp/print/web/25/ (1 of 3)12/24/2005 8:42:18 PM

Page 23
MSFN's Unattended Windows : nLite Method
Click browse, and select your local setup source you created in Step 1, then click next.
q
The next screen is where you will select what hotfixes to integrate into the CD.
http://unattended.msfn.org/unattended.xp/print/web/25/ (2 of 3)12/24/2005 8:42:18 PM

Page 24
MSFN's Unattended Windows : nLite Method
Click the insert button, and select one of your downloaded hotfixes. Continue untill you select all your hotfixes. When
you're done, click next.
q
Click Yes, and nlite will begin it's business.
When the next button at the bottom becomes active, click it, and then you'll be at nLite's final screen. Click Finish, and
you're done.
Last updated 2005-12-03 02:17:53 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/25/ (3 of 3)12/24/2005 8:42:18 PM

Page 25
MSFN's Unattended Windows : Step 4 - Creating a Basic Unattended Setup
Step 4 - Creating a Basic Unattended Setup
An answer file is a way to script the answers for a series of graphical user interface (GUI) dialog boxes. An answer file also tells
Setup how to interact with the $OEM$ distribution folders and files you create, and supplies Setup with all of the information that
the end user would provide during a typical Windows Setup.
With the XP SP2 Deployment Tools you downloaded, simply extract them to a folder, or double click on the Cab file. The only files
you will need is setupmgr.exe and ref.chm:
The Setup Manager (setupmgr.exe) is a wizard-based answer file creation utility, so you won't come across too much difficulty in
using this application. To start you off, make the following choices:
q
New or Existing Answer File: Create New
q
Type of Setup: Unattended Setup
http://unattended.msfn.org/unattended.xp/print/web/7/ (1 of 4)12/24/2005 8:42:19 PM

Page 26
MSFN's Unattended Windows : Step 4 - Creating a Basic Unattended Setup
q
Windows Product: Which ever version you're preparing for
q
User Interaction: Fully Automated
http://unattended.msfn.org/unattended.xp/print/web/7/ (2 of 4)12/24/2005 8:42:19 PM

Page 27
MSFN's Unattended Windows : Step 4 - Creating a Basic Unattended Setup
q
Distribution Share: Set up from CD (ignore the message about IE customizations, they work actually!)
Having done that, accept the Licence Agreement, then fill in all the boxes as you would during Windows XP Setup. If you come
across a section that you don't understand, then ignore it. Windows XP will use whatever default option there is for that section.
When you've finished, it creates a file called unattend.txt. Since we are going to run Setup from a CD we need to rename this to
http://unattended.msfn.org/unattended.xp/print/web/7/ (3 of 4)12/24/2005 8:42:19 PM

Page 28
MSFN's Unattended Windows : Step 4 - Creating a Basic Unattended Setup
WINNT.SIF. Be sure that the file does not infact end up WINNT.SIF.TXT. It MUST not end in .TXT
» I want to manually control my partitioning and formatting options...
If you prefer to manually choose a partition during text-mode setup with full control on choice of file system, then make sure you
have these lines set as they are under the [Data] and [Unattended] sections in winnt.sif:
[Data]
AutoPartition=0
[Unattended]
FileSystem=*
If you want to automate this process with exact specifics on drive letters, partition sizes and file systems, you may want to
consider using Bart's PE and diskpart.
» Where does the winnt.sif file go?
Copy winnt.sif to the I386 directory within the local setup source folder you created in Step 1.
» Additional Information
Refer to the Reference page, or read through ref.chm to see how you can add extra options to your winnt.sif file, such as asking
Setup not to install Windows Messenger 4.7 and MSN Explorer 7.
Last updated 2005-12-03 18:25:15 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/7/ (4 of 4)12/24/2005 8:42:19 PM

Page 29
MSFN's Unattended Windows : Finalizing and Testing the CD
Finalizing and Testing the CD
Once you're happy with your Unattended XP CD preparation, double check to see if everything is correct, including the winnt.sif
answer file, all the batch files, svcpack.inf and anything else you might have added.
It is very likely that you will have several mistakes that have gone unnoticed, so its a good idea to test your installation in a
Virtual Machine. If you prefer to not use a Virtual Machine be sure to use CD-RW/DVD-RW discs to test before burning to a single
burn medium.
» Using Microsoft's CDImage Tool to create the ISO
CDImage is a command-line driven application developed by Microsoft to create an ISO image from a directory of files and folders.
We'll be using the CDIMAGE GUI to better illustrate the switches, especially since it's easier to determine which switches you wish
to use. The CDIMAGE GUI is just a frontend for the command-line tool. Read more about CDIMAGE GUI in the reference section.
Alternatively, doing it the long way round, you can burn all the contents of C:\XPCD\ to a CD-R, using one of these guides: MSFN
Windows XP SP2 Guide | The Elder Geek Windows XP SP2 Guide
» Notes
Make sure you burn the ISO using Disc-at-once in your burner options, rather than Track-at-once. Because this usually helps
resolve bootability issues or file copy errors.
Using software such as WinISO, UltraISO or any other variant to create/edit your bootable ISO image is not recommended as
there is a risk of corrupting your ISO file.
Last updated 2005-12-22 15:05:10 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/8/12/24/2005 8:42:20 PM

Page 30
MSFN's Unattended Windows : Intermediate Introduction
Intermediate Introduction
Welcome to the Intermediate section of the guide. This portion to intended to take your basic Unattended CD you created in the
Beginner section, and turn it into a CD that will also install your drivers and your favorite applications. Along with a few Registry
Tweaks, your CD may just be what you've needed for quite sometime, a CD that will install Windows and have it completely usable
from the start. Good luck with this portion of the guide, and remember if you have any problems, don't hesitate to ask in the
forums.
What you'll need:
q
A Basic Unattended CD from the Beginner Section
q
Some basic knowledge on Batch scripting
q
All your drivers and favorite programs handy
» OEM Preinstallation
We will be using the $OEM$ distribution folders to install our favorite software, drivers, and registry tweaks. But to make this
work, we need to specify two values in the WINNT.SIF file under [Unattended]
To edit the WINNT.SIF file, simply open it up in notepad and edit it as follows:
[Unattended]
OemPreinstall=Yes
UnattendSwitch="yes"
OemPreinstall=Yes instructs Windows XP Setup that there is an $OEM$ distribution share on the CD. This will tell setup to copy
them over to the destination hard drive of where Windows is being installed.
UnattendSwitch="yes" instructs Windows XP Setup to skip the "Welcome to Windows XP" screens, where user account and
Internet setting-up takes place. If you didn't skip this then it wouldn't really be "unattended" would it? :-) (Although we'll worry
about User Account creation by going to the Add Users & Auto Logon page later).
Now remember, just as with the beginner section, it is highly advisable to use a Virtual Machine. The downside of a Virtual
Machine at least in this section, is that you will have to hope your drivers will install in a real system, but drivers are usually the
easy thing to get working.
Last updated 2005-12-14 16:58:38 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/28/12/24/2005 8:42:20 PM

Page 31
MSFN's Unattended Windows : Intermediate Method Introduction
Intermediate Method Introduction
In the Intermediate section, I'm going to try and keep this simple, and only recommend you use two different methods of installing
your Drivers (where applicable) and Applications. The reason for this, is that I want you to get a general understanding of how
things work in the process before trying to accomplish something too sophisticated too fast.
Be sure to read the Crash course in Switches in the reference section.
The two different methods are:
q
Batch Scripting
q
RunOnceEX
http://unattended.msfn.org/unattended.xp/print/web/32/ (1 of 2)12/24/2005 8:42:21 PM

Page 32
MSFN's Unattended Windows : Intermediate Method Introduction
Last updated 2005-12-18 19:53:10 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/32/ (2 of 2)12/24/2005 8:42:21 PM

Page 33
MSFN's Unattended Windows : Batch Scripting
Batch Scripting
Before we start on making batch files to install our applications and registry tweaks, you may want to find out what they do and to
see how they are used:
Batch files (*.cmd or *.bat, although *.cmd is recommended) can be executed in several areas of Windows XP's Setup process.
Using batch files helps to automate several tasks at once without any interaction required.
They can be executed from either cmdlines.txt, svcpack.inf, a RunOnceEx entry in the Registry, or from the [GuiRunOnce] section
in winnt.sif. You will learn more about these as you go through this guide.
» Typical contents of a batch file
Batch files supports all the commands that work as if you was using the Command Prompt. To see Windows XP's Command
Prompt, go to Start > Run > and type cmd followed by enter.
Let's try making a small batch file that does several things. Open Notepad and copy and paste the following:
@echo off
title Batch File Testing
echo Hello World
echo.
echo Starting MS Paint
start mspaint
echo.
echo Starting Wordpad
start Wordpad
echo.
pause
exit
Save this as anything you like, as long as it has a .cmd extension. Now double-click on the file. You will find that it renames the
Window title to "Batch File Testing", opens MSPaint and Wordpad, asks you to press any key to continue, and then it exits.
@echo off
Hides the C:\> Prompt and any commands shown in the batch file.
echo.
Includes a line spacing.
echo message
Prints "message" in a Command Prompt window, purely for commenting purposes.
title
Sets the title of the window.
start
Start an application, or an installation.
pause
Displays "Press any key to continue..."
exit
Exits the Command Prompt
http://unattended.msfn.org/unattended.xp/print/web/30/ (1 of 2)12/24/2005 8:42:22 PM

Page 34
MSFN's Unattended Windows : Batch Scripting
sleep #
Pauses the execution of the batch script for # seconds, link on the download page.
cmdow @ /hid
Hides the batch file from view, useful if you don't want someone to cancel the process. Also on the
download page
Once you start adding software to your Unattended XP CD, you will find that most of the syntax on this site (in the Applications
area) is shown as something like this:
start "" /wait %systemdrive%\install\some_application\setup.exe /switch /anotherswitch
start will start the software's Setup program, and /wait will wait for Setup to finish installing before proceeding to the next line in
the batch. It's important that you use /wait so the rest of the batch doesn't get executed all at once, which will most likely
cause conflicts in the number of setup applications running at the same time. There are a few programs in which the /wait switch
will not work correctly, and in such cases use sleep.
Once you have a good understanding of using batch commands or want to find out more examples - check the Examples page.
» cmdlines.txt, svcpack.inf and [GuiRunOnce]
Batch files can also be run from cmdlines.txt or svcpack.inf which runs at the T-13 / T-12 minute stage of Windows XP Setup.
cmdlines.txt is useful for tasks such as Adding Users when using the net user method, or importing your HKEY_CURRENT_USER
registry tweaks to the Default profile. You will learn more about cmdlines.txt in the Reference section, and you may have used the
SVPCACK.INF Method for installing hotfixes; just think of the batch file as another hotfix to add.
An example of a batch running from [GuiRunOnce]: Screenshot
As you can see in the screenshot, its using a combination of "ECHO." and "ECHO message". Its not a requirement to use those,
but it lets you know how its progressing! [GuiRunOnce] is run on first logon.
» Where do I put the batch files?
For [GuiRunOnce], you can place them in any folder in the $OEM$ Distribution folders. For example, if you place batch_file.cmd in
C:\XPCD\$OEM$\$1\install\ then you would insert this path under [GuiRunOnce] in winnt.sif, like so:
[GuiRunOnce]
%systemdrive%\install\batch_file.cmd
The Install folder specified at C:\XPCD\$OEM$\$1\Install\ is copied over to the systemdrive, so it turns out to be C:\install\ - More
information on this can be found at the $OEM$ Distribution folders page.
For cmdlines.txt, it should be placed in the \$OEM$ folder, and does not need to be specified anywhere else to state its
existence. Windows Setup automatically scans for a cmdlines.txt file. All batch files launched by cmdlines.txt should be put into
the same folder.
svcpack.inf should go into the C:\XPCD\I386\ folder (make sure svcpack.in_ is deleted). Any batch files launched by svcpack.inf
should go into the C:\XPCD\I386\svcpack\ folder unless otherwise specified by the entries in svcpack.inf, but more info on this is
in SVCPACK.INF Method for Hotfixes.
» Next Step
Start adding your drivers and applications. This page was just meant to teach you about batch scripting and adding things to it.
Last updated 2005-12-20 15:02:21 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/30/ (2 of 2)12/24/2005 8:42:22 PM

Page 35
MSFN's Unattended Windows : RunOnceEx
RunOnceEx
If you would prefer to use an INF file to control RunOnceEx, you can follow gosh's guide to learn how here.
Some of you may have trouble understanding how to create your own RunOnceEx.cmd file as outlined in this guide, as it has a
steeper learning curve than batch files. eagle00789 over at the MSFN Forums has created an application to simplify this, known as
the RunOnceEx.cmd Creator.
» Getting Started
First of all, remove the [GuiRunOnce] entries in winnt.sif, as RunOnceEx can be used to replace [GuiRunOnce] completely.
Although you can use both if needed for some reason, but they will both run at the same time, so use caution.
To start RunOnceEx on first logon, we will need to import the registry keys during GUI-mode of Windows Setup. We can do this by
using cmdlines.txt which executes a series of commands during the T-12 minute stage of Windows XP Setup. Create a cmdlines.
txt file in Notepad and paste in the following:
[COMMANDS]
"RunOnceEx.cmd"
Save this as cmdlines.txt inside the $OEM$ folder within your Windows Setup Source folder. If there currently isn't one created,
create one. While we're on the subject, feel free to read about the $OEM$ Distribution Folders
» Creating your RunOnceEx.cmd file
This file will contain the syntax using REG.exe to import entries into the Windows Registry. This different method of importing
registry entries allows the %systemdrive% environment variable to be used. The other method of using *.reg files requires a
fixed drive letter (environment variables won't work), which isn't perfect if we wanted to install Windows onto D:\ or E:\ on a
different PC.
Here is an example of what you can use:
cmdow @ /HID
@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\AR6.msi /qn" /f
REG ADD %KEY%\010 /VE /D "Alcohol 120" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /f
REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f
REG ADD %KEY%\015 /VE /D "Diskeeper 8" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\DiskeeperPro_8.0.459.exe /s /v/qn" /f
REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f
REG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f
EXIT
Save this as RunOnceEx.cmd in C:\XPCD\$OEM$\
http://unattended.msfn.org/unattended.xp/print/web/31/ (1 of 3)12/24/2005 8:42:22 PM

Page 36
MSFN's Unattended Windows : RunOnceEx
You may have noticed the 5 number gaps between each registry key. This allows you to easily maintain your list by adding
another application between two existing keys, (for example, we have 001 and 005, we can add additional keys of 002, 003 or
004). Customize it as you wish. Each task is run in numerical order.
» Understanding the RunOnceEx.cmd file
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
This sets the registry address "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" to a variable, called %KEY%.
This saves on having to specify the full path everytime we use REG ADD.
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
This sets the title of the Window. The wording surrounded in quotations is customizable.
REG ADD %KEY%\010 /VE /D "Alcohol 120" /f
This sets the name of a task you want to process, and appears on the RunOnceEx window.
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /f
REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f
You can assign several tasks to "Alcohol 120" by using /V 1, 2, 3 and so on.
As you can see in the RunOnceEx screenshot, the little arrow won't move to the next application until all those tasks have
completed.
In short, all you really need to do is duplicate each REG ADD entry, but change the numbering and everything enclosed in
quotations. If you want more information, type REG ADD /? at the Command Prompt.
» cmdow.exe
What is cmdow @ /HID? This is a tool designed to hide your command line window from the end user, you can get cmdow.exe
from here. Place cmdow.exe into the \$OEM\$$\System32\ directory, so cmdow is copied over during Setup and then the tool
can be executed from anywhere without a direct path to the \Windows\System32 folder.
» Applications that use Quotations
You will find that if you add additional " " quotation marks in the REG ADD entries, it won't be imported to the Windows Registry.
To work around this, use a backslash \" for every quotation you intend to add, for example:
%KEY%\005 /V 1 /D "\"%systemdrive%\install\AdobeReader6\Adobe Reader 6.msi\" /qn" /f
By doing this, you can execute applications that contain spaces in the filename, or application switches that need to be enclosed in
quotations.
If there is an application that has a series of complicated switches with lots of quotation marks, consider putting them into a
separate .cmd file instead and launching from RunOnceEx, because it would get too messy putting those switches directly into
RunOnceEx.
» Cleanup.cmd
http://unattended.msfn.org/unattended.xp/print/web/31/ (2 of 3)12/24/2005 8:42:22 PM

Page 37
MSFN's Unattended Windows : RunOnceEx
This is optional. You can use cmd files to do tasks that would otherwise be messy if you added them to the REG ADD entries in
RunOnceEx.cmd file. To see how this file is executed, please see the RunOnceEx.cmd example file near the top of this page.
Cleanup.cmd can contain the delete and reboot commands, such as:
cmdow @ /HID
shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."
net user aspnet /delete
DEL "%systemroot%\*.bmp"
DEL "%systemroot%\Web\Wallpaper\*.jpg"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"
DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"
RD /S /Q %systemdrive%\drivers\
RD /S /Q %systemdrive%\install\
EXIT
» Summary
To summarize, RunOnceEx.cmd will be executed during the GUI-mode of Windows XP Setup at the T-12 Minute stage. This
however does NOT mean that your programs will install. After reboot and first logon, RunOnceEx will start as shown here, and
begin installing your programs.
You can test your RunOnceEx.cmd file by executing it. All it does is import the registry entries into HKEY_LOCAL_MACHINE
\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\. So you should open up Registry Editor to check that everything is
correct. Once you have verified its all correct, you should delete all the entries there as you don't want it running on next boot up
on your production system!
If however, you want to go through the whole process, or want to execute your RunOnceEx entries immediately after importing,
execute this line:
rundll32.exe iernonce.dll,RunOnceExProcess
Advantages of using RunOnceEx:
Sleek and professional to the end-user
Easier to maintain
You can check out my copy of RunOnceEx.cmd in the Examples section.
Last updated 2005-12-22 14:53:11 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/31/ (3 of 3)12/24/2005 8:42:22 PM

Page 38
MSFN's Unattended Windows : Device Drivers Introduction
Device Drivers Introduction
Ah Drivers, what every system needs. This guide will cover 3 different types of driver installation, and mention Bâshrat the
Sneaky's Driver Packs. Drivers from WINNT.SIF and Drivers from CD follow the same concept (at least in the scope of this guide),
in that Drivers from CD requires that you complete the majority of Drivers with WINNT.SIF. I'll explain more on it's page.
RAID/SATA Drivers will cover how to include your RAID/SATA drivers so that they're available during the TXTMODE portion of
setup, and that you don't need the original floppy disk to get it working.
Choose where you wish to go:
Drivers from WINNT.SIF | Drivers from CD | RAID/SATA Drivers | Bâshrat the Sneaky's Driver Packs
Last updated 2005-12-18 20:01:50 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/33/12/24/2005 8:42:23 PM

Page 39
MSFN's Unattended Windows : Drivers via WINNT.SIF
Drivers via WINNT.SIF
If you ever had to update a lot of drivers after installing Windows, then this guide will show you how you can get Windows Setup
to install your updated drivers rather than the ones from the drivers.cab file on the CD. It's not as difficult as you think!
» Drivers in winnt.sif [Unattended]
OemPnPDriversPath="Drivers\000_intel_INF;Drivers\001_gigabit_LAN;Drivers\002_monitor"
This is where you can tell Setup to search your updated drivers folders to find a better match than what's in the existing drivers.
cab on the Windows CD. If it finds a better match it will install those instead.
Note: Separate different directories with a semi-colon ";"
DriverSigningPolicy=Ignore
This will force Setup to install drivers that may not be WHQL certified. This is used in conjunction with OemPnPDriversPath.
(Feedback from the MSFN forums have said that this doesn't always work. Try to use WHQL certified drivers if you can!)
You can add as many drivers as you want for several machines with different hardware specs. There is no risk of installing wrong
drivers on a specific machine because Windows detects the best driver match for the hardware.
» How to prepare your drivers
All drivers are packaged differently, which is why we can't make a guide for every driver. But most of them can be extracted using
extraction software and will contain one, or several INF files inside.
Extract your driver package to any folder, and examine the contents of it. Sometimes you will find several sub-folders containing
the INF files in which case you need to make separate direct paths to them in OemPnPDriversPath. This is because Windows
Setup will not scan any sub-folders for any INF files.
Name your folders starting with numbers, this ensures that specific drivers get installed in a numerical order. As you may already
know, its important for chipset drivers to be installed before any other driver, this is why the chipset folder is given a number of
000, so its the first folder that Setup checks and installs. Here's an example below of how you can lay yours out:
000_chipset
001_network
002_graphics
003_tv_out
004_sound
005_monitor
006_keyboard
007_mouse
008_and_so_on
So first, its the chipset drivers, then your network card, followed by graphics and sound (and tv out if you have one), then monitor
drivers, and lastly any peripherals such as the keyboard, mouse, printer etc.
Copy all your driver folders to \$OEM$\$1\drivers\
http://unattended.msfn.org/unattended.xp/print/web/34/ (1 of 2)12/24/2005 8:42:24 PM

Page 40
MSFN's Unattended Windows : Drivers via WINNT.SIF
Open up winnt.sif and add these two lines under the [Unattended] section (the paths to the drivers are an example for this guide,
so simply replace with your own):
OemPnPDriversPath="Drivers\000_intel_INF;Drivers\001_gigabit_LAN;Drivers\002_monitor"
DriverSigningPolicy=Ignore
As you can see, its pointing to the folder where the .inf files are stored, not directly to the .inf file itself. Save winnt.sif and you're
all done!
» Troubleshooting
Not all drivers installations will work using this method. If you come across one that doesn't work, then you may want to consider
doing a silent installation on the driver package itself and run it from [GuiRunOnce]. You can check this page for guides on several
installation packages.
Other notes: You can install the ATi Catalyst drivers using the method above, but SmartGart won't be installed. However there is
an alternative - you can do a silent installation on the Catalyst driver package from [GuiRunOnce] using an ISS file.
You can also ask for help in the Device Drivers forum.
Last updated 2005-12-20 15:04:56 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/34/ (2 of 2)12/24/2005 8:42:24 PM

Page 41
MSFN's Unattended Windows : Drivers via CD
Drivers via CD
In this section, we will complete the same process as Drivers via WINNT.SIF except that they will install from CD. This will
decrease the amount of time setup requires to complete, and depending on the number of drivers you have will also simplify the
process slightly.
This whole method is all made possible by Pyron who created these few small programs for use in this process. The original forum
thread can be found here. You will also need to download these following files, and save them in a temporary location:
q
SETUP.EX_
q
presetup.cmd
q
SetDevicePath.exe
q
WatchDriverSigningPolicy.exe
I supposed this is a good time for a brief outline of what you're about to do. Basically, you're going to create the same folder
structure as in Drivers via WINNT.SIF. You're then going to replace SETUP.EX_ in your Windows Source with the one you just
downloaded. Make a few entries in TXTSETUP.SIF and your drivers will be good to go.
» How to prepare your drivers
All drivers are packaged differently, which is why we can't make a guide for every driver. But most of them can be extracted using
extraction software and will contain one, or several INF files inside.
Create a base driver folder in your Windows Source location (it does NOT have to be in $OEM$ at all), for example %WINSRC%
\Drivers with %WINSRC% being the path to your Windows Source. I suggest extracting your driver files to the proper
corresponding folder below, and don't worry about subfolders, let them be created. You'll see why it won't matter..
Name your folders starting with numbers, this ensures that specific drivers get installed in a numerical order. As you may already
know, its important for chipset drivers to be installed before any other driver, this is why the chipset folder is given a number of
000, so its the first folder that Setup checks and installs. Here's an example below of how you can lay yours out:
000_chipset
001_network
002_graphics
003_tv_out
004_sound
005_monitor
006_keyboard
007_mouse
008_and_so_on
So first, its the chipset drivers, then your network card, followed by graphics and sound (and tv out if you have one), then monitor
drivers, and lastly any peripherals such as the keyboard, mouse, printer etc.
Copy all your driver folders to \Drivers
http://unattended.msfn.org/unattended.xp/print/web/35/ (1 of 3)12/24/2005 8:42:25 PM

Page 42
MSFN's Unattended Windows : Drivers via CD
» Prepare Windows Source files
q
Open the Run dialogue box by going to Start then click on Run, or press <WINDOWSKEY><R>
q
In the Run box, type:
expand C:XPCDI386SETUP.EX_ C:XPCDI386SETUPORG.EXE
Change C:XPCD to the path of your Windows Setup Source. We are expanding the ORIGINALSETUP.EXE file to SETUPORG.
EXE.
q
Next copy the presetup.cmd and SETUP.EX_ file that you downloaded into the I386 directory in your Windows Setup
Source.
q
Now open TXTSETUP.SIF in Notepad, and seach for
setup.exe = 100,,,,,,,2,0,0,,1,2
http://unattended.msfn.org/unattended.xp/print/web/35/ (2 of 3)12/24/2005 8:42:25 PM

Page 43
MSFN's Unattended Windows : RAID/SATA Drivers
RAID/SATA Drivers
In order to avoid the need to press F6 during Windows installation in order to install onto your SATA/RAID Mass Storage Device
(MSD), you may slipstream the drivers needed into the Windows Distribution. Following is a step by step example of slipstreaming
the Silicon Image 3112 SATALink Driver. The steps are similar for all MSD's, and can be easily transposed to other MSD drivers.
This particular example was taken from GreenMachine's website here.
» Step One - Edit TXTSETUP.SIF
In the I386 directory or your Windows Source Directory, open the TXTSETUP.SIF file in your favorite text editor. Copy the
following text into the TXTSETUP.SIF file, at the end of the file, just before the (sometimes invisible) end of file marker:
[SourceDisksFiles]
si3112.sys = 1,,,,,,3_,4,1
[HardwareIdsDatabase]
PCI\VEN_1095&DEV_3112&SUBSYS_31121095 = "Si3112"
PCI\VEN_1095&DEV_3112&SUBSYS_34238086 = "Si3112"
PCI\VEN_1095&DEV_3112&SUBSYS_311215D9 = "Si3112"
PCI\VEN_1095&DEV_3112&SUBSYS_B0021458 = "Si3112"
PCI\VEN_1095&DEV_3112&SUBSYS_01661028 = "Si3112"
PCI\VEN_1095&DEV_3112&SUBSYS_82141033 = "Si3112"
PCI\VEN_1095&DEV_3512&SUBSYS_35121095 = "Si3112"
PCI\VEN_1095&DEV_3512&SUBSYS_01661028 = "Si3112"
[SCSI.load]
si3112 = si3112.sys,4
[SCSI]
si3112 = "Silicon Image SiI 3112 SATALink Controller"
If you prefer however to NOT risk erasing the "invisible" EOF marker, then just search for the sections above, and add the entries
to each one, i.e. SourceDisksFiles goes in SourceDisksFiles; SCSI.load goes in SCSI.load
The information relating to the driver, can be found in the TXTSETUP.OEM included with your driver files. This will be the only
time you use this file. Also be sure that the left side of the equals sign (=) in SCSI.load is equivalent to the right side of
HardwareIdsDatabase. All the PCI\VEN_* lines were found in TXTSETUP.OEM. Copy the lines that relate to your OS (since many
drivers also work with Windows 2000 through 2003, but are all listed in the same file).
» Step Two - Copy Drivers
Add your SATA drivers to the appropriate Windows Distribution Directory. In this example the directory $OEM$\$1\DRIVERS\006
\SI3112 is used. If however you are using the Drivers from CD method, just place the files in the proper folder of your choosing
and skip the portion of editing WINNT.SIF and continue to Step 4
Directory of E:\XPCD\$\$1\DRIVERS\006\SI3112
23.09.2003 11:05 10,236 si3112.cat
16.09.2003 10:43 11,094 SI3112.inf
04.09.2003 12:45 55,144 Si3112.mpd
04.09.2003 12:45 55,144 Si3112.sys
30.04.2003 08:35 20,560 SiiSupp.vxd
31.07.2003 09:01 69,120 SilSupp.cpl
09.06.2003 17:56 10,112 SiWinAcc.sys
7 File(s) 231,410 bytes
» Step Three - Update WINNT.SIF
http://unattended.msfn.org/unattended.xp/print/web/36/ (1 of 2)12/24/2005 8:42:25 PM

Page 44
MSFN's Unattended Windows : Drivers via CD
q
Press ENTER a few times to create some empty lines (be careful not to remove the line you just searched for) and add
these lines:
setupORG.exe = 1,,,,,,,2,0,0
presetup.cmd = 1,,,,,,,2,0,0
Save TXTSETUP.SIF and exit Notepad.
q
To finish this section up, save SetDevicePath.exe and WatchDriverSigningPolicy.exe in Drivers
» Making Changes to presetup.cmd
q
Open presetup.cmd in Notepad
q
Scroll down to the lines containing SetDevicePath.exe and correct the path. Change Drivers to where you saved the files
on in your source and the parameter ( %CDROM%Drivers ) to where you saved all your driver files. Also correct the path in
the line directly below it as well.
» Summarizing
You have just completed allowing your Windows setup to install the drivers from CD. SetDevicePath.exe will scan the recursively
all the directories in the path you specify (see the presetup.cmd file for example), so even subfolders are also scanned. Any INF's
found are added to the Device Path that Windows checks when it find new hardware. In this fashion, just drop any future drivers
into your driver folder, and Windows will automatically use them if neccesary during setup.
Last updated 2005-12-24 20:03:23 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/35/ (3 of 3)12/24/2005 8:42:25 PM

Page 45
http://unattended.msfn.org/files/intermediate/presetup.cmd
REM | Finally start the installation with the originally |
REM | given parameters |
REM |-------------------------------------------------------|
start /WAIT setup.exe %*
REM +=======================================================+
http://unattended.msfn.org/files/intermediate/presetup.cmd (2 of 2)12/24/2005 8:43:19 PM

Page 46
MSFN's Unattended Windows : RAID/SATA Drivers
Your WINNT.SIF file must contain the at least the following information:
[Unattended]
OemPreinstall=Yes
OemPnPDriversPath="Drivers\006\SI3112"
» Step Four - Compress Driver to I386
In order to make the driver available in the text based portion of setup, we must add it to the I386 directory.
q
Open up the Run Box.
q
Inside the run box, type:
MAKECAB E:XPCD$$1DRIVERS SI3112SI3112.SYS E:XPCDi386SI3112.SY_
Changing E:XPCD$OEM$$1DRIVERS 06SI3112 to your path, and E:XPCDi386 to the I386 directory in your Windows Setup
Source
Last updated 2005-12-17 22:29:21 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/36/ (2 of 2)12/24/2005 8:42:25 PM

Page 47
http://unattended.msfn.org/files/intermediate/presetup.cmd
REM +=======================================================+
REM | Comment out what you don't need. These are mostly |
REM | examples to give you an idea of how it all works. |
REM +=======================================================+
REM +=======================================================+
REM | Finding CDROM driveletter |
REM |-------------------------------------------------------|
set tagfile=\WIN51
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDDRIVE=%%i:
REM +=======================================================+
REM +=======================================================+
REM | We should be already in system32, this is just to be |
REM | sure |
REM |-------------------------------------------------------|
%SystemDrive%
cd %SystemRoot%\system32
REM +=======================================================+
REM +=======================================================+
REM | Trick Windows into identifying the original setup.exe |
REM | deleting the setup.exe will not work, just rename it |
REM |-------------------------------------------------------|
if exist setup.exe ren setup.exe setupold.exe
if exist setupORG.exe ren setupORG.exe setup.exe
REM +=======================================================+
%CDDRIVE%\Drivers\SetDevicePath.exe %CDDRIVE%\Drivers
start %CDDRIVE%\Drivers\WatchDriverSigningPolicy.exe
REM +=======================================================+
http://unattended.msfn.org/files/intermediate/presetup.cmd (1 of 2)12/24/2005 8:43:19 PM

Page 48
MSFN's Unattended Windows : Bâshrat the Sneaky's Driver Packs
Bâshrat the Sneaky's Driver Packs
These packs were created by Bâshrat the Sneaky in the forum to allow as many drivers as possible to be included on the CD. The
best part about these packs, is that you don't have to find the drivers individually to add them, they're all included in the packs.
There are currently 5 different driver packs:
q
DriverPack LAN
q
DriverPack MassStorage
q
DriverPack Sound
q
DriverPack WLAN
You can find links to the Driver Packs here.
If you have any further questions on using the packs, feel free to post in the Device Driver Forum.
Last updated 2005-12-17 22:32:00 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/37/12/24/2005 8:42:26 PM

Page 49
MSFN's Unattended Windows : Application Introduction
Application Introduction
In this section, we'll be showing you how you can install applications silently without user interaction.
Each page will show you the necessary batch commands you will need to use. You will need to add these commands to your own
batch file which will run from [GuiRunOnce]. You can see how I've done mine by looking at start.cmd in the Examples page.
» Application not listed?
Then find out what installer package it uses, and follow one of the links in the navigation menu under the Applications listing. This
should be one of the first things to do when the application hasn't been added yet, the reason being is that the majority of
applications are packaged using one of them.
If it's still not there, then try one of the following:
q
/silent
q
/s or /S
q
/help
q
/?
If you're still not sure, you can search and then ask in the Application Switches forum. If you get no response, you may want to
consider emailing the developer of the application to ask if it supports a silent installation or not.
» When all else fails...
You can use an application that monitors your software installation, and then creates a silent-install package of the files and
registry changes that occurred during the installation. These types of applications are listed below:
WinInstall LE 2003 (Freeware) Use the 'Discover' Wizard.
InstallRite (Freeware)
AutoIT (Freeware) and Collection of scripts from forum members
Symantec AI Snapshot (Included in Symantec Ghost Corporate)
Last updated 2005-12-17 23:13:49 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/38/12/24/2005 8:42:26 PM

Page 50
MSFN's Unattended Windows : Office XP Introduction
Office XP Introduction
Got a DVD Recorder? You'll need it if you want to bundle Office XP with Windows XP, due to its large size. If not, you could use a
2nd CD for Office XP, and instruct the batch file on the Windows CD to ask you to insert the 2nd CD and then run the Office XP
installation. You can follow this guide on the MSFN Forums for the how-to. Alternatively, you could SFX archive all the Office XP
files (with WinRAR) and hopefully it will fit on your Windows XP CD.
This guide will show you how to run a silent unattended installation of Office XP. The Simple method will just run a silent install
from an existing Office XP CD, and installs the full default components. If you feel like going advanced you can include all the
updates to Office XP, and fully customize your installation options (yes, you even get to have control over what shortcuts to install,
and whether or not to install that annoying Office Assistant!)
The Advanced method also doubles up as a slipstreaming guide, which will show you how to slipstream Service Pack 2, and the
post-SP2 updates.
Office XP Simple | Office XP Advanced
Last updated 2005-12-18 20:05:03 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/47/12/24/2005 8:42:27 PM

Page 51
MSFN's Unattended Windows : Office XP Simple Installation
Office XP Simple Installation
Grab your Office XP disc and copy the contents of it to: C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\
The number of files may vary for different Office XP Editions, don't worry if its not the same as in the screenshot above. Although I
know for a fact that PROPLUS.msi is Office XP Professional with Frontpage, and PRO.msi is just Office XP Professional, just to
clear things up. :-)
Add these lines to your batch file:
ECHO.
ECHO Installing Office XP Professional with Frontpage
ECHO Please wait...
start /wait %systemdrive%\install\Applications\OfficeXP\PROPLUS.msi /QB
This will install the default components for Office XP; which are Access, Excel, Frontpage, Outlook, Powerpoint, and Word. You
may want to do the Advanced version if you want full control over your Office XP Installation.
Last updated 2005-12-18 20:05:31 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/44/12/24/2005 8:42:27 PM

Page 52
MSFN's Unattended Windows : Office XP Advanced Installation
Office XP Advanced Installation
In here, we'll show you how you can slipstream Service Pack 2 and the Post-SP2 updates to Office XP, then show you how to
customize your Office XP installation. If you already have a slipstreamed up-to-date Office XP CD you may want to skip to Section
3. Please note that you can only do a slipstream if you have PRO.msi or PROPLUS.msi, you cannot slipstream if your Office XP
disc contains PRORET.msi.
» Section 1 - The Administrative Installation Point
First, we need to create an Administrative Installation Point so we can be able to slipstream the Service Pack and Updates into
Office XP.
Insert your Office XP CD, and run the following command from the Run box which can be accessed from the Start Menu (Change
the CD-ROM drive letter to your Office XP CD if it differs from E:\):
This starts Office XP Setup, where you can define an Administrative Installation Point for your Office XP files.
From here, you can fill in the Organization Name and your Product Key (this is also the last time you will ever need to insert your
http://unattended.msfn.org/unattended.xp/print/web/45/ (1 of 9)12/24/2005 8:42:29 PM

Page 53
MSFN's Unattended Windows : Office XP Advanced Installation
Office XP Product key!).
Set the Install Location to: C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\
(Create the folders beforehand if you haven't done so already)
After clicking on Next, accept the EULA and then the installation will start. Since we executed Setup with the /a parameter its only
copying files to the Install Location you specified to create an Administrative Installation Point, not installing Office to the system.
Once finished, click OK as shown above. Your Office XP files should all be in the folder specified during setup:
» Section 2 - The Slipstreaming Process
We now need to download Office XP Service Pack 2 Administrative (which already contains Service Pack 1). And not forgetting the
6 post-SP2 updates that were available at the time of writing, the list is shown in full:
Office XP SP2 Administrative
Word 2002 Administrative Update (Q824934)
Excel 2002 Administrative Update (Q329750)
Outlook 2002 Administrative Update (Q812262)
Office XP Security Patch (Q822036)
Office XP WordPerfect 5.x Converter Security Patch (Q824938)
Access 2002 Snapshot Viewer Security Patch (Q826293)
As the above listing may be out of date, you may want to check this page for any updates. The best way to get an up-to-date
listing of patches is to install Office XP with SP2, then go to Office Update and take note of all the Knowledge Base Article
numbers. Look them up and make sure that you download "Administrative" Updates, not "Client".
Create a folder in the root of the C:\ drive and name it "OXPupdates". Place all the downloaded files into the folder you created:
http://unattended.msfn.org/unattended.xp/print/web/45/ (2 of 9)12/24/2005 8:42:29 PM

Page 54
MSFN's Unattended Windows : Office XP Advanced Installation
If you've got WinRAR installed, you can easily extract each file you downloaded. If not, run the following commands to extract
them in Command Prompt:
oxpsp2a.exe /Q /C /T:C:\OXPupdates
officexp-kb824934-fullfile-enu.exe /Q /C /T:C:\OXPupdates
exc1003a.exe /Q /C /T:C:\OXPupdates
Olk1006a.exe /Q /C /T:C:\OXPupdates
OfficeXP-KB822036-FullFile-ENU.exe /Q /C /T:C:\OXPupdates
officexp-kb824938-fullfile-enu.exe /Q /C /T:C:\OXPupdates
officexp-kb826293-fullfile-enu.exe /Q /C /T:C:\OXPupdates
Or, you can download the Extract_Updates.cmd batch which will perform all the extraction commands automatically for you. Place
this file in the same folder where the updates reside in. If there is a newer update available that's not shown in the download list
above, you made need to edit the batch file to add the new update and the switches.
Once that's done, you should have about 8 files extracted. You can delete your downloaded files, or move them to another location
for backup purposes. Here's how it should look:
http://unattended.msfn.org/unattended.xp/print/web/45/ (3 of 9)12/24/2005 8:42:29 PM

Page 55
MSFN's Unattended Windows : Office XP Advanced Installation
You are now ready to slipstream the updates! If you want, you can use the Office XP Slipstreamer which we've made so you
don't have to type out all the necessary commands to slipstream each file. Please note the following - This batch file assumes you
have the Office XP setup files situated at C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\ and the extracted updates at C:
\OXPupdates\
If they differ, please do not use the Office XP Slipstreamer (Or, if you want, you can correct the directory paths in the batch file
using Notepad).
Download: Office XP Slipstreamer
All you have to do is execute the batch file from wherever you like and leave it to do the rest!
For those who wish to manually slipstream the updates, below are the following commands you should run from Command
Prompt, in this order only:
msiexec /p C:\OXPupdates\MAINSP2ff.msp /a C:\XPCD\$\$1\install\Applications\OfficeXP\proplus.msi
SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\Owc10SP2ff.msp /a C:\XPCD\$\$1\install\Applications\OfficeXP\OWC10.MSI
SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\WINWORDff.msp /a C:\XPCD\$\$1\install\Applications\OfficeXP\proplus.msi
SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\EXCELff.msp /a C:\XPCD\$\$1\install\Applications\OfficeXP\proplus.msi
SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\OUTLOOKff.msp /a C:\XPCD\$\$1\install\Applications\OfficeXP\proplus.msi
SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\VBE6ff.msp /a C:\XPCD\$\$1\install\Applications\OfficeXP\proplus.msi
SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\MSCONVff.msp /a C:\XPCD\$\$1\install\Applications\OfficeXP\proplus.msi
SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\SNAPVIEWff.msp /a C:\XPCD\$\$1\install\Applications\OfficeXP\proplus.msi
SHORTFILENAMES=TRUE /qb
After that's all done, you have a fully up-to-date Office XP distribution. At this stage you can choose to burn the contents of C:
\XPCD\$OEM$\$1\install\Applications\OfficeXP to a CD-R and keep it away for storage if you need it in future.
You will also be able to slipstream another Post-SP2 update if one becomes available using the instructions we've showed you in
this guide without making another Administrative Installation Point because it only needs to be done once.
http://unattended.msfn.org/unattended.xp/print/web/45/ (4 of 9)12/24/2005 8:42:29 PM

Page 56
MSFN's Unattended Windows : Office XP Advanced Installation
» Section 3 - The Custom Installation Wizard
Note: If you were brought here from the link at the top of the page, please copy the contents of your Office XP disc to: C:\XPCD\
$OEM$\$1\install\Applications\OfficeXP\ now. (make sure you enable showing of Hidden files and folders via Folder Options so the
CAB files are copied as well)
Download: Office XP Resource Kit Tools
Execute orktools.exe to install the Office XP Resource Kit Tools. Go to Start > Programs > Microsoft Office Tools > Microsoft
Office XP Resource Kit Tools and select Custom Installation Wizard.
You'll be presented with the first screen of 22 to go through. It won't take as long as you think, because most of these options can
be skipped:
In step 2, choose the MSI file in your OfficeXP folder. That would be PROPLUS.msi for OfficeXP Professional with Frontpage (and
PRO.msi without Frontpage)
http://unattended.msfn.org/unattended.xp/print/web/45/ (5 of 9)12/24/2005 8:42:29 PM

Page 57
MSFN's Unattended Windows : Office XP Advanced Installation
Step 3: Create a new MST file
Step 4: Name it Unattended.MST in C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\
Step 5: Leave Alone, unless you want to specify a different destination directory to install Office XP into.
Step 6: If you are running a clean installation (which this Unattended Windows XP CD Guide aims at) then choose Default Setup
Behavior. Otherwise choose the previous versions of Office Applications you want removed on the destination PC.
In Step 7 you can choose the features and components you want to install. All of them are at default settings so change them to
what you want and don't want:
http://unattended.msfn.org/unattended.xp/print/web/45/ (6 of 9)12/24/2005 8:42:29 PM

Page 58
MSFN's Unattended Windows : Office XP Advanced Installation
Once you've finished here, carry on to the next step.
Step 8: Leave Alone
Step 9: Similar to Group Policy, you can set the preferences of your Office Applications from here.
Steps 10, 11: Leave Alone
In Step 12 you can customize the shortcuts that will be installed to the Start Menu:
http://unattended.msfn.org/unattended.xp/print/web/45/ (7 of 9)12/24/2005 8:42:29 PM

Page 59
MSFN's Unattended Windows : Office XP Advanced Installation
Steps 13-15: Leave Alone
Steps 16-20: You can choose to customize your Outlook profile in these steps.
Step 21: Leave Alone
Step 22: Click on Finish
At the end, you are shown your command line to run:
http://unattended.msfn.org/unattended.xp/print/web/45/ (8 of 9)12/24/2005 8:42:29 PM

Page 60
MSFN's Unattended Windows : Office XP Advanced Installation
This command will perform a silent installation of Office XP using the Unattended.MST file you created in the Custom Installation
Wizard to set your customized options. But we don't want to use the exact command shown above as this wouldn't exist when
installing from a CD, so change:
TRANSFORMS=C:\XPCD\$\$1\install\Applications\OfficeXP\Unattended.MST /qb-
to...
TRANSFORMS=Unattended.MST /qb-
» Section 4 - The Office XP Batch Command
As you read at the end of Section 3, we needed to change the path in the TRANSFORM syntax in order for it to function. Below are
the full batch commands you can use, so add these lines to your batch file:
ECHO.
ECHO Installing Office XP Professional with Frontpage
ECHO Please wait...
start /wait %systemdrive%\install\Applications\OfficeXP\setup.exe TRANSFORMS=Unattended.MST /qb-
That's it!
Last updated 2005-12-24 20:07:06 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/45/ (9 of 9)12/24/2005 8:42:29 PM

Page 61
http://unattended.msfn.org/files/intermediate/Extract_Updates.cmd
TITLE Office XP SP2 and Post-SP2 Extractor brought to you by www.MSFN.org
CLS
@echo off
ECHO.
ECHO Extracting files....
ECHO.
oxpsp2a.exe /Q /C /T:C:\OXPupdates
officexp-kb824934-fullfile-enu.exe /Q /C /T:C:\OXPupdates
exc1003a.exe /Q /C /T:C:\OXPupdates
Olk1006a.exe /Q /C /T:C:\OXPupdates
OfficeXP-KB822036-FullFile-ENU.exe /Q /C /T:C:\OXPupdates
officexp-kb824938-fullfile-enu.exe /Q /C /T:C:\OXPupdates
officexp-kb826293-fullfile-enu.exe /Q /C /T:C:\OXPupdates
ECHO Extraction Completed
pause
EXIT
http://unattended.msfn.org/files/intermediate/Extract_Updates.cmd12/24/2005 8:43:20 PM

Page 62
http://unattended.msfn.org/files/intermediate/OfficeXP_Slipstreamer.cmd
TITLE Office XP Slipstreamer brought to you by www.MSFN.org
CLS
@echo off
ECHO.
ECHO Starting the Slipstreaming process of Office XP Updates
ECHO.
ECHO Slipstreaming Office XP Service Pack 2
ECHO Please wait...
msiexec /p C:\OXPupdates\MAINSP2ff.msp /a C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\proplus.msi SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\Owc10SP2ff.msp /a C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\OWC10.MSI SHORTFILENAMES=TRUE /qb
ECHO.
ECHO Slipstreaming Office XP Post-SP2 Updates
ECHO Please wait...
msiexec /p C:\OXPupdates\WINWORDff.msp /a C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\proplus.msi SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\EXCELff.msp /a C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\proplus.msi SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\OUTLOOKff.msp /a C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\proplus.msi SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\VBE6ff.msp /a C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\proplus.msi SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\MSCONVff.msp /a C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\proplus.msi SHORTFILENAMES=TRUE /qb
msiexec /p C:\OXPupdates\SNAPVIEWff.msp /a C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\proplus.msi SHORTFILENAMES=TRUE /qb
ECHO.
ECHO Slipstreaming Completed!
pause
EXIT
http://unattended.msfn.org/files/intermediate/OfficeXP_Slipstreamer.cmd12/24/2005 8:43:20 PM

Page 63
MSFN's Unattended Windows : Office 2003 Introduction
Office 2003 Introduction
Got a DVD Writer? You'll need it if you want to bundle Office 2003 with Windows XP, due to its large size. If not, you could use a
2nd CD for Office 2003, and instruct the batch file on the Windows CD to ask you to insert the 2nd CD and then run the Office
2003 installation. You can follow this guide or this guide on the MSFN Forums for the how-to.
Alternatively, you could SFX archive all the Office 2003 files with WinRAR and hopefully it will fit on your Windows XP CD. (I
managed to get Office 2003 CD1 compressed to 259 MB using WinRAR SFX with Solid Archive selected)
This guide will show you how to run a silent unattended installation of Office 2003. The Simple method will just run a silent install
from an existing Office 2003 CD, and installs the full default components. The Advanced method will show you how to fully
customize your installation options (you even get to have control over what shortcuts to install, and whether or not to install that
annoying Office Assistant!)
Office 2003 Slipstreaming | Office 2003 Simple | Office 2003 Advanced
Last updated 2005-12-18 20:07:04 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/46/12/24/2005 8:42:30 PM

Page 64
MSFN's Unattended Windows : Office 2003 Slipstreaming
Office 2003 Slipstreaming
This page will outline instructions for slipstreaming Service Packs and Updates into Office 2003.
» Section 1 - Creating an Administrative Installation Point
From the Office Resource Kit site: Only editions of Office 2003 acquired through a Volume License agreement or other non-retail
channel allow you to create an administrative installation point. You cannot run Setup.exe in administrative mode ( /a ) with an
Office 2003 retail edition. If you cannot make an Administrative Installation Point, you will not be able to slipstream the latest
updates into it.
First, we'll need to create an Administrative Installation Point so we can be able to slipstream the updates into Office 2003 (You
cannot just do a direct copy from CD to the Hard disk and hope that it will work. It won't.). This only has to be done once, and
updates can still be slipstreamed to an existing Administrative Installation Point at a later date.
Insert your Office 2003 CD, and run the following command from the Run box which can be accessed from the Start Menu
(Change the CD-ROM drive letter to your Office 2003 CD if it differs from E:\):
This starts Office 2003 Setup, where you can define an Administrative Installation Point for your Office 2003 files.
http://unattended.msfn.org/unattended.xp/print/web/48/ (1 of 6)12/24/2005 8:42:31 PM

Page 65
MSFN's Unattended Windows : Office 2003 Slipstreaming
From here, you can fill in the Organization Name and your Product Key (this is also the last time you will ever need to insert your
Office 2003 Product key!).
Set the Install Location to: C:\Office2003\
(Create the folders beforehand if you haven't done so already)
After clicking on Next, accept the EULA and then the installation will start. Since we executed Setup with the /a switch, its only
copying files to the Install Location you specified to create an Administrative Installation Point, not installing Office to the system.
Once finished, click OK as shown above. Your Office 2003 files should all be in the folder specified during setup:
http://unattended.msfn.org/unattended.xp/print/web/48/ (2 of 6)12/24/2005 8:42:31 PM

Page 66
MSFN's Unattended Windows : Office 2003 Slipstreaming
» Section 2 - The Slipstreaming Process
Slipstreaming the Service Pack into Office 2003 CD1 (Click here for CDs 2 to 5)
Download: Office 2003 Service Pack 1 Administrative Update
Run the following syntax on the downloaded file (using command prompt or the Start > Run box):
Office2003SP1-kb842532-fullfile-enu.exe /Q /C /T:C:\SP1
This will extract the Office 2003 SP1 files to C:\SP1\
Then run both of these commands in the Command Prompt:
msiexec /p C:\SP1\MAINSP1ff.msp /a C:\Office2003\PRO11.msi SHORTFILENAMES=TRUE /qb
msiexec /p C:\SP1\OWC11SP1ff.msp /a C:\Office2003\OWC11.MSI SHORTFILENAMES=TRUE /qb
Note: If you have STD11.msi instead of PRO11.msi in the Office2003 folder, edit the msiexec syntax accordingly. (Thanks to
StueyB for letting us know!)
After this is done, the Service Pack has been slipstreamed into your Office 2003 Administrative Installation Point. You can now
delete the C:\SP1\ folder.
If there are updates available, you may also want to slipstream them too, so read on below.
Slipstreaming Updates
We now need to download the latest Office 2003 updates. The best way to get an up-to-date listing of patches is to install Office
2003 (with SP1), then go to Office Update and take note of all the Knowledge Base Article numbers. Look them up and make sure
that you download the "Administrative" Updates, not "Client".
You can also check this page for any updates, but don't expect it to be accurate.
Create a folder in the root of the C:\ drive and name it "O2003updates". Place all the downloaded updates into the folder you
created:
http://unattended.msfn.org/unattended.xp/print/web/48/ (3 of 6)12/24/2005 8:42:31 PM

Page 67
MSFN's Unattended Windows : Office 2003 Slipstreaming
Example shown in image may not depict the actual updates you've downloaded.
If you've got WinRAR installed, you can easily extract each file you downloaded. If not, run the following command in Command
Prompt to extract them all (make sure you've switched to the C:\O2003updates folder):
FOR %f IN (*.exe) DO %f /Q /C /T:C:\O2003updates
Or, you can download the Extract_Updates.cmd batch which will perform all the extraction commands automatically for you. Place
this file in the same folder where the updates reside in (C:\O2003updates\). The batch file will most likely not need to be re-
edited when a new Office 2003 update is released, because it processes all *.exe files in the folder.
Once that's done, you should have a couple of *.msp files extracted. You can delete your downloaded *.exe files, or move them to
another location for backup purposes. Here's how it should eventually look:
Example shown in image may not depict the actual updates you've extracted.
You are now ready to slipstream the updates!
If you want, you can use the Office 2003 Updates Slipstreamer which we've made so you don't have to type out all the
necessary commands to slipstream each file. This batch file assumes you have the Office 2003 setup files located at C:\XPCD\
$OEM$\$1\install\Applications\Office2003\. If this differs, please do not use the Office 2003 Slipstreamer (however, it is up to you
to edit the batch file in Notepad to make the necessary changes if you want to use this).
Download: Office 2003 Slipstreamer. All you have to do is execute the batch file from C:\O2003updates\ and leave it to do the
rest!
For those who want to manually slipstream the updates, below are the following commands you should run from Command
Prompt:
http://unattended.msfn.org/unattended.xp/print/web/48/ (4 of 6)12/24/2005 8:42:31 PM

Page 68
MSFN's Unattended Windows : Office 2003 Slipstreaming
cd C:\O2003updates
FOR %f IN (*.msp) DO msiexec /p %f /a C:\Office2003\pro11.msi SHORTFILENAMES=TRUE /qb
Note: Again, if you have STD11.msi instead of PRO11.msi in the Office2003 folder, edit the syntax accordingly. (Thanks to StueyB
for letting us know!)
After that's all done, you have a fully up-to-date Office 2003 distribution. At this point you can choose to burn the contents of C:
\Office2003 to a CD-R and keep it in storage if you need it in future.
You will also be able to slipstream another update if one becomes available using the instructions we've showed you in this guide
without making another Administrative Installation Point, because it only needs to be done once.
» Section 3 - Slipstreaming Service Pack 1 to other Office 2003 CDs
You will also need to make an Administrative Installation Point for each CD you want to slipstream SP1 to (refer to Section 1 for
the how-to). Make the following locations for the Admin Point at:
CD2 = C:\Frontpage2003\
CD3 = C:\Visio2003\
CD4 = C:\Project2003\
CD5 = C:\OneNote2003\
The instructions below are kept minimal as they are done the same way for Office 2003 CD1. For an indepth guide, refer to
Section 2 and adapt to it:
Frontpage 2003
Download: Office 2003 Service Pack 1 Administrative Update (You already have this if you slipstreamed CD1)
Run: Office2003SP1-kb842532-fullfile-enu.exe /Q /C /T:C:\Frontpage2003SP1
Slipstream:
msiexec /p C:\Frontpage2003SP1\MAINSP1ff.msp /a C:\Frontpage2003\FP11.MSI SHORTFILENAMES=TRUE /qb
msiexec /p C:\Frontpage2003SP1\OWC11SP1ff.msp /a C:\Frontpage2003\OWC11.MSI SHORTFILENAMES=TRUE /qb
Visio 2003
Download: Visio 2003 Service Pack 1 Administrative Update
Run: Visio2003-KB840663-FullFile-ENU.EXE /Q /C /T:C:\Visio2003SP1
Slipstream:
msiexec /p C:\Visio2003SP1\Visio2003-KB840663-FullFile-ENU.MSP /a C:\Visio2003\VISPRO.MSI
SHORTFILENAMES=TRUE /qb
Project 2003
Download: Project 2003 Service Pack 1 Administrative Update
Run: Project2003-KB837240-FullFile-ENU.exe /Q /C /T:C:\Project2003SP1
Slipstream:
msiexec /p C:\Project2003SP1\Project2003-KB837240-FullFile-ENU.msp /a C:\Project2003\PRJPROE.MSI
http://unattended.msfn.org/unattended.xp/print/web/48/ (5 of 6)12/24/2005 8:42:31 PM

Page 69
MSFN's Unattended Windows : Office 2003 Slipstreaming
SHORTFILENAMES=TRUE /b
One Note 2003
Download: One Note 2003 Service Pack 1 Administrative Update
Run: OneNote2003SP1-kb842774-fullfile-enu.exe /Q /C /T:C:\OneNote2003SP1
Slipstream:
msiexec /p C:\OneNote2003SP1\ONENOTESP1ff.msp /a C:\OneNote2003\ONOTE11.MSI SHORTFILENAMES=TRUE /qb
Last updated 2005-12-24 20:06:12 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/48/ (6 of 6)12/24/2005 8:42:31 PM

Page 70
http://unattended.msfn.org/files/intermediate/Office2003_Slipstreamer.cmd
TITLE Office 2003 Updates Slipstreamer brought to you by www.MSFN.org
CLS
@echo off
ECHO.
ECHO Slipstreaming Office 2003 Updates
ECHO Please wait...
FOR %%f IN (*.msp) DO msiexec /p %%f /a C:\Office2003\pro11.msi SHORTFILENAMES=TRUE /qb
ECHO.
ECHO Slipstreaming Completed!
ECHO.
pause
EXIT
http://unattended.msfn.org/files/intermediate/Office2003_Slipstreamer.cmd12/24/2005 8:43:20 PM

Page 71
MSFN's Unattended Windows : Office 2003 Simple Installation
Office 2003 Simple Installation
Grab your Office 2003 disc and copy the contents of it to: C:\XPCD\$OEM$\$1\install\Applications\Office2003\
The number of files may vary for different Office 2003 Editions, don't worry if its not the same as in the screenshot above.
Add these lines to your batch file:
ECHO.
ECHO Installing Office 2003
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Office2003\PRO11.msi /QB
This will install the default components for Office 2003; which are Access, Excel, Frontpage, Outlook, Powerpoint, Publisher,
Infopath and Word. You may want to do the Advanced version if you want full control over your Office 2003 Installation.
Last updated 2005-12-18 20:08:09 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/49/12/24/2005 8:42:31 PM

Page 72
MSFN's Unattended Windows : Office 2003 Advanced Installation
Office 2003 Advanced Installation
In this guide, we'll show you how to customize your Office 2003 installation with the Custom Installation Wizard.
» Section 1 - The Custom Installation Wizard
Copy the contents of your Office 2003 disc to: C:\XPCD\$OEM$\$1\install\Applications\Office2003\
Make sure you enable showing of Hidden files and folders via the Folder Options so the CAB files are copied as well (this does not
apply to Administrative Installation Points)
Download: Office 2003 Resource Kit Tools
Execute ork.exe to install the Office 2003 Resource Kit Tools. Go to Start > Programs > Microsoft Office Tools > Microsoft Office
2003 Resource Kit Tools and select Custom Installation Wizard.
You'll be presented with the first screen of 22 to go through. It won't take too long to go through, because most of these options
can be skipped:
In step 2, choose the MSI file in your Office2003 folder. That would be PROPLUS.msi for Office2003 Professional with Frontpage
(and PRO.msi without Frontpage)
Step 3: Create a new MST file
http://unattended.msfn.org/unattended.xp/print/web/50/ (1 of 2)12/24/2005 8:42:32 PM

Page 73
MSFN's Unattended Windows : Office 2003 Advanced Installation
Step 4: Name it Unattended.MST in C:\XPCD\$OEM$\$1\install\Applications\Office2003\
Step 5: Leave Alone, unless you want to specify a different destination directory to install Office 2003 into.
Go through the rest of the steps to customize your Office 2003 installation, and skip sections that you don't understand.
At the end, you are shown your command line to run:
This command will perform a silent installation of Office 2003 using the Unattended.MST file you created in the Custom Installation
Wizard to set your customized options. But we don't want to use the exact command shown above as this wouldn't exist when
installing from a CD, so we will need to change this when we add it to a batch file:
TRANSFORMS=C:\XPCD\$\$1\install\Applications\Office2003\Unattended.MST /qb-
changed to...
TRANSFORMS=Unattended.MST /qb-
» Section 2 - The Office 2003 Batch Command
As you read at the end of the last section, we needed to change the path in the TRANSFORM syntax in order for it to work. Below
are the full batch commands you can use, so add these lines to your batch file:
ECHO.
ECHO Installing Office 2003 Professional
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-
That's it!
Last updated 2005-12-18 19:44:50 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/50/ (2 of 2)12/24/2005 8:42:32 PM

Page 74
http://unattended.msfn.org/unattended.xp/image/view/105/
http://unattended.msfn.org/unattended.xp/image/view/105/12/24/2005 8:43:21 PM

Page 75
http://unattended.msfn.org/unattended.xp/image/view/101/
http://unattended.msfn.org/unattended.xp/image/view/101/12/24/2005 8:43:21 PM

Page 76
MSFN's Unattended Windows : Page list : Application Switches
Page list : Application Switches
» Application Switches
Title
Author
.NET Framework 1.1 & SP1
Alanoll
Ad-Aware 6 Free Version
Alanoll
Adobe Reader 6
Alanoll
AIM (AOL Instant Messenger)
Alanoll
CDex
Alanoll
DirectX 9.0b
Alanoll
Diskeeper
Alanoll
Easy CD-DA Extractor 6
Alanoll
eMule
Alanoll
Flashget
Alanoll
ISOBuster
Alanoll
Kazza Lite K++
Alanoll
Kerio Personal Firewall 2.1.5
Alanoll
Media Player Classic
Alanoll
mIRC
Alanoll
MSN Messenger
Alanoll
Nero Burning ROM 6.x
Alanoll
Norton Antivirus 2003
Alanoll
O&O Defrag Professional
Alanoll
Sun Java VM
Alanoll
Symantec Antivirus Corporate
Alanoll
Windows Media Player 10
Alanoll
Windows Media Player 9
Alanoll
Windows Messenger
Alanoll
Windows Movie Maker 2
Alanoll
Windows XP Powertoys
Alanoll
WinRAR
Alanoll
ZoneAlarm Free
Alanoll
http://unattended.msfn.org/unattended.xp/print/list/switch/12/24/2005 8:42:33 PM

Page 77
MSFN's Unattended Windows : .NET Framework 1.1 & SP1
.NET Framework 1.1 & SP1
Note: For a slipstreamed silent package containing .NET Framework 1.1 and SP1, please go to the bottom of the page.
Download: .NET Framework 1.1 Redistributable
Using an extractor such as WinRAR, extract dotnetfx.exe to this folder: \$OEM$\$1\install\NetFramework\
Add these lines to your batch file:
ECHO Installing .NET Framework v1.1
ECHO Please wait...
start /wait %systemdrive%\install\NetFramework\netfx.msi /qb
Note: This will fail to install when using RunOnceEx. Making an IExpress package of .NET Framework 1.1 will solve this and will
run without a problem from RunOnceEx.
» Install .NET Framework 1.1 using svcpack.inf
If you've made a svcpack.inf file for installing hotfixes, you can also install .NET Framework from there.
Follow this guide to make an IExpress package (you'll save a couple of megabytes), then copy DOTNETFW.exe to the C:\XPCD
\I386\Update\ folder and then add this line under [SetupHotfixesToRun] in svcpack.inf:
[SetupHotfixesToRun]
DOTNETFW.exe
» Installing SP1 for .NET Framework 1.1
Download: .NET Framework 1.1 Service Pack 1
Copy the downloaded file to: \$OEM$\$1\install\NetFramework\
http://unattended.msfn.org/unattended.xp/print/switch/23/ (1 of 2)12/24/2005 8:43:22 PM

Page 78
MSFN's Unattended Windows : .NET Framework 1.1 & SP1
Add these lines to your batch file (this should be placed AFTER the .NET Framework 1.1 commands!):
ECHO Installing .NET Framework v1.1 SP1
ECHO Please wait...
start /wait %systemdrive%\install\NetFramework\NDP1.1sp1-KB867460-X86.exe /Q
» .NET Framework 1.1 with SP1 Slipstreamed
For a faster .NET Framework installation, and setup files occupying 11 MB on the CD, you can download this 7-Zip SFX package
created by RyanVM from the MSFN Forums (thanks for taking the time to do this!). By default, this installs silently, so no switches
are required.
Download: .NET Framework 1.1 with SP1
Last updated 2005-12-22 19:45:41 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/23/ (2 of 2)12/24/2005 8:43:22 PM

Page 79
MSFN's Unattended Windows : Ad-Aware 6 Free Version
Ad-Aware 6 Free Version
Copy the Ad-Aware setup executable to \$OEM$\$1\install\Applications\AdAware\
Add these lines to your batch file:
ECHO.
ECHO Installing Lavasoft Ad-Aware 6 Build 181
ECHO Please wait...
start /wait %systemdrive%\install\Applications\AdAware\aaw6181.exe /s
When silently installing Ad-Aware Plus/Pro, it will prompt you for a password, I haven't found a way round this, but after
inserting your registration password it will continue to silently install.
Last updated 2005-12-22 19:10:23 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/3/12/24/2005 8:43:23 PM

Page 80
MSFN's Unattended Windows : Adobe Reader 6
Adobe Reader 6
Download: Adobe Reader 6 Basic or Adobe Reader 6 Full
Copy the downloaded file to \$OEM$\$1\install\Applications\AdobeReader6\
Add these lines to your batch file (change filename if it differs):
ECHO.
ECHO Installing Adobe Reader 6
ECHO Please wait...
start /wait %systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_basic.exe -p"-s /v\"/qn\""
Last updated 2005-12-22 19:11:39 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/4/12/24/2005 8:43:24 PM

Page 81
MSFN's Unattended Windows : AIM (AOL Instant Messenger)
AIM (AOL Instant Messenger)
Download: AIM
Copy Install_AIM.exe to \$OEM$\$1\install\Applications\AIM\
Add these lines to your batch file:
ECHO.
ECHO Installing AIM 5.2
ECHO Please wait...
start /wait %systemdrive%\install\Applications\AIM\Install_AIM.exe /s
Last updated 2005-12-22 19:12:43 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/5/12/24/2005 8:43:24 PM

Page 82
MSFN's Unattended Windows : CDex
CDex
Download: CDex (Get the Installer, not the ZIP)
Copy the downloaded file to: \$OEM$\$1\install\Applications\CDex\
Add these lines to your batch file:
ECHO.
ECHO Installing CDex 1.50
ECHO Please wait...
start /wait %systemdrive%\install\Applications\CDex\cdex_150.exe /S
Further switches can be found at the NSIS page.
Last updated 2005-12-22 19:15:09 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/6/12/24/2005 8:43:25 PM

Page 83
MSFN's Unattended Windows : DirectX 9.0b
DirectX 9.0b
Download: DirectX 9.0b
Extract from the .rar file and then copy DX9NTopk.exe to \$OEM$\$1\install\DirectX9b\
The DirectX 9.0b OPK does not require any switches to silently install. Add the following commands to your existing batch file:
ECHO.
ECHO Installing DirectX 9.0b
ECHO Please wait...
start /wait %systemdrive%\install\DirectX9b\DX9NTopk.exe
» Install DirectX 9.0b using svcpack.inf
If you've made a svcpack.inf file for installing hotfixes, you can also install DirectX 9.0b from there:
Copy DX9NTopk.exe to the \I386\SVCPACK\ folder and then add this line under [SetupHotfixesToRun] in svcpack.inf:
[SetupHotfixesToRun]
DX9NTopk.exe
Last updated 2005-12-24 20:30:21 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/7/12/24/2005 8:43:25 PM

Page 84
MSFN's Unattended Windows : Diskeeper
Diskeeper
Extract and copy the contents of your Diskeeper setup files to \$OEM$\$1\install\Applications\diskeeper\
Add these lines to your batch file:
ECHO.
ECHO Installing Diskeeper 8.0
ECHO Please wait...
start /wait %systemdrive%\install\Applications\diskeeper\Setup.exe /s /v/qn
Last updated 2005-12-22 19:18:49 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/8/12/24/2005 8:43:26 PM

Page 85
MSFN's Unattended Windows : Easy CD-DA Extractor 6
Easy CD-DA Extractor 6
Download: Easy CD-DA Extractor 6
Copy the downloaded file to: \$OEM$\$1\install\Applications\easycdda\
If you are a registered user, you can also silently register this application. Copy and paste into Notepad and save as register.reg:
[HKEY_CURRENT_USER\Software\Poikosoft\Easy CD-DA Extractor 6]
"ba8"="YourEmailAddress"
"ba9"="YourSerialNumber"
Add these lines to your batch file:
ECHO.
ECHO Installing Easy CD-DA Extractor 6
ECHO Please wait...
start /wait %systemdrive%\install\Applications\easycdda\ezcddax6.exe /S /W
ECHO Registering Easy CD-DA Extractor...
REGEDIT /S %systemdrive%\install\Applications\easycdda\register.reg
Last updated 2005-12-22 19:20:09 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/9/12/24/2005 8:43:27 PM

Page 86
MSFN's Unattended Windows : eMule
eMule
Download: eMule (ZIP Binary only)
Create the following directory layouts first:
\$OEM$\$Progs\eMule\
\$OEM$\$Docs\All Users\Start Menu\Programs\eMule\
Download and extract the zip file, and copy all the extracted files and folders to \$Progs\eMule
Copy the 'Shortcut to eMule' from your start menu and place it into \$Docs\All Users\Start Menu\Programs\eMule
That's all you need to do! If Windows XP is being installed to D:\ (for example) Windows Setup will copy your eMule files to D:
\Program Files\eMule, and your shortcut to D:\Documents and Settings\All Users\Start Menu\Programs\eMule.
Last updated 2005-12-22 19:21:46 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/10/12/24/2005 8:43:27 PM

Page 87
MSFN's Unattended Windows : Flashget
Flashget
Download: Flashget
Copy the downloaded file to \$OEM$\$1\install\Applications\Flashget\
If you are a registered user, you can also silently register this application. Copy and paste into Notepad and save as register.reg:
[HKEY_CURRENT_USER\Software\JetCar\JetCar\General]
"RegName"="Insert Email Address"
"RegPass"="Insert Serial Key"
"RegDisp"="Insert your Name"
Add these lines to your batch file:
ECHO.
ECHO Installing Flashget 1.4
ECHO Please wait...
start /wait %systemdrive%\install\Applications\flashget\fgf140.exe /S
ECHO.
ECHO Registering Flashget 1.4...
REGEDIT /S %systemdrive%\install\Applications\flashget\register.reg
Last updated 2005-12-22 19:23:03 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/11/12/24/2005 8:43:28 PM

Page 88
MSFN's Unattended Windows : ISOBuster
ISOBuster
Download: ISOBuster
Copy the downloaded file to \$OEM$\$1\install\Applications\ISOBuster\
Add these lines to your batch file:
ECHO.
ECHO Installing ISOBuster 1.4
ECHO Please wait...
start /wait %systemdrive%\install\Applications\ISOBuster\IsoBuster14.exe /VERYSILENT /SP-
ECHO.
ECHO Killing ISOBuster.exe process
taskkill.exe /F /IM isobuster.exe
» Why are we using Taskkill?
When the installation finishes, ISOBuster opens itself. Using an in-built Windows XP tool known as Taskkill can be used to close the
ISOBuster application.
Last updated 2005-12-22 19:24:18 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/12/12/24/2005 8:43:28 PM

Page 89
MSFN's Unattended Windows : Kazza Lite K++
Kazza Lite K++
Copy the KazaaLite K++ executable to: \$OEM$\$1\install\Applications\KazaaLite\
Add these lines to your batch file:
ECHO.
ECHO Installing Kazza Lite K-plus-plus 2.41
ECHO Please wait...
start /wait %systemdrive%\install\Applications\KazaaLite\k-lite2_41_en.exe /silent
You can also use /verysilent if you do not wish to see a progress bar window.
Please avoid using the '+' character in either the filename or folder name.
Last updated 2005-12-22 19:25:15 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/13/12/24/2005 8:43:29 PM

Page 90
MSFN's Unattended Windows : Kerio Personal Firewall 2.1.5
Kerio Personal Firewall 2.1.5
Download: Kerio Personal Firewall 2.1.5
Using an extractor such as WinRAR, extract kpf2-en-win.exe to this folder: \$OEM$\$1\install\Applications\kpf\
You need to first create a setup.iss file. See the [view id=40Installshield[/view] page on how to do this.
Add these lines to your batch file:
ECHO.
ECHO Installing Kerio Personal Firewall 2.1.5
ECHO Please wait...
start /wait %systemdrive%\install\Applications\kpf\Setup.exe -s
Last updated 2005-12-22 19:26:29 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/14/12/24/2005 8:43:29 PM

Page 91
MSFN's Unattended Windows : Media Player Classic
Media Player Classic
Download: Media Player Classic
Create the following directory layouts first:
\$OEM$\$Progs\Media Player Classic\
\$OEM$\$Docs\All Users\Start Menu\Programs\Media Player Classic\
Download and extract the zip, copy mplayerc.exe to \$Progs\Media Player Classic\
Copy the 'Shortcut to Media Player Classic' from your start menu and place it into \$Docs\All Users\Start Menu\Programs\Media
Player Classic\
That's all you need to do! If Windows XP is being installed to D:\ (for example), Windows Setup will copy your Media Player Classic
files to D:\Program Files\Media Player Classic, and your shortcut to D:\Documents and Settings\All Users\Start Menu\Programs
\Media Player Classic.
Last updated 2005-12-22 19:36:13 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/19/12/24/2005 8:43:30 PM

Page 92
MSFN's Unattended Windows : mIRC
mIRC
Download: mIRC
Create the following directory layouts first:
\$OEM$\$Progs\mIRC\
\$OEM$\$Docs\All Users\Start Menu\Programs\mIRC\
Install mIRC as you normally would, or if you already have a copy installed - browse to its folder and copy all the files, including its
sub-folders (if any) to \$Progs\mIRC\
Copy the 'Shortcut to mIRC' from your start menu and place it into \$Docs\All Users\Start Menu\Programs\mIRC\
That's all you need to do! If Windows XP is installed to D:\ (for example) Windows Setup will copy your mIRC files to D:\Program
Files\mIRC, and your shortcut to D:\Documents and Settings\All Users\Start Menu\Programs\mIRC.
» Registering mIRC
You can import this registry key from either cmdlines.txt or [GuiRunOnce]:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\mIRC\License]
@="xxxx-xxxxxx"
[HKEY_CURRENT_USER\Software\mIRC\UserName]
@="MyName"
Last updated 2005-12-22 19:33:25 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/17/12/24/2005 8:43:31 PM

Page 93
MSFN's Unattended Windows : MSN Messenger
MSN Messenger
Download: MSN Messenger for Windows XP
Using an extractor such as WinRAR, extract SETUPDL.EXE to this folder: \$OEM$\$1\install\MSN\
Add these lines to your batch file:
ECHO.
ECHO Installing MSN Messenger 6.0.0602 Final
ECHO Please wait...
start /wait %systemdrive%\install\MSN\MsnMsgs.msi /QB
Last updated 2005-12-22 19:37:55 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/20/12/24/2005 8:43:31 PM

Page 94
MSFN's Unattended Windows : Nero Burning ROM 6.x
Nero Burning ROM 6.x
Download: Nero Burning ROM
Copy the downloaded file to: \$OEM$\$1\install\Applications\nero\
If you are a registered user, you can also silently register this application. Copy and paste into Notepad and save as register.reg:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Nero - Burning Rom\Info]
"User"="InsertName"
"Company"="InsertCompanyName"
"Serial6"="InsertSerial"
Add these lines to your batch file:
ECHO.
ECHO Registering Nero Burning ROM...
REGEDIT /S %systemdrive%\install\Applications\Nero\register.reg
ECHO.
ECHO Installing Nero Burning ROM v6.0.0.9
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Nero\Nero6009.exe /silent /noreboot
» Why are we registering Nero before installing?
By doing it this way, this prevents the Nero folder from being created as "Nero 6 Demo" in the Start Menu.
» An alternative to installing and registering Nero Burning ROM
Since Nero 6.0.0.15, more switches have been included. You can hide the Nero Installation screen and insert your serial number:
Nero60015.exe /silent /noreboot /no_ui /sn=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /write_sn
For a listing of full switches, use the /help switch on the Nero Setup executable.
Last updated 2005-12-22 19:40:54 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/22/12/24/2005 8:43:32 PM

Page 95
MSFN's Unattended Windows : Norton Antivirus 2003
Norton Antivirus 2003
Copy the contents of your Norton Antivirus 2003 CD to: \$OEM$\$1\install\Applications\NAV2003\
In the NAV folder, you can see the NAV.MSI file:
Add these lines to your batch file:
ECHO.
ECHO Installing Norton Antivirus 2003
ECHO Please wait...
start /wait %systemdrive%\install\Applications\NAV2003\NAV\NAV.msi /QB
Last updated 2005-12-22 19:38:56 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/21/12/24/2005 8:43:33 PM

Page 96
MSFN's Unattended Windows : O&O Defrag Professional
O&O Defrag Professional
Download: O&O Defrag Professional
Extract the downloaded file to:
\$OEM$\$1\install\Applications\OO_DefragPro\
If you are a registered user, you can also silently register this application. Copy and paste into Notepad and save as register.reg:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\O&O\O&O Defrag\4.0\Pro]
"User"="InsertName"
"Company"="InsertCompanyName"
"SerialNo"="InsertSerial"
Add these lines to your batch file:
ECHO.
ECHO Installing OO Defrag Professional 4.0.508
ECHO Please wait...
start /wait %systemdrive%\install\Applications\OO_DefragPro\oo_defrag_pro.msi /QB
ECHO.
ECHO Registering OO Defrag Professional...
REGEDIT /S %systemdrive%\install\Applications\OO_DefragPro\register.reg
Make sure you do not use the '&' character in both the filename or foldername (e.g. O&O)
Last updated 2005-12-22 19:46:45 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/24/12/24/2005 8:43:33 PM

Page 97
MSFN's Unattended Windows : Sun Java VM
Sun Java VM
Download: Sun Java VM (Choose "Windows Offline Installation")
Copy the downloaded file to this folder: \$OEM$\$1\install\Applications\SunJava\
Add these lines to your batch file:
ECHO.
ECHO Installing Sun Java VM 1.4.2
ECHO Please wait...
start /wait j2re-1_4_2_01-windows-i586.exe /s /v/qn
You can view this page for further switches to use. If you want just the core Java files to be installed, as well as IE integration, you
would use:
j2re-1_4_2_01-windows-i586.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"
Note: I've noticed on their page that they're using a space between /v and "/qn - This won't work with a spacing.
Last updated 2005-12-22 19:50:32 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/27/12/24/2005 8:43:34 PM

Page 98
MSFN's Unattended Windows : Symantec Antivirus Corporate
Symantec Antivirus Corporate
Copy the client install file to: \$OEM$\$1\install\Applications\sav\
Add these lines to your batch file (change filename if it differs):
ECHO.
ECHO Installing Symantec Antivirus Corporate 8.1
ECHO Please wait...
start /wait %systemdrive%\install\Applications\sav\sav810b821.exe /qn
This should also work for version 8.0
Note: By default LiveUpdate will run after installation completes. To prevent this, follow these instructions:
Included on the Symantec Antivirus Corporate CD is an app called Symantec Packager, install this and open "Symantec AntiVirus
Corporate Edition Client.PMI" within the application. Using Packager, you can customize your client package, including the option
to checkbox whether or not to run Liveupdate after installation. Simply uncheck this box and build the client package.
Last updated 2005-12-22 19:49:01 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/26/12/24/2005 8:43:34 PM

Page 99
MSFN's Unattended Windows : Windows Media Player 10
Windows Media Player 10
Download: Windows Media Player 10 for Windows XP
Copy mp10setup.exe to \$OEM$\$1\install\WMP10\
Add these lines to your batch file:
ECHO.
ECHO Installing Windows Media Player 10
ECHO Please wait...
start /wait %systemdrive%\install\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"
RunOnceEx Example:
REG ADD %KEY%\030 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\WMP10\MP10Setup.exe /q:A /c:\"setup_wm.exe /Q /R:N /
DisallowSystemRestore\"" /f
Last updated 2005-12-22 19:28:44 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/15/12/24/2005 8:43:35 PM

Page 100
MSFN's Unattended Windows : Windows Media Player 9
Windows Media Player 9
Download: Windows Media Player 9 for Windows XP
Copy MPSetupXP.exe to \$OEM$\$1\install\WMP9\
Add these lines to your batch file:
ECHO.
ECHO Installing Windows Media Player 9
ECHO Please wait...
start /wait %systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N
Last updated 2005-12-22 19:31:42 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/16/12/24/2005 8:43:36 PM

Page 101
MSFN's Unattended Windows : Windows Messenger
Windows Messenger
Download: Windows Messenger
Using an extractor such as WinRAR, extract mmssetup.exe to this folder: \$OEM$\$1\install\WM\
You can remove the included setup.exe and InstMsiW.exe files.
Add these lines to your batch file:
ECHO.
ECHO Installing Windows Messenger 5.0
ECHO Please wait...
start /wait %systemdrive%\install\WM\Messenger.msi /qb
Last updated 2005-12-22 19:51:18 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/28/12/24/2005 8:43:36 PM

Page 102
MSFN's Unattended Windows : Windows Movie Maker 2
Windows Movie Maker 2
Download: Windows Movie Maker 2
Using an extractor such as WinRAR, extract mm20enu.exe to this folder: \$OEM$\$1\install\MovieMaker\
You can delete both the instmsia.exe and instmsiw.exe files that were extracted.
Add these lines to your batch file:
ECHO.
ECHO Installing Movie Maker 2.0
ECHO Please wait...
start /wait %systemdrive%\install\MovieMaker\mm20.msi /qn
Last updated 2005-12-22 19:34:59 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/18/12/24/2005 8:43:37 PM

Page 103
MSFN's Unattended Windows : Windows XP Powertoys
Windows XP Powertoys
Download: Powertoys for Windows XP Website | TweakUI 2.10.0 (Repacked by Ytterbium for silent install)
Copy any of the powertoys you have downloaded to: \$OEM$\$1\install\PowerToys\
Add these lines to your batch file for the powertoys you have:
ECHO.
ECHO Installing TweakUI 2.10 Powertoy
ECHO Please wait...
start /wait %systemdrive%\install\PowerToys\TweakUI.msi /qb
ECHO.
ECHO Installing Task Switcher Powertoy
ECHO Please wait...
start /wait %systemdrive%\install\PowerToys\TaskswitchPowertoySetup.exe /s /v/qn
All other powertoys support the /s /v/qn switch.
Last updated 2005-12-24 20:28:29 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/25/12/24/2005 8:43:38 PM

Page 104
MSFN's Unattended Windows : WinRAR
WinRAR
Download: WinRAR
Copy the downloaded file to \$OEM$\$1\install\Applications\WinRAR\
Add these lines to your batch file:
ECHO.
ECHO Installing WinRAR 3.20
ECHO Please wait...
start /wait %systemdrive%\install\Applications\WinRAR\wrar320.exe /s
Using /silent instead of /s will show the following screen when it completes:
Followed by opening a folder containing the WinRAR shortcuts. It's up to you whether you want to use /s or /silent.
Last updated 2005-12-22 19:52:47 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/29/12/24/2005 8:43:38 PM

Page 105
MSFN's Unattended Windows : ZoneAlarm Free
ZoneAlarm Free
Download: ZoneAlarm Free
Add these lines to your batch file:
ECHO.
ECHO Installing ZoneAlarm Free 3.7.202
ECHO Please wait...
start /wait %systemdrive%\install\Applications\ZoneAlarm\zasetup37_202.exe /s /noreboot
/s /noreboot should also work for ZoneAlarm Plus and Pro if WISE installer is used to package the files.
Last updated 2005-12-22 19:53:30 by Alanoll
http://unattended.msfn.org/unattended.xp/print/switch/30/12/24/2005 8:43:39 PM

Page 106
MSFN's Unattended Windows : Inno Setup
Inno Setup
Applications packaged with Inno Setup supports the /SILENT and /VERYSILENT switches (I'm not entirely sure on the difference
between the two, as they appear to do the same thing)
setup.exe /VERYSILENT
You might get this dialog window asking if you want to continue installation:
We can simply get around that using the following switch instead:
setup.exe /VERYSILENT /SP-
Some Inno Setup installers will attempt to open the program when setup completes, ISOBuster is one example of doing this.
Again, we can simply overcome this by using an in-built utility in Windows XP known as Taskkill.
Below is an example of code you could use in a batch file to install an application that uses Inno Setup:
ECHO.
ECHO Installing ISOBuster 1.4
ECHO Please wait...
start /wait %systemdrive%\install\Applications\ISOBuster\IsoBuster14.exe /VERYSILENT /SP-
ECHO.
ECHO Killing ISOBuster.exe process
taskkill.exe /F /IM isobuster.exe
ECHO.
» How do I find out if a setup package is made by Inno Setup?
The first window that appears is usually the one shown above on this page, followed by the window shown below (click on the icon
in the top-left to get a drop-down menu and click on About Setup)
Last updated 2005-12-17 23:24:27 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/39/12/24/2005 8:42:34 PM

Page 107
MSFN's Unattended Windows : InstallShield Installers
InstallShield Installers
To silently install a package that uses InstallShield, you will have to first create a setup.iss file on a working operating system. Use
a test PC if you can.
1. Start the setup application using the -R (case-sensitive) switch from command prompt.
Setup.exe -R
2. The setup screens will appear as they normally would, asking you questions as you go along, such as destination directory,
etc. It's important that you do not choose the "Restart the computer now" option. If you do, you will terminate your batch
when you run an unattended installation.
3. After installation has completed, go to your C:Windows (or C:WINNT) directory and take out the setup.iss file. Put this
setup.iss file in the same directory where your application setup.exe file resides in.
4. Start the Silent installation using:
start /wait %systemdrive%installApplicationApplication_nameSetup.exe -s
5. Repeat the steps for other setup applications that uses InstallShield.
» Installing Installshield Applications from RunOnceEx CD
Installshield applications will fail to install when executed from RunOnceEx on CD, unless a log file location is specified. An
example of this is shown below, adapt this example for your InstallShield applications (shown in bold):
REG ADD %KEY%\045 /VE /D "Kerio Personal Firewall 2.1.5" /f
REG ADD %KEY%\045 /V 1 /D "%CDROM%\apps\KPF\Setup.exe -s -f2\"%systemdrive%\kerio.log\"" /f
You can then delete the kerio.log file afterwards.
» How do I identify an InstallShield package?
Most of them can be extracted. The Properties box of Setup.exe should show something like "InstallShield (R) Setup Launcher" or
something similar. And lastly, if you see a setup.iss file in the directory, then its definitely InstallShield!
Last updated 2005-12-17 23:27:42 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/40/12/24/2005 8:42:34 PM

Page 108
MSFN's Unattended Windows : Nullsoft SuperPiMP Install System (NSIS)
Nullsoft SuperPiMP Install System (NSIS)
Applications packaged with NSIS supports the /S switch for a silent installation (the 'S' is case-sensitive)
Setup.exe /S
You can also use the /D switch to specify a destination drive/directory to install the files into:
Setup.exe /S /D=E:\Software\CDex
Software such as Winamp and CDex show a confirmation that install was successful at the end (CDex), or an "end-of-install"
screen where you set file associations and settings (Winamp). I haven't found a way to bypass this yet, but it shouldn't affect the
rest of the batch commands in any way.
» How do I find out if a setup package is made by NSIS?
Many NSIS packaged installers show the familiar small window at the center of your screen, such as Winamp and CDex:
Last updated 2005-12-17 23:29:35 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/41/12/24/2005 8:42:35 PM

Page 109
MSFN's Unattended Windows : Microsoft Windows Installer
Microsoft Windows Installer
You can find out if a setup package uses Windows Installer by viewing the extension of the file (*.MSI). These files often use the /
QB and /QN switch. The powertoys uses the /s /v/qn switch. You will have to try out each of the two to find out which one
works.
/qb will show a basic progress bar in a window
/qn will not show anything and installs in the background.
» Preventing Applications from Rebooting
To prevent some applications from rebooting automatically (Kerio Personal Firewall 4 is one of them) you need to use
REBOOT=Suppress alongside the /qn or /qb switch surrounded in quotation marks. Below is an example:
setup.msi "/qn REBOOT=Suppress"
Some setup files uses the /s/v/qn switch, so to prevent reboots use:
setup.exe /s /v"/qn REBOOT=Suppress"
Last updated 2005-12-17 23:31:01 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/42/12/24/2005 8:42:35 PM

Page 110
MSFN's Unattended Windows : WISE Installer
WISE Installer
WISE packaged installers use the /s switch to silently install. All you need to use is:
Setup.exe /s
More other switches can be found at WISE's Support Area
» How do I find out if a setup package is made by WISE?
Most will display a WISE splash screen when executing the setup file, such as the one below:
Some of them will maximize the window with a dark-blue background, and position a Setup window in the center.
Last updated 2005-12-17 23:32:22 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/43/12/24/2005 8:42:36 PM

Page 111
MSFN's Unattended Windows : Adding Users
Adding Users
Now to add the creation of User Accounts to our CD/DVD's. This can be accomplished in two ways, depending on how you're most
comfortable with, and the types of User accounts you wish to have.
There are two methods:
q
NET USER
q
OOBEINFO.INI
Also included on this page is to allow auto-logon of your created users. Bare in mind that the OOBEINFO.INI Method does NOT
require the registry entry for auto-logon as long as there is only ONE user created.
» OOBEINFO.INI Method
NOTE: This method ONLY works on Windows XP/2003
Basically, what this is going to do is "automate" the user creation screen that you're normally presented when you install
Windows. It's in the same part of setup where it asks you to register Windows and to set up your internet connection.
Let's get started shall we? First open up Notepad and copy the following and save it as OOBEINFO.INI
[UserInfo]
Identity000="NewUser-Admin"
Identity001="NewUser-User"
If you don't want two users created, simply delete the second Identity line. If you want another user add another Identity entry
and increment the number. But be careful. You can have only 6 users created in this method. Also, Identity000 will be created
as an Administrator account while each subsequent one will also be created as an Administrator account.
Once you have finished editing the file, save it in $OEM$\$$\system32\oobe and you're done.
» NET USER Method
This is the original method outlined on the previous rendition of the site. This method however works across all NT platforms and
allows you to create as many users as you want in as many types as you want. Hence, this one is more powerful.
Open Notepad, and copy & paste in the following:
[COMMANDS]
"useraccounts.cmd"
Save this as cmdlines.txt in the $OEM$\ folder. If you wish to know more about cmdlines.txtcheck the Reference section.
Notice that we are trying to launch useraccounts.cmd from there. Again open Notepad and paste in the following:
net user John asdf1234 /add
net localgroup Administrators John /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT
This adds the user John with a password of asdf1234, and adds John to the Administrators Group. net accounts /maxpwage:
unlimited makes sure that the account password doesn't expire after 14 days (This is a system-wide setting). Replace with a
http://unattended.msfn.org/unattended.xp/print/web/27/ (1 of 2)12/24/2005 8:42:36 PM

Page 112
MSFN's Unattended Windows : Adding Users
username and password of your choice and then save this as useraccounts.cmd in the $OEM$ folder.
You may want to take note of one thing: If you want to create a user name that has spacing, for example John Doe, you should
surround them with quotes. It would be like so:
net user "John Doe" asdf1234 /add
» Auto-Logon
Next, we want to import the Auto Logon entry into the Registry (This is what the "REGEDIT /S autologon.reg" entry in
useraccounts.cmd is for). Open Notepad and paste in the following:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="John"
"DefaultPassword"="asdf1234"
"AutoAdminLogon"="1"
Edit your Username & Password, then save this as autologon.reg in the $OEM$\ folder.
By now, you should have all three files in the $OEM$ folder, which are: cmdlines.txt, useraccounts.cmd and autologon.reg
Last updated 2005-12-14 16:56:19 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/27/ (2 of 2)12/24/2005 8:42:36 PM

Page 113
MSFN's Unattended Windows : Activating Windows
Activating Windows
Are you tired of choices yet? Well, too bad, here is another one.
There are currently three ways to activate Windows depending on your version.
Retail Versions can make use of the WINNT.SIF method of activation, or use a backup of their activation file.
OEM Versions can make use of the WINNT.SIF method, a backup of their activation file, or use the originally included activation
method.
Then there are Volume License CDs which you must purchase a license for which don't require activation at all.
q
WINNT.SIF Method
q
Backup Activation Method
q
OEMBIOS.BIN a.k.a. original OEM Activation Method
» WINNT.SIF Method
This method is quite simple, however you MUST have an ACTIVE internet connection at the time of first login. If you do not have
such a connection, then this method will fail and you will have to complete Activation manually.
Add the following line of code to the [Unattend] section of your WINNT.SIF file.
AutoActivate=YES
» Backup Activation Method
To begin this method, you must have access to the system you're planning on activating, and have it already activated. For home
users this is simple, as Windows needs to be activate after 30 days, and most likely you're planning on using your CD/DVD on this
system.
Once your system is activated, navigate to your system32 directory within your Windows directory, and locate the file WPA.DBL.
This is your activation file.
Once you have located the WPA.DBL file, copy it to $OEM$\$$\system32 in your Windows Setup Source. That's it, you're done.
Remember that if you decide to use a virtual machine, that this method will fail, as the virtual system will look different to the OS
from your host system.
» OEMBIOS.BIN Method
As with the Backup Activation method, this method is simply a copy from here to there type of approach, the difference being the
files.
Locate on your original OEM CD, and inside the I386 folder on the disc, there should be four files:
q
OEMBIOS.BIN
q
OEMBIOS.CAT
q
OEMBIOS.DAT
q
OEMBIOS.SIG
Locate these files, and simply copy them into the I386 directory in your Windows Setup Source folder on your hard drive.
Last updated 2005-12-18 19:50:30 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/29/12/24/2005 8:42:37 PM

Page 114
MSFN's Unattended Windows : Registry Tweaks
Registry Tweaks
» Introduction
The idea behind importing the registry tweaks during unattended installation is that you won't have to tweak the system manually
or with a tweaker afterwards. You will already have all your favorite tweaks imported into the registry upon the first logon.
Perhaps, the classic tweak is to speed up the appearance of the Start menu elements, because they are indeed slow to open by
default. You probably know, that opening the Registry editor (regedit.exe), navigating to the HKEY_CURRENT_USER\Control Panel
\Desktop key and modifying the value of the MenuShowDelay parameter from 400 to, say, 20 does the trick.
However, there's an alternative way. You can accomplish the same thing, if you copy the code below to a text editor (Notepad)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop]
"MenuShowDelay"="20"
save the file as "tweak.reg" (with the quotation marks to avoid the TXT extension) and launch the file. The tweak will be imported
after you click Yes on the confirmation prompt.
If you want to avoid the confirmation prompt, you can execute the following command from the command line
REGEDIT /S <path>\tweak.reg
where <path> is the path to the file unless it is in the same directory you launched the command line from. The /S swtich
suppresses the confirmation prompt. Pretty much the same method is used for importing multiple registry tweaks during
unattended setup. The only difference is that one can import multiple tweaks with a single *.REG file.
Below you'll find some registry keys and values (tweaks) I always change. Feel free to copy the text to a text editor to see them
better. Please, do not attempt to import my registry tweaks into your system. These files are for the reference only. The
fact that I use them doesn't mean you need them. For instance, I have System Restore and Windows Update turned off
http://unattended.msfn.org/unattended.xp/print/web/17/ (1 of 4)12/24/2005 8:42:39 PM

Page 115
MSFN's Unattended Windows : Registry Tweaks
completely. Actually, I use separate files for exporting HKEY_LOCAL_MACHINE (HKLM) and HKEY_CURRENT_USER (HKCU) tweaks.
Keep reading to find out why.
The fragments of my files:
HKLM.reg
HKCU.reg
» About registry hives and importing methods
After reading multiple threads about registry tweaks importing at MSFN and OSZone boards, I've come to the conclusion that
some members misinterpret the meaning of the registry hives. I think some clarification won't hurt. I will highlight some aspects
pertaining to the unattended installation without going into too much detail. I do encourage you to read an MS KB article
Description of the Microsoft Windows registry, as it contains a lot of valuable and detailed information. Let's talk about the
registry hives now.
» HKEY_LOCAL_MACHINE (HKLM)
As the title suggests, these are the local machine keys. The changes you make in this hive affect all users. Therefore, disabling a
service makes it unavailable for all users. It is a good idea to import HKLM tweaks upon the first logon when the shell loads.
Careful readers might think: "Hmmm... So it is possible to import the tweaks before the first logon, isn't it?" Possible, but is not
really recommended for HKLM tweaks, because sometimes certain tweaks do not "stick" when imported on the earlier stages of
the unattended setup. I'll provide more details about the earlier stages in the next section.
A typical (but not the only) method for importing HKLM tweaks is a batch file launched from [GuiRunOnce]. Below is a fragment of
a sample batch file
ECHO.
ECHO Applying Registry Tweaks...
REGEDIT /S %systemdrive%\install\hklm.reg
» HKEY_CURRENT_USER (HKCU)
http://unattended.msfn.org/unattended.xp/print/web/17/ (2 of 4)12/24/2005 8:42:39 PM
Windows Registry Editor Version 5.00
;-----------------------
;Operating System Tweaks
;-----------------------
;Disable Automatic Restart in the event of a BSOD
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AutoReboot"=dword:00000000
;Speed up shutdown
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillServiceTimeout"="3000"
;Disables Error Reporting, but notifies when errors occur
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting]
"DoReport"=dword:00000000
;Do not use Simple File Sharing
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"forceguest"=dword:00000000
;Speed up Network Browsing by removing Network Scheduled Tasks
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\RemoteComputer\
NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]
;Disables Windows Tour bubble popup
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]
"RunCount"=dword:00000000
;Disable System Restore
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
\SystemRestore]
"DisableSR"=dword:00000001
;Recycle bin uses 3% of available space (not 10%)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\BitBucket]
"Percent"=dword:00000003
;Disable Autoupdates
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
\AU]
"NoAutoUpdate"=dword:00000001
;Disable Autoupdates
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
\WindowsUpdate\Auto Update]
"AUOptions"=dword:00000001
"AUState"=dword:00000007
;Change the code page for Cyrillic support
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage]
"1252"="c_1251.nls"
[ HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
\Winlogon]
"KeepRASConnections"="1"
;Make the Windows XP registration with Microsoft unnecessary
[HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion]
"RegDone"="1"
;---------------
;Services Tweaks
;---------------
;Disable Messenger Service (to stop spam. Does not affect MSN or Windows
Messenger)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Messenger]
"Start"=dword:00000004
;Disable Remote Registry Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry]
"Start"=dword:00000004
;Disable UPS
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UPS]
"Start"=dword:00000004
;Disable System Restore Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]
"Start"=dword:00000004
;Disable Indexing Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CiSvc]
"Start"=dword:00000004
;Disable Wireless Zero Configuration
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WZCSVC]
"Start"=dword:00000004
;Disable Smart Card Helper
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SCardDrv"]
"Start"=dword:00000004
;Disable Portable Media Serial Number
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WmdmPmSN"]
"Start"=dword:00000004
;Disable Remote Desktop Help Session Manager
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RDSessMgr"]
"Start"=dword:00000004
;Disable Imapi CD-Burning Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ImapiService]
"Start"=dword:00000004
;Disable IPSEC Services
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent"]
"Start"=dword:00000004
;Disable Security Center
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv]
"Start"=dword:00000004
;----------------------------------------------
;Tweaks to improve the functionality of Windows
;----------------------------------------------
;Remove Shared Documents from My Computer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\MyComputer
\NameSpace\DelegateFolders\{59031a47-3f72-44a7-89c5-5595fe6b30ee}]
;Allow renaming of Recycle Bin
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}
\ShellFolder]
"Attributes"=hex:50,01,00,20
"CallForAttributes"=dword:00000000
;Administrative tools on Control Panel
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\ControlPanel
\NameSpace\{D20EA4E1-3957-11d2-A40B-0C5020524153}]
@="Administrative Tools"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer
\Advanced]
"TaskbarGlomming"=dword:00000000
;Disable webservice for searching file-extensions (see HKCU for the second part)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies
\system]
"NoInternetOpenWith"=dword:00000001
; Don\'t Search Windows Update For Drivers (New HW Detected)
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DriverSearching]
"DontSearchWindowsUpdate"=dword:00000001
"DontPromptForWindowsUpdate"=dword:00000001
;Show protected operating system files
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\Advanced\Folder
\SuperHidden]
"DefaultValue"=dword:00000001
;Speeds up copying/moving of zip files (disable windows built in zip functionality)
[-HKEY_CLASSES_ROOT\.zip\CompressedFolder]
[-HKEY_CLASSES_ROOT\CLSID\{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CompressedFolder]
;----------------------------------------------
;Other Tweaks
;----------------------------------------------
;Disables Preview of Movie file formats (allowing you to move/rename/delete without
errors)
[-HKEY_CLASSES_ROOT\.avi\ShellEx]
[-HKEY_CLASSES_ROOT\.mpg\ShellEx]
[-HKEY_CLASSES_ROOT\.mpe\ShellEx]
[-HKEY_CLASSES_ROOT\.mpeg\ShellEx]
; Remove Briefcase And Rich-Text-Document From New Menu
[-HKEY_CLASSES_ROOT\.bfc\ShellNew]
[-HKEY_CLASSES_ROOT\.rtf\ShellNew]
[-HKEY_CLASSES_ROOT\.bmp\ShellNew]
[-HKEY_CLASSES_ROOT\.wav\ShellNew]
[-HKEY_CLASSES_ROOT\.zip\CompressedFolder\ShellNew]
Windows Registry Editor Version 5.00
;----------------------------------------------
;Tweaks to improve the functionality of Windows
;----------------------------------------------
;Disable the Desktop Cleanup Wizard
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
\Desktop\CleanupWiz]
"NoRun"=dword:00000001
;NoLowDiskSpaceChecks won\'t check if you are low on diskspace and pop up a
balloon telling you.
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies
\Explorer]
"NoLowDiskSpaceChecks"=dword:00000001
;Change MenuShowDelay (Start Menu load speed)
[HKEY_CURRENT_USER\Control Panel\Desktop]
"MenuShowDelay"="20"
;Disable Recent Documents Menu
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies
\Explorer]
"NoRecentDocsMenu"=hex:01,00,00,00
;Remove "Shortcut to" on shortcuts
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"link"=hex:00,00,00,00
;Remove "set programs default" from startmenu
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies
\Explorer]
"NoSMConfigurePrograms"=dword:00000001
;Disable Notify on new apps
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies
\Explorer]
"Start_NotifyNewApps"=dword:00000000
;Do not group similar items on the Taskbar
;----------------------------------------------
Start Menu and Folder Settings Twaks
;----------------------------------------------
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
\Advanced]
"Hidden"=dword:00000001
"ShowCompColor"=dword:00000001
"HideFileExt"=dword:00000000
"DontPrettyPath"=dword:00000000
"ShowInfoTip"=dword:00000001
"HideIcons"=dword:00000000
"MapNetDrvBtn"=dword:00000000
"WebView"=dword:00000000
"Filter"=dword:00000000
"SuperHidden"=dword:00000001
"SeparateProcess"=dword:00000000
"ListviewAlphaSelect"=dword:00000001
"ListviewShadow"=dword:00000001
"ListviewWatermark"=dword:00000001
"TaskbarAnimations"=dword:00000001
"StartMenuInit"=dword:00000002
"StartButtonBalloonTip"=dword:00000002
"CascadeNetworkConnections"="YES"
"TaskbarSizeMove"=dword:00000000
"EnableBalloonTips"=dword:00000000
"Start_LargeMFUIcons"=dword:00000001
"Start_MinMFU"=dword:00000006
"Start_ShowControlPanel"=dword:00000002
"Start_EnableDragDrop"=dword:00000001
"StartMenuFavorites"=dword:00000000
"Start_ShowHelp"=dword:00000001
"Start_ShowMyComputer"=dword:00000001
"Start_ShowMyMusic"=dword:00000002
"Start_ShowPrinters"=dword:00000001
"Start_ShowRun"=dword:00000001
"Start_ScrollPrograms"=dword:00000000
"Start_ShowSearch"=dword:00000000
"Start_ShowRecentDocs"=dword:00000002
"Start_AutoCascade"=dword:00000001
"Start_NotifyNewApps"=dword:00000000
"Start_AdminToolsRoot"=dword:00000002
"StartMenuAdminTools"="YES"
"NoNetCrawling"=dword:00000000
"FolderContentsInfoTip"=dword:00000001
"FriendlyTree"=dword:00000001
"WebViewBarricade"=dword:00000001
"DisableThumbnailCache"=dword:00000000
"ShowSuperHidden"=dword:00000001
"ClassicViewState"=dword:00000000
"PersistBrowsers"=dword:00000000
"Start_ShowNetPlaces_ShouldShow"=dword:00000041
"Start_ShowNetPlaces"=dword:00000000
"Start_ShowNetConn_ShouldShow"=dword:00000042
"StartMenuRun"=dword:00000001
"StartMenuChange"=dword:00000001
"CascadeControlPanel"="YES"
"CascadePrinters"="NO"
"StartMenuScrollPrograms"="NO"
"IntelliMenus"=dword:00000001
;----------------------------------------------
;Windows Explorer and Internet Explorer Tweaks
;----------------------------------------------
;Alphabetically sort Favorites and start menu
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
\MenuOrder\Favorites]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
\MenuOrder\Start Menu]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
\MenuOrder\Start Menu2]
;Disable IE just in time debugger
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Disable Script Debugger"="yes"
;Search with google from the address bar instead of MSN
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\G]
@="http://www.google.com/search?q=%s"
;Disable webservice for searching file-extensions
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"NoInternetOpenWith"=dword:00000000

Page 116
MSFN's Unattended Windows : Registry Tweaks
As the title suggests, these are the current user keys. Generally, the changes you make to this hive apply to the currently logged
on user only. Certainly, you can import the HCKU tweaks upon the first logon. This is probably what you need to do, if you work
under a built-in Administrator account and don't have any other accounts (which is not a very good practice) . Meanwhile, it is a
good idea to work under a different account with the administrator rights and leave the built-in Administrator untouched just in
case. The question is how to apply the HKCU tweaks for all accounts simultaneously.
Fortunately, there's an excellent resolution for those who configure more than one account and wish to have all accounts similarly
tweaked. You can import registry tweaks at a certain stage of the unattended setup when nobody has logged on yet. This task can
be accomplished from cmdlines.txt at T-12. Actually, the HKCU tweaks imported at T-12 modify the Default User account settings,
because the Default User's hive is loaded into HKEY_CURRENT_USER at that moment. When a user logs on to a machine for the
first time, the user settings are taken from the Default User account. Hence, the HKCU tweaks imported at T-12 apply to all
accounts ever created. That is why I have two separate REG files (HKCU and HKLM). I import HKCU tweaks from cmdlines.txt,
and no matter how many user accounts I create, they all have the same initial user settings.
In order to import the HKCU tweaks at T-12 you need to place the HKCU.reg file into the root of the $OEM$ folder and make sure
the cmdlines.txt contains the following text:
[Commands]
"REGEDIT /S hkcu.reg"
» HKEY_CLASSES_ROOT (HKCR)
I won't duplicate a pretty thorough description of this hive given in the MS KB article Description of the Microsoft Windows
registry. Please, familiarize yourself with it. My interpretation is as follows. If you want the changes to affect all users (including
the ones created later on), then either import the HKCR keys together with the HKCU keys from cmdlines.txt or import the keys
into HKEY_LOCAL_MACHINE\Software\Classes upon the first logon. To be honest, I've never had a need to import anything into
this hive.
» HKEY_USERS (HKU)
The meaning of this key is often interpreted incorrectly. The hive pertains to all users who logged on to the system at least once.
Perhaps, this fact causes the confusion. Let's look at the hive's components more closely.
HKEY_USERS\.DEFAULT
I've noticed that some MSFN and OSZone members use this hive for importing HKCU settings trying to apply them for all users.
Possibly, this works; however, you already know how to import HKCU tweaks realiably and correctly. Moreover, the HKEY_USERS\.
DEFAULT keys may pertain to the settings enforced before users log on (e.g. the default keyboard layout for the logon window).
HKEY_USERS\S-[long-set-of-numbers]
You may have several keys like that. It depends on the number of users who logged on to the system at least once. If you try to
monitor the registry changes with any registry monitoring software, you probably find out that one of those keys is getting
changed. This is your profile. Most of the time this key is not interesting from the practical standpoint, because the long set of
numbers is unique and will not be the same in another system you install. Technically, changes in this key are equivavelnt to the
changes in HKCU.
Hopefully, this short excurse through the registry was helpful.
» Practical Advices
As you probably know, one can configure lots of the system settings with the registry tweaks. I've forgotten when was the last
time I used a tweaker on my system, because I have pretty much everthing configured right after the installation. Perhaps, you
would like to do the same and now have a reasonable question: "How do I determine what registry values get changed whenever I
modify the system settings via the Graphic User Interface (GUI)?"
There are multiple web sites with the registry tweaks. Here's the short list ;-) There's a sticky registry tweaks thread in the
Unattended forum at MSFN. The first post of this thread has a text file attached with numerous registry tweaks.
Another good method is to configure your system elements the way you like it and then export the corresponding registry keys.
It's a much better idea than using other people's tweaks. For example, a good portion of the Start menu and Folder Options
settings is located in the
http://unattended.msfn.org/unattended.xp/print/web/17/ (3 of 4)12/24/2005 8:42:39 PM

Page 117
MSFN's Unattended Windows : Registry Tweaks
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
key. Hence, you can export the key from your current system and then import it during the unattended setup. If you are not sure
what a certain parameter does, type its name into a search engine and you'll find out quickly.
If you searched, but came up with nothing ... you probably didn't search enough ;-) Try using registry monitoring software like
Regmon (real time monitoring) and Regshot (registry snapshot before and after the changes).
Last updated 2005-12-22 15:20:42 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/17/ (4 of 4)12/24/2005 8:42:39 PM

Page 118
MSFN's Unattended Windows : Page list : Registry Tweaks
Page list : Registry Tweaks
» Registry Tweaks
Title
Author
http://unattended.msfn.org/unattended.xp/print/list/registry/12/24/2005 8:42:40 PM

Page 119
MSFN's Unattended Windows : Advanced Introduction
Advanced Introduction
Welcome to the Advanced section of the site. This portion is going to be primarily concerned with customizing your Windows
installation, ranging from using modified system files to changing the overall look and feel of your Windows. Unfortunately the
majority of this will apply only to Windows XP and Windows 2003, but there may be a couple of things that apply to Windows 2000.
Also included in this section, is adding more functionality to your Setup by using other methods to install by.
What you will need:
q
An Unattended CD from the two previous sections
q
Time to learn a new program if you change methods
q
Have fun!
Last updated 2005-12-18 22:23:39 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/55/12/24/2005 8:42:41 PM

Page 120
MSFN's Unattended Windows : Advanced Methods Introduction
Advanced Methods Introduction
Ah, the Advanced Methods. These are called advanced methods, simply because it's better to get an understanding of the
installation process before you try to get complicated. You may find that depending on the route you go, you may feel as if you
wasted time, but in reality it was entirely helpful.
The RunOnceEX from CD method is almost EXACTLY the same as the not from CD
method, the difference being that the install files never leave the CD. This will reduce the
amount of time setup takes to copy files over, and in some cases speed up the entire
process. This also alleviated the need for a cleanup file to delete your install files.
The Windows Post-Installer Method is more of a replacement then an enhancement. It
will completely replace RunOnceEX and the batch scripting. If you look to the right, you'll
see an example of what this will turn into. It has the ability to be fully automated or allow
you to select what programs you want to install.
Windows Installation Helper Utility allows the same sort of functionality as WPI, but
seamless integrates into the look of the native Windows Setup. It also allows for User
creation, and changing other system properties such as Computer Name and where special
folders are placed.
XPlode was the first of the Setup addon programs to allow you to change the look of the
box that appears while installing your programs. It's appearance is completely customizable,
and the version in development is rumored to allow for user selection like the above
applications and other features.
RunOnceEX from CD | Windows Post-Installer Method | Windows Installation Helper Utility | XPlode
Last updated 2005-12-21 21:23:36 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/63/12/24/2005 8:42:41 PM

Page 121
MSFN's Unattended Windows : RunOnceEx from CD
RunOnceEx from CD
Some of our readers wanted a way to install their software from the CD without copying the files to the Hard Drive using the \
$OEM$\$1\ folders. This guide will show you a simple way on how you can accomplish this without needing to use third-party
utilities.
Please make sure you have read through the RunOnceEx guide first!
» Making modifications to your existing RunOnceEx.cmd file
In order to find the correct CD drive letter, we need to include some IF EXIST statements in the RunOnceEx.cmd file. Open
RunOnceEx.cmd in Notepad, and include the following after @echo off:
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:
Create a blank text file called CD.txt and place this in the root of your Windows Setup Source folder. This allows the IF EXIST
command to scan all the drive letters specified, then when it finds CD.txt it will set an environment variable of %CDROM%
pointing to the correct drive letter.
The next thing to do is take all your software out of \$OEM$\$1\install\, and put it in \Software\ or a folder name of your choice.
Going back to the RunOnceEx.cmd file, we'll need to make further changes:
q
Change all instances of %systemdrive% to %CDROM%
q
Fix all the paths to the software installation file, i.e. "%CDROM%SoftwareMSN_Messenger.msi /qn"
That's all you need to do! RunOnceEx.cmd will scan for the correct drive letter where your CD is in, sets that drive letter to the %
CDROM% environment variable, and the drive letter will be imported to the registry. Give it a go and see for yourself! The end
result should look something like this:
cmdow @ /HID
@echo off
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\prepare.cmd" /f
REG ADD %KEY%\015 /VE /D "Alcohol 120 Percent" /f
REG ADD %KEY%\015 /V 1 /D "%CDROM%\Software\alcohol\setup.exe /qn Reboot=Suppress" /f
REG ADD %KEY%\015 /V 2 /D "REGEDIT /S %CDROM%\Software\alcohol\register.reg" /f
REG ADD %KEY%\025 /VE /D "Diskeeper 8.0.478" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\Software\Diskeeper\DiskeeperPro_8.0.478.exe /s /v/qn" /f
EXIT
http://unattended.msfn.org/unattended.xp/print/web/59/ (1 of 2)12/24/2005 8:42:42 PM

Page 122
MSFN's Unattended Windows : RunOnceEx from CD
» Other things to keep in mind
The %CDROM% environment variable isn't permanent, and only lasts during the session of when the cmd file is ran. Since we
have the FOR statement and the REG ADD entries in one single cmd file, there is nothing else to worry about. However, if you run
another different cmd file that accesses a file on the CD, you should include the FOR statement in that cmd file as well.
Should you need a permanent environment variable, consider using an utility such as DetectCD.exe or setenv.exe.
Last updated 2005-12-19 12:18:38 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/59/ (2 of 2)12/24/2005 8:42:42 PM

Page 123
MSFN's Unattended Windows : Windows Post-Installer
Windows Post-Installer
Many users of late have seen this as the next step in their CD creation process. Primarily because it adds features like selections
and customization of appearance. It also has a built in editor to add to the list of programs. It may also be considered open source
as it is written in HTML and Javascript.
Things you'll need to do before getting started:
q
Download a copy of WPI from it's homepage.
q
Extract the downloaded ZIP file to either
r
A temporary folder for editing
r
If you're NOT installing everything from CD, then extract into $OEM$$1Install
r
If you are installing from CD, then extract it to a folder in your Windows Setup Source.
Keep in mind, this is a REPLACEMENT for a normal method such as RunOnceEX and batch scripting, and so in that respect
it will be called by Setup in the same manner. If you want to install everything at first logon, then read up on how Batch
Scripting is executed.
» Selecting the language of WPI
If you don't speak the language that WPI is currently in upon loading, click the Options link on
the left and the very top option to change will be language. Select yours from the drop down
box, and click SAVE at the bottom.
» Adding Entries to WPI
Once you have it in your working folder download this config.js file and replace the one in the WPISCRIPTS folder. This will erase
the currently loaded list of programs. If you however want to do it manually read the section below of editing entries.
Navigate to your WPI folder, double click the file: WPI.HTA
q
On the left side, click the item saying Config
q
You should now see in the middle a screen similar to:
http://unattended.msfn.org/unattended.xp/print/web/62/ (1 of 4)12/24/2005 8:42:44 PM

Page 124
MSFN's Unattended Windows : Windows Post-Installer
To get this exact screen, click the button at the bottom of the screen labelled ADD.
q
This will bring up a form like the following:
This form will be where we do all of the entering of the commands and grouping and such.
In the box labelled NAME enter the name of your program.
http://unattended.msfn.org/unattended.xp/print/web/62/ (2 of 4)12/24/2005 8:42:44 PM

Page 125
MSFN's Unattended Windows : Windows Post-Installer
The Description box is the description that is displayed when the mouse hovers
over this program on the main page.
If this is a program that MUST be installed before another program, be sure to put
a number in the Order box. 1 will be executed before 2 and so on. This ONLY
works if they are in the same group.
Check the Default box if you want it to be installed by default.
Check the Forced box if you don't want the user to even have a choice on
installing it.
The Category drop down box is where you specify what category you want it to be
under. If the category is not listed, select other and type in the box what you
would like it to be in. You MUST have a category other then NONE selected for it to
be displayed.
The box COMMAND 1 is where you will enter then actual instruction to execute
the setup program. This can be copy pasted from batch script or RunOnceEX. If
taken from RunOnceEX, you ONLY want to copy the portion that is within the
quotes.
If there are any consecutive commands such as taskkill's or deleting shortcuts that
you will like executed following COMMAND 1's execution enter them in the
remaining COMMAND # boxes.
q
When you are done entering this entry, click the SAVE button at the bottom. It will bring you back to the start page of WPI
and displaying how it will look during normal execution.
q
Return to the Config screen and follow these steps untill you have completely entered your programs.
» Editing/Deleting Entries to WPI
Editing entries is quite simple. Return to the Config screen.
Instead of a barren screen with nothing on it, you will see a listing under navigation of all the programs entered thus far
Click the one you wish to edit, and it will appear just to the right.
If you wish to delete this from WPI, simply click the delete link at the bottom of the form.
» Finalizing for Production
Before burning it to CD, you may wish to HIDE the CONFIG and OPTIONS links.
http://unattended.msfn.org/unattended.xp/print/web/62/ (3 of 4)12/24/2005 8:42:44 PM

Page 126
MSFN's Unattended Windows : Windows Post-Installer
To begin, click the Options link to bring up the options page. It should be similar to:
While we're on the topic, I'll also briefly cover some of the more useful options.
In this box, type the order you want them to be displayed in. The first thing typed, will
be the first category displayed.
This will get you into the world of customization of WPI. This will simply change the
background picture.
This is where you will decide whether or not to show or hide the CONFIG and
OPTIONS links.
If you don't like the default mouse over description box, this is where you will change.
Unfortunately, it is in pure CSS and must be entered as such.
Specify the number of programs to be installed in each instance of the RunOnceEX
window. If you have more then the number specified, then they will be split into two or
more windows.
This option is useful for Unattended installs, but still retain the functionality of selection
during setup. The timer will countdown, and when it reaches zero, WPI will install the
checked items.
Typically, WPI will sort the install process by name, regardless of category. If you want
them installed by category, then mark the YES radio button.
Last updated 2005-12-24 20:24:41 by Alanoll
http://unattended.msfn.org/unattended.xp/print/web/62/ (4 of 4)12/24/2005 8:42:44 PM

Page 127
MSFN's Unattended Windows : Windows Installer Helper Utility
Windows Installer Helper Utility
WIHU is very useful if you want your RunOnceEX/Batch Script replacement to flow seamless with normal look of Windows Setup. It
matches the look of the Setup dialogs that you would normally see.
Before getting started, I MUST stress that this page will only go as far as setting up the programs in a BASIC fashion. It will NOT
cover any of the advanced topics. The INSTALL.INI that is included in the WIHU is well documented and is well worth the read. It
goes in great depth in covering the boolean expressions to conditionally deselect an entry at runtime.
WIHU Homepage | Direct Download
» Creating our own listing of Programs
Before getting started, I recommend that you start with a empty INI file. The INI file is just a TEXT file with the extension of INI.
For an editor, NOTEPAD is does the job just fine.
I will be referring to the above image to describe what the INI sections do.
The following is the INI file that will create the above listing:
[Windows System Files]
; Sub command 0
description.0=Windows Media Player 9 (Current Version is %wmp.dll.version%)
command.0=Wmp9\MPSetupXP.exe /Q:A /R:N
selected.0 = true
; Sub command 1
description.1=DirectX 9.0b Driver
command.1=DirectX9b\DX9NTopk.exe
selected.1 = true
; Sub command 2
description.2 = Microsoft .NET Framework 1.1
command.2 = %systemroot%\system32\msiexec.exe /i NetFramework\netfx.msi /qb
selected.2 = true
[TweakUI 2.10 Powertoy]
description.0 = Windows XP Shell-Tweaker
command.0 = %systemroot%\system32\msiexec.exe /i PowerToys\TweakUI.msi /qb
selected.0 = true
[Sun Java VM 1.4.2]
description.0 = Java Virtual Machine 1.4.2
command.0 = SunJava\j2re-1_4_2_04-windows-i586-p.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"
selected.0 = true