Making An Unattened Windows XP CD

Download as pdf or txt
Download as pdf or txt
You are on page 1of 97

MSFN's Unattended XP CD - Introduction

Introduction
Have you ever wanted a Windows XP CD that would install Windows XP by automatically putting in your name, product key, timezone and regional settings? Followed by silently installing all your favourite applications along with the latest DirectX, . Net Framework and then all the Windows Critical Updates, registry tweaks, updated drivers, and a readily patched UXTheme.dll without any user interaction whatsoever? Then this guide will show you how you can do just that! 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 intermediate experience on Microsoft Windows XP and a basic knowledge of how batch commands function. Go to: Getting Started Latest Site Updates 2nd April 2004: Fixed a problem where a User Account would expire after 14 days when using the Add Users & Autologon guide in an Unattended Windows XP CD. The solution is to add net accounts /maxpwage:unlimited to useraccounts.cmd. Thanks to GreenMachine for pointing this out! 8th March 2004: Office 2003 Slipstreaming and Unattended Guide added 5th March 2004: Revised RunOnceEx guide, added Running RunOnceEx from CD, and Windows XP Setup Timeline. Site Updates Archive 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 request permission to make a translation by sending a PM to me on the forums. Deutsch: Unbeaufsichtigte Windows XP CD Russian: Click here Italian: Click here

Sponsored Links

http://unattended.msfn.org/index.htm08/07/2004 16:54:11

MSFN's Unattended XP CD - Step 1 - Getting Started

Step 1 - Getting Started


What you will need to get started:
q q q q

Windows XP CD with Service Pack 1 Slipstreamed XP SP1 Deployment Tools CDImage for Windows XP Professional Edition / Home Edition A suitable CD Burning application

If you haven't made a slipstreamed SP1 CD yet then I'd suggest you do one now. You can use either of these resources to create your own: The Elder Geek | Windows Help.net Preparation 1. Create a directory called XPCD in the root of the C:\ Drive. This would be C:\XPCD 2. Copy the full contents of your Windows XP SP1 CD to C:\XPCD 3. In C:\XPCD create a folder called $OEM$, then create all the sub-folders as shown on this page: $OEM$ Distribution Folders. By using these folders, we can put our favourite software, drivers and registry tweaks in them. The next step is to create a winnt.sif answer file which gives instructions to Windows XP Setup to fill in all your information automatically. Go to: Step 2 - Creating an Answer File

Sponsored Links

http://unattended.msfn.org/xp/gettingstarted.htm08/07/2004 16:54:13

MSFN's Unattended XP CD - Step 2 - Creating an Answer File

Step 2 - Creating an Answer File


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 SP1 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: New or Existing Answer File: Create New Type of Setup: Unattended Setup Windows Product: Windows XP Home / Professional User Interaction: Fully Automated 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 winnt.sif. OEM Preinstallation As you read on the previous page, we're using the $OEM$ distribution folders to install our favourite software, drivers, and registry tweaks. But to make this work, we need to specify two values in the winnt.sif file under [Unattended]: [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). 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 filesystem, 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 filesystems, you may want to consider using Bart's PE and diskpart. Where does the winnt.sif file go? Copy winnt.sif to C:\XPCD\I386\ 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.

Let's move on to see how we can use batch files in our Unattended XP CD to do tasks for us. Go to: Step 3 - An Overview of Batch Files

Sponsored Links

http://unattended.msfn.org/xp/winnt_sif.htm08/07/2004 16:54:20

MSFN's Unattended XP CD - Step 3 - An Overview of Batch Files

Step 3 - An Overview of Batch Files


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 echo. echo message title start pause exit

Hides the C:\> Prompt and any commands shown in the batch file. Includes a line spacing. Prints "message" in a Command Prompt window, purely for commenting purposes. Sets the title of the window. Start an application, or an installation. Displays "Press any key to continue..." Exits the Command Prompt

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. 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 & Auto Logon, or importing your HKEY_CURRENT_USER registry tweaks to the Default profile. You will learn more about cmdlines.txt in their relevant pages, and svcpack.inf for installing the Pre-SP2 Hotfixes. 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 An Overview of the $OEM$ Folders. 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 XP 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 Installing Pre-SP2 Hotfixes. Next Step You have learnt quite a bit having reached this far. To summarise, we've copied the Windows XP SP1 CD to the hard disk, prepared the $OEM$ folders, created a winnt.sif answer file for Windows XP Setup, and gained a basic understand of batch commands. What you can do now is up to you: However you want to set up your CD - you can go and check out: Applications, Drivers, Pre-SP2 Hotfixes, Registry Tweaks, OfficeXP, and Additions. Once you have finished, go to: Finalising your CD.

Sponsored Links

http://unattended.msfn.org/xp/batch_commands.htm08/07/2004 16:54:35

MSFN's Unattended XP CD - What are the $OEM$ Distribution Folders?

What are the $OEM$ Distribution Folders?


The purpose of these $OEM$ Folders is that anything you place into there will be automatically copied to the destination hard drive of where you're installing Windows. Once copied over, you can easily create batch commands to install and perform tasks using the %systemdrive% variable. For example: If Windows was installed to the D:\ drive, the environment variable "%systemdrive%" will resolve into D:\ You might ask, "why not run application installations from the CD itself?" This is because CD-ROM drive letters are bound to be different on every PC, which shows why there's no permanent "%CDROM%" environment variable. You could however create and run a script that checks for the existance of a particular file on the CD so it maps the correct drive letter to the %CDROM% variable, but we won't be covering that in this guide (although its been discussed often in the forums so it should turn up in a search). The $OEM$ Distribution Folders As you can see on the left, the $OEM$ folder stays parallel to the i386 folder, not inside it. Anything in $1 will be copied to the root of the hard drive of where Windows is installed to (C:\ for example). See the examples below on how it all works: In preparation, the layout is: C:\XPCD\$OEM$\$1\Install\ When burned to CD (X:\ being the CD-ROM Drive letter), the layout is: X:\$OEM$\$1\Install\ When the \$OEM$\$1\Install is copied over to the hard drive during Setup, the layout is: C:\Install\ Makes sense? This is why in certain parts of the site you will find commands such as: "start /wait %systemdrive%\install\MSN\msnmsgs.msi /qb" as this gives the same output as C:\Install\ when C:\ is the Windows drive. $$ - Anything in here will be copied to the Windows folder, no matter what its called (Windows, WINNT, WindowsXP). By using this method you can create additional folders within $$ such as Resources followed by a sub-folder called Themes and place your visual styles in here. It will then be copied to C:\WINDOWS\Resources\Themes automatically when running Windows Setup.

Now that you know how all this works, understanding the rest should be easy enough: $Docs - Documents and Settings $Progs - Program Files $$ - Windows Folder $1 - Root of hard drive where Windows is installed to This saves the effort of using COPY or XCOPY batch commands to copy certain files/folders over to the destination drive.

Sponsored Links

http://unattended.msfn.org/xp/oemfolders.htm08/07/2004 16:54:18

MSFN's Unattended XP CD - Add Users & Auto Logon

Add Users & Auto Logon


One of the pitfalls of an unattended setup is that everything is run under the default Administrator account. This means programs you install will only be installed for the current logged in user (that would be the default Administrator) and won't be accessible for other users. The same applies for registry tweaks that use HKEY_CURRENT_USER, but we'll discuss that on a seperate page here. Most applications today will install for "All Users", but in case you have a favourite application that won't install for "All Users", and prefer to have it in your own custom user account, then this guide is for you! What we want to do is set up our own User Account during GUI-mode of Windows XP Setup (that's where you see the countdown). To do this, we need to use a file known as cmdlines.txt which will automatically run at the T-12 Minute stage of Windows XP Setup. By doing this, we can automate the first logon with your own user name. Instructions Open Notepad, and copy & paste in the following:

[COMMANDS] "useraccounts.cmd" Save this as cmdlines.txt in the C:\XPCD\$OEM$\ folder. 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 username and password of your choice and then save this as useraccounts.cmd in the C:\XPCD\$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 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 C:\XPCD\$OEM$\ folder. By now, you should have all three files in the $OEM$ folder, which are: cmdlines.txt, useraccounts.cmd and autologon.reg. Final Steps To ensure this runs smoothly, make sure you only have 2 admin-related values under [GuiUnattended] in winnt.sif: AdminPassword=* EncryptedAdminPassword=No Remove anything else such as AutoLogon or AutoLogonCount. Replace the asterisk in AdminPassword with a password if you want to protect the Administrator account from unauthorised access. You can also encrypt the password using the Setup Manager included with the Deployment Tools - in which case EncryptedAdminPassword should be set to Yes. One last thing to remember - anything defined in winnt.sif such as the AdminPassword does not effect the user account "John" outlined in this guide. This only affects the default "Administrator" account. Once you have added this to your Unattended XP CD, you will notice a quick flash of a Command Prompt box at around the T-12 Minute stage, this is where useraccounts.cmd executes from cmdlines.txt

Sponsored Links

http://unattended.msfn.org/xp/autologon.htm08/07/2004 16:54:22

MSFN's Unattended XP CD - Importing HKEY_CURRENT_USER Registry Tweaks

Importing HKEY_CURRENT_USER Registry Tweaks


You probably have noticed that importing registry tweaks that are for the HKEY_CURRENT_USER tree from either [GuiRunOnce] or RunOnceEx only applies to the current logged in user account. This means any further accounts you create in future doesn't inherit your custom tweaks. This guide will show you how you can get your HKEY_CURRENT_USER tweaks applied to all user accounts. For this, we'll be using a method known as cmdlines.txt which automatically runs at the T-12 minute stage of Windows XP Setup. Instructions Open Notepad, and copy & paste in the following: [COMMANDS] "REGEDIT /S regtweaks.reg" Save this as cmdlines.txt in the C:\XPCD\$OEM$\ folder. If you haven't created your regtweaks.reg file yet, check this page for a couple of examples. Below is an example of Registry Tweaks for HKEY Current User. Please do not use these examples if you are not sure what they do.

Windows Registry Editor Version 5.00 ;Disable the Desktop Cleanup Wizard [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz] "NoRun"=dword:00000001 ;Adds search keywords to Internet Explorer [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\MSKB] @="http://support.microsoft.com/?kbid=%s" [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\AV] @="http://www.altavista.com/sites/search/web?q=%s" [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\Ggl] @="http://www.google.com/search?q=%s" Simply place regtweaks.reg in the same folder Explorer\SearchUrl\MSN] [HKEY_CURRENT_USER\Software\Microsoft\Internet where cmdlines.txt exists. That would be: C:\XPCD\$OEM$\ @="http://search.msn.com/results.asp?q=%s" [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\FM] All HKEY_CURRENT_USER tweaks imported at this stage will be mapped to the Default User Profile, and any further @="http://www.filemirrors.com/search.src?file=%s" accounts you create in future will inherit them :-) ;Prevents Internet Explorer windows from being reused More Information [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "AllowWindowReuse"=dword:00000000 You can visit MSFN Member GreenMachine's page for(defaultinformation regarding Default User Profiles. ;Max your Internet Explorer's simultaneous downloads to 10 more was 2) [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] "MaxConnectionsPer1_0Server"=dword:0000000a "MaxConnectionsPerServer"=dword:0000000a ;Change MenuShowDelay (Start Menu load speed) [HKEY_CURRENT_USER\Control Panel\Desktop] "MenuShowDelay"="2"

Sponsored Links

;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 ;NoRecentDocsmenu removes the recent documents from the start menu. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] http://unattended.msfn.org/xp/hkcu_registry.htm08/07/2004 16:54:24

MSFN's Unattended XP CD - Silent Installation of your favourite Registry Tweaks

Silent Installation of your favourite Registry Tweaks


In this guide, we'll show you how you can put all your favourite registry tweaks into one single .reg file, and show you how you can import all the entries into the Windows Registry silently. Instructions Below, you'll find my personal favourite registry tweaks, but that's not all! You can check Kelly's XP Corner for hundreds more. It's a good idea to copy the contents of this and paste into Notepad so you can view them clearly in full screen and edit out the ones you don't want to use. Please do not use any of them if you're unsure what they do. Just because I use these tweaks doesn't mean you have to as well. There's probably hundreds and thousands of different tweaks you can put into the registry, you just have to pick out your favourite ones.

Windows Registry Editor Version 5.00 ;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" ;Disable the Desktop Cleanup Wizard [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz] "NoRun"=dword:00000001 ;Disables Error Reporting, but notifies when errors occur [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting] "DoReport"=dword:00000000 ;Disable Welcome Screen and uses Classic Logon [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "LogonType"=dword:00000000 Once you have finished putting in all your personal favourite registry tweaks in Notepad, save it as RegTweaks.reg in C: \XPCD\$OEM$\$1\install\ ;Disable Windows Picture and Fax Viewer [-HKEY_CLASSES_ROOT\SystemFileAssociations\image\ShellEx\ContextMenuHandlers\ShellImagePreview] Lastly, copy & paste these lines to one of your batch files: ;Do not use Simple File Sharing [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] ECHO. "forceguest"=dword:00000000 ECHO Applying Registry Tweaks... REGEDIT /S %systemdrive%\install\RegTweaks.reg ;Speed up Network Browsing by removing Network Scheduled Tasks [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A Important Information 11CF-8D87-00AA0060F5BF}] ;Remove Shortcut Arrows As the guide above explains how to import your registry tweaks in [GuiRunOnce], you will probably find that all your [HKEY_CLASSES_ROOT\lnkfile] tweaks for HKEY_CURRENT_USER only applied to the logged in account. If you want the tweaks to apply to all user "IsShortcut"=accounts you should follow this guide: Importing HKEY_CURRENT_USER Registry Tweaks ;Disables Windows Tour bubble popup [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour] "RunCount"=dword:00000000 ;Disable Imapi CD-Burning Service [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ImapiService] Sponsored Links "Start"=dword:00000004 ;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] http://unattended.msfn.org/xp/registrytweaks.htm08/07/2004 16:54:26

MSFN's Unattended XP CD - Reference - winnt.sif commands explained

Reference - winnt.sif commands explained


Jump to section: [Data] [UserData] [Networking] [Unattended] [TapiLocation] [Components] [GuiUnattended] [RegionalSettings] [Identification] [Shell] [Display] [GuiRunOnce]

[Data] AutoPartition=1 or 0 If you have the selection on 1 then Windows Setup will install the OS on any free partition that is available. If you remove this line or if you put AutoPartition=0 then setup will ask you on which partition you wish to install Windows onto and advises you what to do if your partition already contains an OS. MsDosInitiated = "0" or "1" If this setting is on "0" it will inform Setup that you are installing from CD, put a value of 1 if you use only diskettes to boot. UnattendedInstall = "Yes" If "Yes" is input, this will tell Setup you are running an installation of the Unattended type. ^Back to Top [Unattended] UnattendMode=FullUnattended Setting this option to FullUnattended will perform a fully unattended install, which uses the winnt.sif answer file to answer all the Setup questions, you will have no option to change these answers during setup. Other values can be found in the Ref.chm file that was mentioned on the Creating an Answer File page. OemSkipEula=Yes or No Setting this option to Yes will skip the EULA screen which you already read when you used Setup Manager. Setting this option to No will mean you have to press F8 on the keyboard to accept the license during text-mode Setup. OemPreinstall=No or Yes This option is default to No but if you are using the $OEM$ Distribution folders then it needs to be set to Yes, so that Setup regards this installation as a distribution and copies these files over to the system drive. This occurs at the end of Text-mode Setup. TargetPath=\WINDOWS This option tells Setup the directory path that Windows should install to. Repartition=No Specifies whether to delete all partitions on the first drive of the client computer and to reformat the drive with the NTFS file system automatically. UnattendSwitch="yes" Specifies whether Setup skips Windows Welcome or Mini-Setup when preinstalling Windows XP Home Edition or Windows XP Professional using the CD Boot method. Set this to yes to skip the "Setting Up Internet Connection" and "Create User Accounts" screens. WaitForReboot="No" Specifies whether the computer waits 15 seconds after GUI-mode Setup finishes. Choosing No will disable the 15 second wait. OemPnPDriversPath="Drivers\Catalyst3_6\2KXP_INF;Drivers\asus\sound\" This is where you can tell Setup to search your updated drivers directories to find a better match than what's in the existing drivers.cab on the XP CD. If it finds a better match it will install those instead. More is explained on the Drivers page. DriverSigningPolicy=Ignore This will force Setup to install drivers that may not be WHQL certified. This is used in conjunction with OemPnPDriversPath. AutoActivate = Yes This will auto-activate your copy of Windows XP. To automatically activate Windows XP, you must first establish an Internet connection. Please make sure your ProductKey is valid under [UserData] ProgramFilesDir="C:\My Program Files" You can change the default location of Program Files using this entry. Replace the drive letter and folder name as appropriate. CommonProgramFilesDir="C:\My Program Files\My Common Files" You can change the default location of Common Files in Program Files using this entry. Replace the drive letter and folder names as appropriate. KeyboardLayout="United Kingdom" By setting your Keyboard Layout, this prevents the Language icon appearing on the taskbar when you've logged on. A full list of values can be found here. ^Back to Top [GuiUnattended] AdminPassword=YourPassword or * This option sets the Administrator password for the Admin account in Windows XP. Setting this option to * means a blank password will be set. EncryptedAdminPassword=Yes or No This option tells Setup if your password is Encrypted or Not, Yes will tell setup it is encrypted and No will tell setup it is not. If you have no Admin password this option should be set to No. Setup Manager will also encrypt the password for you in your winnt.sif answer file if you chose to. OEMSkipRegional=0 or 1 This option when set to 0 will show the regional screen, if set to 1 then it will skip the screen. TimeZone=85 This option is tells Setup what timezone to choose, eg. GMT Meantime is 85. Each timezone has a different value - a full listing of these timezone values can be found in ref.chm in the Deployment Tools. OemSkipWelcome=0 or 1 This option should be set to 0 if you have OemPreinstall from above on No, If OemPreinstall is on Yes then this option should be set to 1, not doing so will halt the OEM process! When set to 0 this tells Setup not to display the welcome screen during the GUI-mode of Windows Setup (Note: This is not the same as "Windows Welcome" where you set a username for your new account when Setup finishes) ProfilesDir="C:\Documents and Settings\" You can change the default location of Documents and Settings using this entry. ^Back to Top [Display] BitsPerPel=32 This option sets the color quality in bits. Available values are: 32, 24, 16, and 8 (that's 256 colors!) Xresolution=1024 This options sets the screen resolution that windows will start up in by default. This setting is the X size. Yresolution=768 This options sets the screen resolution that windows will start up in by default. This setting is the Y size. Vrefresh=85 This options sets the display's refresh rate. Make sure you do not exceed a number considered unsafe beyond your monitor's specification, doing so may result in damaging your monitor. ^Back to Top [UserData] ProductKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx This option is where you enter your cd-key for Setup to use. FullName="Insert Name" This option is where you can specify your own name, this is displayed under "Registered to:" in Windows XP's System Properties. OrgName="Insert Organisation Name" This option is where you can specify your organisation name, this is also displayed under "Registered to:" in Windows XP's System Properties. ComputerName=Insert Name This option is where you can specify a name for your Computer, which is used system and network-wide. This is displayed in the Computer Name tab in Windows XP's System Properties. ^Back to Top [TapiLocation] CountryCode=44 This is the option where you can specify your country code. For the UK its 44. Please refer to the ref.chm file in the Deployment Tools to get the correct values for other countries. Dialing=Tone This option sets the type of phone line you have. Available values are Tone, and Pulse ^Back to Top [RegionalSettings] LanguageGroup=1 This option sets the language group of your installation. Please refer to the ref.chm file in the Deployment Tools for more information. Language=00000809 This option sets the language of your installation. Please refer to the ref.chm file in the Deployment Tools for more information. 00000809 is for the UK ^Back to Top [Identification] JoinWorkgroup=WORKGROUP This option is specifies what workgroup you wish to join. If you don't use a network, then you can leave this part alone. ^Back to Top [Networking] InstallDefaultComponents=Yes or No This option tells Setup if you want to install the default components for networking. If you select Yes then the default will be installed, If you select No then you can specify what protocols, services and clients to install and what not to. The best way to configure this is via Setup Manager (setupmgr.exe) ^Back to Top [Components] msmsgs=off This option tells Setup not to install Windows Messenger 4.6 msnexplr=off This option tells Setup not to install MSN Explorer 7. freecell=off This option tells Setup not to install the FreeCell game. hearts=off This option tells Setup not to install the Hearts game. minesweeper=off This option tells Setup not to install the Minesweeper game. pinball=off This option tells Setup not to install the Pinball game. solitaire=off This option tells Setup not to install the Solitaire game. spider=off This option tells Setup not to install the Spider Solitaire Game. zonegames=off This option tells Setup not to install the MSN Zone Games. For a full list of components, you can view them here. (Thanks to DaveXP for putting this together) ^Back to Top [Shell] CustomDefaultThemeFile = "%WinDir%\Resources\Themes\MyTheme.theme" This option sets the default theme that windows will use, this can be a custom theme or another default theme included with Windows XP. This will mean that XP will not boot up using the default Luna theme, but with a theme you set in this option. DefaultStartPanelOff = Yes This tells Windows XP to use the Classic Start Menu, and displays the My Computer, My Documents icons as well as others on the Windows Desktop. If set to No, then the default Windows XP Start Menu is used. DefaultThemesOff = Yes This tells Windows XP to use the Classic Theme. Note: This option overrides CustomDefaultThemeFile option when set to Yes. ^Back to Top [GuiRunOnce] %systemdrive%\install\batch_file1.cmd The GuiRunOnce section is where you set the paths to batch files that run when Windows XP Setup has finished. These batch files run when the Admin account (or your own user account) is logged in. ^Back to Top You can check ref.chm in the Deployment Tools for many other values you might want to use that isn't covered on this page.

Sponsored Links

http://unattended.msfn.org/xp/reference.htm08/07/2004 16:54:29

MSFN's Unattended XP CD - Examples

Examples
On this page, you can see examples of the various files used in the making of my CD as well as the winnt.sif file, feel free to use snippets of these commands for your CD as well! Winnt.sif: [Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes" [Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS FileSystem=* UnattendSwitch="yes" WaitForReboot="No" DriverSigningPolicy=Ignore OemPnPDriversPath="Drivers\000_intel_INF;Drivers\001_gigabit_LAN;Drivers \002_monitor" KeyboardLayout="United Kingdom" [GuiUnattended] AdminPassword=* EncryptedAdminPassword=No svcpack.inf OEMSkipRegional=1 TimeZone=85 OemSkipWelcome=1 [Version] Signature="$Windows NT$" [UserData] MajorVersion=5 ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX MinorVersion=1 FullName="Aaron" BuildNumber=2600 OrgName="Home" ComputerName=COMPUTER1 [SetupData] CatalogSubDir="\i386\Update" [Display] BitsPerPel=32 [ProductCatalogsToInstall] Xresolution=1280 YResolution=1024 [SetupHotfixesToRun] Vrefresh=85 /Q:A /R:N Q330994.exe JS56NEN.exe /Q:A /R:N [TapiLocation] mdac.cmd CountryCode=44/N /Z /O Q823182.exe /Q Dialing=Tone /Q /N /Z /O Q824105.exe AreaCode=01379 /Z /O Q824141.exe /Q /N Q825119.exe /Q /N /Z /O [RegionalSettings] /Z /O Q826939.exe /Q /N LanguageGroup=1 Q828028.exe (before I start.cmd /Q /N /Z /O converted to the RunOnceEx method): Language=00000809 /O Q828035.exe /Q /N /Z Q832894.exe /Q:A /R:N [Identification] CLS WMP9MM2.exe JoinWorkgroup=MSHOME @echo off Q828026.exe /Q /N /Z /O TITLE Windows XP SP1 - Unattended Installation qchain.exe [Networking] DX9NTopk.exe InstallDefaultComponents=Yes ECHO. ECHO Over the next few minutes you will see automated installations [Branding] ECHO of various sofware applications, windows updates, and registry BrandIEUsingUnattended=Yes ECHO tweaks being implemented. The computer will restart automatically ECHO once the whole process has finished! [URL] Home_Page=http://www.msfn.org ECHO. ECHO Removing Wallpapers and Screensavers... [Components] DEL "%systemroot%\*.bmp" msmsgs=off DEL "%systemroot%\Web\Wallpaper\*.jpg" msnexplr=off DEL "%systemroot%\system32\dllcache\*.scr" freecell=off DEL "%systemroot%\system32\*.scr" hearts=off minesweeper=off ECHO. pinball=off ECHO Removing useless shortcuts... solitaire=off DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk" spider=off DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk" RunOnceEx.cmd: zonegames=off DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk" [Shell] cmdow ECHO. @ /HID DefaultStartPanelOff =Messenger 6.0.0602 Final @echo off ECHO Installing MSN Yes DefaultThemesOff = Yes ECHO Please wait... SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx start /wait %systemdrive%\install\MSN\MsnMsgs.msi /qn [GuiRunOnce] %systemdrive%\install\start.cmd "Installing Applications" /f REG ADD %KEY% /V TITLE /D ECHO. ECHO Installing TweakUI 2.10 Powertoy REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f ECHO Please wait... REG ADD %KEY%\001 /V 1 /D "%systemdrive%\apps\prepare.cmd" /f start /wait %systemdrive%\install\Powertoys\TweakUI.msi /qn REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f ECHO. REG ADD %KEY%\005 /V 1 /D Powertoy ECHO Installing Task Switcher "%systemdrive%\apps\AdobeReader6\AR6.msi /qn" /f ECHO Please wait... REG /wait %systemdrive%\install\PowerToys\TaskswitchPowertoySetup.exe /s /v/qn start ADD %KEY%\015 /VE /D "Alcohol 120" /f REG ADD %KEY%\015 /V 1 /D "%systemdrive%\apps\alcohol\setup.exe /qn" /f REG ADD %KEY%\015 /V 2 /D "REGEDIT /S %systemdrive%\apps\alcohol\register.reg" /f ECHO. ECHO Applying Registry Tweaks... REG ADD %KEY%\025 /VE /D "Diskeeper 8" /f REGEDIT /S %systemdrive%\install\RegTweaks.reg REG ADD %KEY%\025 /V 1 /D "%systemdrive%\apps\DiskeeperPro_8.0.459.exe /s /v/qn" /f ECHO. REG ADD %KEY%\030 /VE /D Account created ECHO Deleting ASP.NET User "DU Meter 3" /f by prepare.cmd (used with RunOnceEx.cmd) .NET Framework 1.1... REG ADD %KEY%\030 net user aspnet /delete /V 1 /D "%systemdrive%\apps\dumeter3.exe /VERYSILENT /SP-" /f REG ADD %KEY%\035 /VE /D "Flashget 1.4" /f ECHO. @ /HID cmdow REG ADD %KEY%\035 /V of /D "%systemdrive%\apps\flashget\fgf140.exe /S" /f ECHO Starting installation 1 Applications REG "%systemroot%\*.bmp" /D "REGEDIT /S %systemdrive%\apps\flashget\register.reg" /f DEL ADD %KEY%\035 /V 2 ECHO. DEL "%systemroot%\Web\Wallpaper\*.jpg" REG "%systemroot%\system32\dllcache\*.scr" /f ECHO Installing Diskeeper 7.0.428 DEL ADD %KEY%\037 /VE /D "IsoBuster 1.5" REG "%systemroot%\system32\*.scr" ECHO Please wait... DEL ADD %KEY%\037 /V 1 /D "%systemdrive%\apps\IsoBuster1.5.exe /VERYSILENT /SP-" /f REG ADD %KEY%\037 /V 2 /D "taskkill /F /IM isobuster.exe" /f start /wait %systemdrive%\install\Applications\diskeeper\Setup.exe /s /v/qn DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk" REG "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk" ECHO. DEL ADD %KEY%\040 /VE /D "Kerio Personal Firewall 2.1.5" /f REG "%AllUsersProfile%\Start Menu\Windows Catalog.lnk" ECHO Installing Flashget 1.4/D "%systemdrive%\apps\KPF\Setup.exe -s" /f DEL ADD %KEY%\040 /V 1 ECHO Please wait... REG ADD %KEY%\042 /VE /D "MDAC 2.7 SP1 Hotfix" /f start /wait %systemdrive%\install\Applications\flashget\fgf140.exe /S EXIT REG ADD %KEY%\042 /V 1 /D "%systemdrive%\apps\mdac\mdac.cmd" /f ECHO. cleanup.cmd (used with RunOnceEx.cmd) REG ADD %KEY%\047 /VE /D "MSN Messenger 6.1" /f ECHO Registering Flashget 1.4... REG ADD %KEY%\047 /V 1 /D "%systemdrive%\apps\MSN_Messenger_6.1.0202.msi /qn" /f REGEDIT /S %systemdrive%\install\Applications\flashget\register.reg cmdow @ /HID REG ADD %KEY%\050-c "Windows XP will now restart in 1 minute..." ECHO. shutdown.exe -r -f -t 60 /VE /D "Nero Burning ROM 5.5" /f REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\apps\nero\register.reg" /f ECHO Installing /deletePersonal Firewall 2.1.5 net user aspnet Kerio REG ADD %KEY%\050 /V 2 /D "%systemdrive%\apps\Nero\Nero551054.exe /silent /noreboot" /f ECHO Please wait... start /wait"%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing" RD /S /Q %systemdrive%\install\Applications\kpf\Setup.exe -s REG ADD %KEY%\053 /VE /D ".NET Framework 1.1" /f Web Start" RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java REG ADD %KEY%\053 /V 1 /D "%systemdrive%\apps\dotnetfw.exe" /f ECHO. ECHO Registering Nero Burning ROM... DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk" REG "%UserProfile%\Desktop\Flashget.lnk" REGEDIT /S %systemdrive%\install\Applications\Nero\register.reg DEL ADD %KEY%\055 /VE /D "TweakUI Powertoy" /f REG "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk" DEL ADD %KEY%\055 /V 1 /D "%systemdrive%\apps\Powertoys\TweakUI.msi /qn" /f ECHO. DEL "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk" REG "%AllUsersProfile%\Desktop\Java Web Start.lnk" ECHO Installing Nero Burning ROM v5.5.10.42 Powertoy" /f DEL ADD %KEY%\060 /VE /D "Task Switcher REG "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk" ECHO Please wait... DEL ADD %KEY%\060 /V 1 /D "%systemdrive%\apps\Powertoys\TaskswitchPowertoySetup.exe /s /v/qn" /f start /wait %systemdrive%\install\Applications\Nero\Nero551042.exe /silent /noreboot DEL "%AllUsersProfile%\Desktop\Alcohol 120%.lnk" REG ADD %KEY%\065 /VE /D "Sun Java 1.4.2" /f REG ADD %KEY%\065 /V 1 /D "%systemdrive%\apps\SunJava\j2re-1_4_2_01-windows-i586.exe /s /v/qn" /f ECHO. "%systemroot%\Cache\Adobe Reader 6\" RD /S /Q REG ADD %KEY%\065 /V 2 /D "REGEDIT /S 8.1 ECHO /Q %systemdrive%\drivers\ Corporate%systemdrive%\apps\SunJava\RemoveSunJavaUpdateCheck.reg" /f RD /S Installing Symantec Antivirus ECHO /Q %systemdrive%\apps\ RD /S Please wait... REG ADD %KEY%\070 /VE /D "Symantec AV Corp 8.1.1" /f start /wait %systemdrive%\install\Applications\sav\sav810b821.exe /qn REG ADD %KEY%\070 /V 1 /D "%systemdrive%\apps\SAVCorp8.1.1.314.exe /qn" /f EXIT ECHO. REG ADD %KEY%\075 /VE /D "WinRAR 3.20" /f ECHO Updating Symantec Antivirus Virus Definitions (May 14th 2003)... REG ADD %KEY%\075 /V 1 /D "%systemdrive%\apps\WinRAR320.exe /s" /f COPY "%systemdrive%\install\Applications\sav\vd155c08.xdb.xdb" "%systemdrive%\Documents and Settings\All Users\Application Data\Symantec\Norton AntiVirus Corporate Edition\7.5\" REG ADD %KEY%\080 /VE /D "Importing Registry Tweaks" /f Sponsored Links REG ADD %KEY%\080 /V 1 /D "REGEDIT /S %systemdrive%\apps\regtweaks.reg" /f ECHO. ECHO Restarting the PC in 1 minute... REG ADD %KEY%\085 /VE /D "Cleaning Up and Rebooting" /f shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the REG ADD %KEY%\085 /V ready to restart!" shell to fully load before its 1 /D "%systemdrive%\apps\cleanup.cmd" /f EXIT ECHO. ECHO Deleting Temp Installation Files... RD /S /Q %systemdrive%\Drivers http://unattended.msfn.org/xp/examples.htm08/07/2004 16:54:37 RD /S /Q %systemdrive%\install

MSFN's Unattended XP CD - Silent Installation of Pre-SP2 Hotfix Updates

Silent Installation of Pre-SP2 Hotfix Updates


At the time of making this guide, there's probably approx. 25-35 MB of critical updates on WindowsUpdate for Windows XP. Nobody likes to download them, especially if you're on 56K when you're eager to get all your essential apps 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

Sponsored Links

http://unattended.msfn.org/xp/hotfixes.htm08/07/2004 16:54:38

MSFN's Unattended XP CD - Getting the Hotfixes

Getting the Hotfixes


You're probably wondering how to find out which exact hotfixes you need for Windows XP, there are 4 ways to do this: Method 1 - An up-to-date list for Windows XP Professional SP1 A full list of Critical Updates are available at this forum thread, please keep in mind this list is for Windows XP Professional Edition SP1 (32-bit). If you are using an edition other than Professional, please use one of the 3 other methods shown below. This list is kept up-to-date at all times. Method 2 - Windows Update Set up a base install of Windows XP SP1 (with no updates installed), and access WindowsUpdate. 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 WindowsUpdate. Method 3 - Windows Update Catalog Set up a base install of Windows XP SP1 (with no updates installed), and access WindowsUpdate. 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 SP1) 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/need 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 harddrive. Method 4 - HFNetChk Instead of accessing WindowsUpdate, 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 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. Once SP2 is officially released, you can scrap the lot and start collecting Pre-SP3 hotfixes... but that's some time off yet!

Sponsored Links

http://unattended.msfn.org/xp/gethotfixes.htm08/07/2004 16:54:40

MSFN's Unattended XP CD - Installing the Hotfixes

Installing the Hotfixes


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 mins 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\Update\ 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. Open Notepad and copy and paste the following below: [Version] Signature="$Windows NT$" MajorVersion=5 MinorVersion=1 BuildNumber=2600 [SetupData] CatalogSubDir="\i386\Update" [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 Update 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.inf in 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] Update QCHAIN.exe Don't forget to add QCHAIN.exe to your Update 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. My svcpack.inf file For reference, you can download a copy of svcpack.inf that I use to get an idea of how it's done. This is up-to-date as of 11th February 2004 and is for SP1a only (this means the MS Java VM Update isn't included in svcpack.inf). Download: svcpack.inf

Installing hotfixes not supported by svcpack


There are three updates that cannot be processed by svcpack.inf (or uses a different command syntax) at the time of writing up this guide:
q q q

Q832483 - Buffer overrun in an MDAC function could allow code execution Q817787 - Flaw in Windows Media Player Skins Downloading Could Allow Code Execution (Only needed for WMP8) Q817778 - Advanced Networking Pack

View this forum thread for more information and updates when they become available as the list above may be out of date. Setting up hotfixes.cmd If you are not familiar with the $OEM$ distribution folder and the winnt.sif file, please read through the Getting Started and Creating an Answer File page. Create a folder called hotfixes in C:\XPCD\$OEM$\$1\install\ and copy all the hotfix files (which do not work in svcpack) to C:\XPCD\$OEM$\$1\install\hotfixes\ Open up Notepad and copy & paste the following: @echo off ECHO. ECHO Installing Q817787 for Windows Media Player 8 start /wait %systemdrive%\install\hotfixes\Q817787.EXE /Q:A /R:N ECHO. ECHO Installing Q832483 Buffer overrun in an MDAC function could allow code execution start /wait %systemdrive%\install\hotfixes\ENG_Q832483_MDAC_X86.EXE /C:"dahotfix.exe /q /n" /q ECHO. ECHO Installing Q817778 Advanced Networking Pack start /wait %systemdrive%\install\hotfixes\Q817778.exe /Q /O /N /Z EXIT Save this as hotfixes.cmd in C:\XPCD\$OEM$\$1\install\hotfixes\ If you do not already have a reboot command in one of your batch files, you may want to add this to the end of the hotfixes.cmd file: ECHO. ECHO Restarting the PC in 1 minute... shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute" EXIT Setting up winnt.sif In your winnt.sif file, add the following text at the very bottom: [GuiRunOnce] %systemdrive%\install\hotfixes\hotfixes.cmd This will run the hotfixes.cmd file on first logon. Conclusion Burn all the files to CD, or use CDImage from this page to create a bootable ISO which you can test in VMWare or Virtual PC, or burn to CD. If you have done it all correctly, there should be no Critical Updates listed on Windows Update!

Sponsored Links

http://unattended.msfn.org/xp/installhotfixes.htm08/07/2004 16:54:44

MSFN's Unattended XP CD - Explaination of Hotfix Switches used

Explaination 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 explaination 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 noticably, roughly shaving off one minute per hotfix. This is because each hotfix installation spends time searching for "third-party drivers" repeatly 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.

Sponsored Links

http://unattended.msfn.org/xp/hotfixswitches_explained.htm08/07/2004 16:54:47

http://unattended.msfn.org/files/svcpack.inf

[Version] Signature="$Windows NT$" MajorVersion=5 MinorVersion=1 BuildNumber=2600 [SetupData] CatalogSubDir="\i386\Update" [ProductCatalogsToInstall] [SetupHotfixesToRun] Q330994.exe /Q:A /R:N JS56NEN.exe /Q:A /R:N mdac.cmd Q823182.exe /Q /N /Z /O Q824105.exe /Q /N /Z /O Q824141.exe /Q /N /Z /O Q825119.exe /Q /N /Z /O Q826939.exe /Q /N /Z /O Q828028.exe /Q /N /Z /O Q828035.exe /Q /N /Z /O Q832894.exe /Q:A /R:N WMP9MM2.exe Q828026.exe /Q /N /Z /O qchain.exe DX9NTopk.exe

http://unattended.msfn.org/files/svcpack.inf08/07/2004 16:54:47

http://unattended.msfn.org/images/no_updates.png

http://unattended.msfn.org/images/no_updates.png08/07/2004 16:54:48

http://unattended.msfn.org/images/automatic_install.gif

http://unattended.msfn.org/images/automatic_install.gif08/07/2004 16:54:48

MSFN's Unattended XP CD - Unattended Installation of Applications

Unattended Installation of Applications


In this section, we'll be showing you how you can install applications silently without user interaction. Each application is listed in the navigation menu under Applications. 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. 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 occured during the installation. These types of applications are listed below: WinInstall LE 2003 (Freeware) Use the 'Discover' Wizard. InstallRite (Freeware) AutoIT (Freeware) Symantec AI Snapshot (Included in Symantec Ghost Corporate)

Sponsored Links

http://unattended.msfn.org/xp/applications.htm08/07/2004 16:54:50

MSFN's Unattended XP CD - Device Drivers

Silent Installation of Windows Device Drivers


If you ever had to update a lot of drivers after installing Windows, then this guide will show you how you can get Windows XP 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! For those who have a SATA/Raid setup, you may want to read this page as the method outlined below cannot load your Hard drive controller drivers during Setup. 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 XP CD. If it finds a better match it will install those instead. Note: Seperate 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 XP 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 seperate direct paths to them in OemPnPDriversPath. This is because Windows XP 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 C:\XPCD\$OEM$\$1\drivers\

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.

Sponsored Links

http://unattended.msfn.org/xp/drivers.htm08/07/2004 16:54:52

MSFN's Unattended XP CD - InstallShield

InstallShield
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. e.g: 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%\install\Application\Application_name\Setup.exe -s 5. Repeat the steps for other setup applications that uses InstallShield. 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!

Sponsored Links

http://unattended.msfn.org/xp/applications/installshield.htm08/07/2004 16:54:57

MSFN's Unattended XP CD - Office XP Unattended - Introduction

Office XP Unattended - 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

Sponsored Links

http://unattended.msfn.org/xp/officexp.htm08/07/2004 16:54:58

MSFN's Unattended XP CD - Office XP Unattended - Simple method

Office XP Unattended - Simple method


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.

Sponsored Links

http://unattended.msfn.org/xp/officexp_simple.htm08/07/2004 16:55:00

MSFN's Unattended XP CD - Office XP Unattended - Advanced method

Office XP Unattended - Advanced method


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 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-todate 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:

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:

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\$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 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 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. msiexec /p C:\OXPupdates\MSCONVff.msp /a C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\proplus.msi SHORTFILENAMES=TRUE /qb You will also be able to slipstream another Post-SP2 update if one becomes available using the instructions we've showed you in this C:\OXPupdates\SNAPVIEWff.msp /a C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\proplus.msi be done once. msiexec /p guide without making another Administrative Installation Point because it only needs to SHORTFILENAMES=TRUE /qb 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)

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 Behaviour. 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:

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:

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:

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\$OEM$\$1\install\Applications\OfficeXP\Unattended.MST /qbto... 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 /qbThat's it!

Sponsored Links

http://unattended.msfn.org/xp/officexp_advanced.htm08/07/2004 16:55:02

http://unattended.msfn.org/files/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/Extract_Updates.cmd08/07/2004 16:55:03

http://unattended.msfn.org/files/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/OfficeXP_Slipstreamer.cmd08/07/2004 16:55:03

MSFN's Unattended XP CD - Additions

Additions
You can make a number of additions to enhance your unattended installation of Windows XP: Add Users & Auto Logon Find out how to create your own user accounts, and force your own user account to logon first instead of the default Administrator account. Using Modified Files Learn how to replace files in the I386 directory with your own modified versions, such as the uxtheme.dll file allowing you to use unsigned visual styles. Setup won't error-out that the file is unsigned, and will carry on instead of aborting. Bypassing Windows File Protection Having trouble deleting specific files and folders in Windows? Find out how you can disable WFP completely (can be used in conjunction with Hacked Files to prevent the WFP dialog window from appearing). OEM Information & Logo Find out how to copy your OEM information and logo to the System Properties window automatically. Importing Dial-up Settings You don't want to spend too much time reconfiguring a new dial-up connection on a clean install. Find out how you can import your settings! Space Saving Tips Running out of space on the CD? Follow these great guides to slim down your CD contents without losing any functionality! Importing HKEY Current User Registry Tweaks (for all users) Find out how you can map all HKEY_CURRENT_USER registry tweaks to the Default User Profile so any user you create in future will inherit those tweaks.

Sponsored Links

http://unattended.msfn.org/xp/additions.htm08/07/2004 16:55:05

MSFN's Unattended XP CD - Finalising your Unattended XP CD

Finalising your Unattended XP 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 VMWare or Virtual PC to save on wasting CD-R discs. Both VMWare and Virtual PC is an application that emulates hardware and allows you to install an Operating System without it affecting any of your existing partitions. Both VMWare and Virtual PC support ISO Images (a single file image dump of a CD that has an .iso extension). 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 have put together the tool, with the boot.bin file (to make your ISO file bootable), and a batch file that contains the necessary switches to create the ISO. This is a one-click ISO creation tool! Download: CDImage for Windows XP Professional Download: CDImage for Windows XP Home Read the included readme.txt for instructions. Once the ISO is created, you can test your Windows Installation in VMWare or Virtual PC, and recreate the ISO again to fix any previous mistakes. Once perfected, you can burn the ISO straight to a CD-R disc. Both Easy CD Creator and Nero is able to support this. 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: The Elder Geek | Windows Help.net Notes 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. According to feedback from the MSFN Forums, it's been said that Virtual PC cannot support DVD ISO images over 2GB in size. The workaround is to mount the ISO by using third-party software such as Daemon Tools (freeware), or Alcohol 120% rather than in Virtual PC. After mounting the ISO in either Daemon Tools or Alcohol, use the "Capture Host Drive <driveletter>:" feature in Virtual PC.

Sponsored Links

http://unattended.msfn.org/xp/finish.htm08/07/2004 16:55:06

http://unattended.msfn.org/files/keyboard_layout_values.txt

Albanian Belarusian Belgian Dutch Belgian French Brazilian (ABNT) Bulgarian Bulgarian Latin Canadian English (Multilingual) Canadian French Canadian French (Multilingual) Croatian Czech Czech (QWERTY) Danish Dutch Estonian Finnish French German German (IBM) Greek Greek Latin Greek (220) Greek (220) Latin Greek (319) Greek (319) Latin Hungarian Hungarian 101-key Icelandic Irish Italian Italian (142) Latin American Latvian Latvian (QWERTY) Lithuanian Norwegian Polish (Programmers) Polish (214) Portuguese Romanian Russian Russian (Typewriter) Serbian Cyrillic Serbian Latin Slovak Slovak (QWERTY) Slovenian Spanish Spanish variation Swedish Swiss French Swiss German Turkish F Turkish Q Ukrainian United Kingdom US US-Dvorak US-Dvorak for left hand US-Dvorak for right hand US-International
http://unattended.msfn.org/files/keyboard_layout_values.txt08/07/2004 16:55:06

http://unattended.msfn.org/files/components_list.txt

[Components] AccessOpt = On Appsrv_console = On Aspnet = On AutoUpdate = On BitsServerExtensionsISAPI = On BitsServerExtensionsManager = On Calc = On Certsrv = On Certsrv_client = On Certsrv_server = On Charmap = On Chat = On Clipbook = On Complusnetwork = On Deskpaper = On Dialer = On Dtcnetwork = On Fax = On Fp_extensions = On Fp_vdir_deploy = On Freecell = On Hearts = On Hypertrm = On IEAccess = On Iis_asp = On Iis_common = On Iisdbg = On Iis_ftp = On Iis_htmla = On Iis_doc = On Iis_inetmgr = On Iis_internetdataconnector = On Iis_nntp = On Iis_pwmgr = On Iis_serversideincludes = On Iis_smtp = On Iis_smtp_docs = On Iis_webadmin = On Iis_webdav = On Iis_www = On Iis_www_vdir_printers = On Iis_www_vdir_scripts = On Iis_www_vdir_terminalservices = On Indexsrv_system = On Inetprint = On Licenseserver = On Media_clips = On Media_utopia = On Minesweeper = On Mousepoint = On Msmq_ADIntegrated = On Msmq_Core = On Msmq_HTTPSupport = On Msmq_LocalStorage = On Msmq_MQDSService = On Msmq_RoutingSupport = On Msmq_TriggersService = On Msnexplr = On Mswordpad = On Netcis = On Netoc = On Objectpkg = On OEAccess = On Paint = On Pinball = On Pop3Admin = On Pop3Service = On Pop3Srv = On Rec = On Reminst = On Rootautoupdate = On Rstorage = On Solitaire = On Spider = On Templates = On TerminalServer = On TSWebClient = On Vol = On WBEMSNMP = On WMAccess = On WMPOCM = On Zonegames = On
http://unattended.msfn.org/files/components_list.txt08/07/2004 16:55:07

MSFN's Unattended XP CD - Office 2003 Unattended - Introduction

Office 2003 Unattended - Introduction


Got a DVD Recorder? 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 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. 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. If you feel like going advanced you can include all the updates to Office 2003, 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 the post-RTM updates. Office 2003 Simple | Office 2003 Advanced

Sponsored Links

http://unattended.msfn.org/xp/office2003.htm08/07/2004 16:55:09

MSFN's Unattended XP CD -

Office 2003 Unattended - Simple method


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.

Sponsored Links

http://unattended.msfn.org/xp/office2003_simple.htm08/07/2004 16:55:11

MSFN's Unattended XP CD -

Office 2003 Unattended - Advanced method


In this guide, we'll show you how you can slipstream the updates to Office 2003, then show you how to customize your Office 2003 installation. 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 nonretail 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. However, you can still customize Office 2003's installation by going to Section 3. First, we'll need to create an Administrative Installation Point so we can be able to slipstream the updates into Office 2003. 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.

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:\XPCD\$OEM$\$1\install\Applications\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:

Section 2 - The Slipstreaming Process We now need to download the Office 2003 updates that were available at the time of writing, the list is shown in full: Office 2003 Critical Update (KB828041) Outlook 2003 Junk E-mail Filter Update (KB832333) Word 2003 Update (KB830000) 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-todate listing of patches is to install Office 2003, 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". Create a folder in the root of the C:\ drive and name it "O2003updates". Place all the downloaded files into the folder you created:

If you've got WinRAR installed, you can easily extract each file you downloaded. If not, run the following command to extract them in Command Prompt: 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:

You are now ready to slipstream the updates! If you want, you can use the Office 2003 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 it 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. 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 wish to manually slipstream the updates, below are the following commands you should run from Command Prompt: cd C:\O2003updates FOR %f IN (*.msp) DO msiexec /p %f /a C:\XPCD\$OEM$\$1\install\applications\Office2003\pro11.msi SHORTFILENAMES=TRUE /qb

After that's all done, you have a fully up-to-date Office 2003 distribution. At this stage you can choose to burn the contents of C:\XPCD\$OEM$\$1\install\Applications\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 - 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 2003 disc to: C:\XPCD\$OEM$\$1\install\Applications\Office2003\ now. (make sure you enable showing of Hidden files and folders via Folder Options so the CAB files are copied as well) 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 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\$OEM$\$1\install\Applications\Office2003\Unattended.MST /qbchanged to... TRANSFORMS=Unattended.MST /qb Section 4 - The Office 2003 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 work. Below are the full batch commands you can use, so add these lines to your batch file: ECHO. ECHO Installing Office 2003 Professional with Frontpage ECHO Please wait... start /wait %systemdrive%\install\Applications\Office2003\setup.exe TRANSFORMS=Unattended.MST /qbThat's it!

Sponsored Links

http://unattended.msfn.org/xp/office2003_advanced.htm08/07/2004 16:55:15

http://unattended.msfn.org/files/Office2003/Extract_Updates.cmd

TITLE Office 2003 Updates Extractor brought to you by www.MSFN.org CLS @echo off ECHO. ECHO Extracting files.... ECHO. FOR %%f IN (*.exe) DO %%f /Q /C /T:C:\O2003updates ECHO Extraction Completed ECHO. pause EXIT

http://unattended.msfn.org/files/Office2003/Extract_Updates.cmd08/07/2004 16:55:15

http://unattended.msfn.org/files/Office2003/Office2003_Slipstreamer.cmd

TITLE Office 2003 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:\XPCD\$OEM$\$1\install\applications\Office2003 \pro11.msi SHORTFILENAMES=TRUE /qb ECHO. ECHO Slipstreaming Completed! ECHO. pause EXIT

http://unattended.msfn.org/files/Office2003/Office2003_Slipstreamer.cmd08/07/2004 16:55:15

http://unattended.msfn.org/app_images/office2003/custom.gif

http://unattended.msfn.org/app_images/office2003/custom.gif08/07/2004 16:55:16

http://unattended.msfn.org/app_images/office2003/custom2.gif

http://unattended.msfn.org/app_images/office2003/custom2.gif08/07/2004 16:55:16

http://unattended.msfn.org/app_images/office2003/custom3.gif

http://unattended.msfn.org/app_images/office2003/custom3.gif08/07/2004 16:55:16

MSFN's Unattended XP CD - Running RunOnceEx from CD

Running 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: IF IF IF IF IF IF IF EXIST EXIST EXIST EXIST EXIST EXIST EXIST D:\CD.txt set CDROM=D: E:\CD.txt set CDROM=E: F:\CD.txt set CDROM=F: G:\CD.txt set CDROM=G: H:\CD.txt set CDROM=H: I:\CD.txt set CDROM=I: J:\CD.txt set CDROM=J:

Create a blank txt file called CD.txt and place this in C:\XPCD. 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 C:\XPCD\$OEM$\$1\install\, and put it in C:\XPCD\Software\ or a folder name of your choice. Going back to the RunOnceEx.cmd file, we'll need to make further changes:
q q

Change all instances of %systemdrive% to %CDROM% Fix all the paths to the software installation file, i.e. "%CDROM%\Software\MSN_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 IF EXIST D:\CD.txt set CDROM=D: IF EXIST E:\CD.txt set CDROM=E: IF EXIST F:\CD.txt set CDROM=F: IF EXIST G:\CD.txt set CDROM=G: IF EXIST H:\CD.txt set CDROM=H: IF EXIST I:\CD.txt set CDROM=I: IF EXIST J:\CD.txt set CDROM=J: 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

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 IF EXIST statements 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 IF EXIST statements in that cmd file as well. Should you need a permanent environment variable, consider using an utility such as DetectCD.exe or setenv.exe.

Sponsored Links

http://unattended.msfn.org/xp/runonceex_cd.htm08/07/2004 16:55:18

MSFN's Unattended XP CD - Transforming from Command Line Batches to RunOnceEx

Transforming from Command Line Batches to RunOnceEx


Do you want to change from dull command line batches to a more sleek, professional looking RunOnceEx window? We'll show you how you can easily transform over to this method! If you would prefer to use an INF file to control RunOnceEx, you can follow gosh's guide to learn how here. 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 any reason but they will execute at the same time, so use caution. To start RunOnceEx on logon, we will need to import the registry keys during 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 in C:\XPCD\$OEM$\ 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%\001 /VE /D "Preparing Installation..." /f REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /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 this %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f Save ADD as RunOnceEx.cmd in C:\XPCD\$OEM$\ REG ADD %KEY%\015 the 5 number gaps You may have noticed/VE /D "Diskeeper 8" /f between each registry key. This allows you to easily maintain your list by adding REG ADD %KEY%\015 /V 1 /D two existing keys, (for example, we have 001 /v/qn" /f another application between "%systemdrive%\install\DiskeeperPro_8.0.459.exe /s and 005, we can add additional keys of 002, 003 or 004). Customize it as you wish. Each task is run in numerical order. REG ADD %KEY%\020 /VE /D "DU Meter 3" /f REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\dumeter3.exe /VERYSILENT /SP-" /f Understanding the RunOnceEx.cmd file REG ADD %KEY%\025 /VE /D "IsoBuster 1.5" /f REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\IsoBuster1.5.exe /VERYSILENT /SP-" /f SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY%\025 /V 2 /D "taskkill /F /IM isobuster.exe" /f 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%\030 /VE /D "Kerio Personal Firewall 2.1.5" /f REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\KPF\Setup.exe -s" /f 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%\035 /VE /D "MDAC 2.7 SP1 Hotfix" /f REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\mdac\mdac.cmd" /f REG ADD %KEY%\010 /VE /D "Alcohol 120" /f REG ADD %KEY%\040 a task you Messenger 6.1" /f This sets the name of /VE /D "MSNwant to process, and appears on the RunOnceEx window. REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\MSN_Messenger_6.1.0202.msi /qn" /f REG ADD %KEY%\045 /VE /D "Nero Burning ROM 5.5" /f REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /f REG ADD %KEY%\045 /V 1 /D "REGEDIT /S %systemdrive%\install\nero\register.reg" /f REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f You can assign several tasks "%systemdrive%\install\Nero\Nero551054.exe /silent /noreboot" /f see in the RunOnceEx REG ADD %KEY%\045 /V 2 /D to "Alcohol 120" by using /V 1, 2, 3 and so on. As you can screenshot, the little arrow won't move to the next application until all those tasks have completed. REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f 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. REG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /f REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f cmdow.exe EXIT 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 C:\XPCD\$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. Prepare.cmd and Cleanup.cmd 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 these two files are executed, please see the RunOnceEx.cmd example file near the top of this page. Prepare.cmd can contain anything you want executed:

cmdow @ /HID 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" EXIT Cleanup.cmd can contain the cleanup 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 RD /S /Q %systemdrive%\drivers\ RD /S /Q %systemdrive%\install\ EXIT

Or you can merge both of them into one cmd file, it makes no difference. Summary To summarise, RunOnceEx.cmd will be executed during the GUI-mode of Windows XP Setup at the T-12 Minute stage. After reboot and first logon, RunOnceEx will start as shown here. 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! 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. Thanks to Oli of WillowHayes, devil270975, and DaveXP for the inspiration of using this alternative method, and thanks to gism0 for the REG syntax workaround to allow the %systemdrive% environment variable!

Sponsored Links

http://unattended.msfn.org/xp/runonceex.htm08/07/2004 16:55:20

http://unattended.msfn.org/images/command_line.gif

http://unattended.msfn.org/images/command_line.gif08/07/2004 16:55:20

http://unattended.msfn.org/images/runonceex.gif

http://unattended.msfn.org/images/runonceex.gif08/07/2004 16:55:21

MSFN's Unattended XP CD - Downloads

Downloads
Download: CDR - a command line CD Drive Ejector utility CDR.exe is a command line utility which you can execute to eject one or more CD/DVD drives. This can be used as a replacement for the cd_eject.vbs script file, which wasn't all that great in terms of functionality. Use CDR.exe /? for a full list of switches and examples. Why would you want to use this tool? This can be handy to eject your Windows XP CD before performing replace/delete commands in the Windows or System32 directories, in which case Windows File Protection can intefere at times when the CD is in the drive. Usage: CDR.exe open ALL Thanks to devil270975 for developing this tool for MSFN.org ----------Download: CMDOW - a command line Window Utility Recent feedback from the MSFN Forums have shown that users may want to hide the command window from the end-user. There are also a number of other features included, so check out the site above for a full list. Extract cmdow.zip, and then copy cmdow.exe into: C:\XPCD\$OEM$\$$\System32\ (This allows cmdow to be executed from anywhere when placed in the Windows System32 Directory) Usage: cmdow @ /HID ----------Download: Sleep You may come across a program that ignores the "start /wait" syntax, due to the program itself launching another process. Sleep.exe can be used to pause your batch for any number of seconds to allow the program to install fully before the batch file proceeds to install anything else. Extract sleep.zip, and then copy sleep.exe into: C:\XPCD\$OEM$\$$\System32\ (This allows sleep to be executed from anywhere when placed in the \Windows\System32 Directory) Usage: start /wait sleep.exe 30 (the above syntax will halt your batch file for 30 seconds) ----------Download: Video Resolution Changer For some users, the values under [Display] in winnt.sif to set the resolution, color depth and refresh rate doesn't always work as it should. This executable can be run from [GuiRunOnce] to set the Display settings. Extract 1365Vidchng.zip, and then copy 1365VidChng.exe into: C:\XPCD\$OEM$\$$\System32\ (This allows 1365VidChng to be executed from anywhere when placed in the Windows System32 Directory) Usage: 1365VidChng.exe 1024x768x32@85 -q The above will set a resolution of 1024x768, with a color depth of 32-bits, and a refresh rate of 85Hz. The -q switch will force VidChng to run quietly. Simply edit accordingly and then place this command at the very start of your [GuiRunOnce] batch file to set the Display Setting.

Sponsored Links

http://unattended.msfn.org/xp/downloads.htm08/07/2004 16:55:22

MSFN's Unattended XP CD - Windows XP Setup Timeline

Windows XP Setup Timeline


This timeline shows Windows XP's Setup activity during an unattended installation, to clear up the confusion of when tasks are run. Configure BIOS to set CD-ROM as First Boot Device. Boot from CD... Text-mode Setup 1. 2. 3. 4. Loads Drivers Copies files required for Setup to the Hard Disk Copies the contents of your $OEM$ folders to the Hard Disk Reboots the PC...

GUI-mode Setup 1. DetachedProgram executes from winnt.sif at T-39 minute stage 2. Installs Devices 3. Installs Network 4. Installs Start Menu Items 5. Registers Components 6. svcpack.inf executes at T-13 minute stage 7. cmdlines.txt executes at T-12 minute stage 8. [SetupParams] executes from winnt.sif at T-9 minute stage 9. Saves Settings 10. Deletes temporary files then reboots... First Logon 1. Windows XP logs you in and loads personal settings 2. Both [GuiRunOnce] from winnt.sif and RunOnceEx executes at the same time 3. Desktop and Taskbar loads. I hope this helps! Please consult the ref.chm file if you ever need to take advantage of DetachedProgram or [SetupParams].

Sponsored Links

http://unattended.msfn.org/xp/timeline.htm08/07/2004 16:55:24

MSFN's Unattended XP CD - Site Updates Archive

Site Updates Archive


5th March 2004: Revised RunOnceEx guide, added Running RunOnceEx from CD, and Windows XP Setup Timeline. 2nd March 2004: Fixed table length for users browsing in a resolution of 800x600 (if the site appears broken, clean out the browser's cache) 1st March 2004: Redesigned site and made several revisions to some pages. 3rd December 2003: Added a guide to help transform over from Command Line batches to the more professional RunOnceEx. 24th November 2003: Its been a while, but I got around to revamping parts of the site and added additional sections. You can see a full list of changes here. 4th November 2003: Added Repacked TweakUI to support a silent install using /qb or /qn (Thanks Ytterbium!) See PowerToys page. 16th October 2003: Updated the Installing Hotfixes Guide to coincide with the release of the Update Rollup 1 pack. 13th October 2003: Fixed the wrong syntax used in TRANSFORMS in the Office XP Unattended Guide. TRANSFORMS=C: \XPCD\$OEM$\$1\install\ should be replaced with TRANSFORMS=%systemdrive%\install\ 5th October 2003: New Hotfix Installation guide added, and updates added to the Office XP Unattended Guide. 20th September 2003: The Hotfix section has been removed temporarily due to inconsistencies found in the hotfix installation as reported by a couple of users. We are working on a new script that will slipstream the hotfixes into the Windows XP SP1 CD, as well as an alternative for those who want to have the hotfix installation run from a batch. Global site updates are also expected in the next few days. 9th August 2003: Added: Space saving tips for DirectX 9, and more Q&As in the FAQ. 1st August 2003: Added: Office XP Unattended, Simple & Advanced methods. 29th July 2003: Added: Inno Setup and NSIS guides, ISOBuster, CDex, and Norton Antivirus 2003 27th July 2003: Added: Ad-Aware 6, Adobe Reader 6, AIM 5.2, DivX 5, Kazza Lite K++, O&O Defrag Pro, Sun Java VM, WinRAR, ZoneAlarm 26th July 2003: MS Java installation page recreated to benefit users with XP SP1 and XP SP1a. More Applications are on the way later on today. 25th July 2003: The MSN Messenger 6 silent install switch didn't work, and has been fixed with new instructions. Sorry about that! 24th July 2003: DirectX 9.0b Silent Install, including patched dxsetup.exe for silent install 23rd July 2003: Site Launch

Sponsored Links

http://unattended.msfn.org/xp/archive.htm08/07/2004 16:55:29

MSFN's Unattended XP CD - Site Updates

Site Update log (24/11/2003)


Created Additions section with the following guides: Auto Logon, Hacked Files, Bypassing Windows File Protection, OEM Logo & Info, Restore Dial-Up Settings, Space saving tips, and importing HKCU registry settings. Created $OEM$ Distribution folders explaination page Rewritten Drivers page to introduce a folder numbering process. Rewritten most pages on this site to explain certain instructions more clearly. All Application pages' download links replaced with homepage links. Finalising your CD rewritten for CDImage (WinISO instructions and ISOs removed) Added more values for the winnt.sif Reference page DirectX 9.0b no longer needs a hex-edited dxsetup.exe file. Added OPK file instead. Windows Media Player & Movie Maker 2 bundle OPK added Created Member Sites page Added new tools to Downloads. Old ones removed as similar utilites are already built in Windows Example batch files cleaned up so it doesn't look too complicated.

Sponsored Links

http://unattended.msfn.org/xp/site_update.htm08/07/2004 16:55:33

MSFN's Unattended XP CD - Silent Install of DirectX 9.0b

Silent Install of DirectX 9.0b


Download: DirectX 9.0b OPK Extract from the .rar file and then copy DX9NTopk.exe to C:\XPCD\$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 Pre-SP2 hotfixes, you can also install DirectX 9.0b from there: Copy DX9NTopk.exe to the C:\XPCD\I386\Update\ folder and then add this line under [SetupHotfixesToRun] in svcpack.inf: [SetupHotfixesToRun] DX9NTopk.exe

Sponsored Links

http://unattended.msfn.org/xp/applications/directx.htm08/07/2004 16:55:35

MSFN's Unattended XP CD - Windows Media Player 9 & Movie Maker 2 Bundle OPK

Windows Media Player 9 & Movie Maker 2 Bundle OPK


Download: Windows Media Player 9 & Movie Maker 2 Bundle OPK The Windows Media Player 9 & Movie Maker 2 OPK does not require any switches to silently install. Add the following commands to your existing batch file: ECHO. ECHO Installing WMP9 and Movie Maker 2 ECHO Please wait... start /wait %systemdrive%\install\WMP9_MM2\WMP9_MM2_ENU.exe Install WMP9 & MM2 using svcpack.inf If you've made a svcpack.inf file for installing Pre-SP2 hotfixes, you can also install WMP9 and MM2 from there: Copy WMP9_MM2_ENU.exe to the C:\XPCD\I386\Update\ folder and then add this line under [SetupHotfixesToRun] in svcpack.inf: [SetupHotfixesToRun] WMP9_MM2_ENU.exe

Sponsored Links

http://unattended.msfn.org/xp/applications/wmp9mm2.htm08/07/2004 16:55:38

MSFN's Unattended XP CD - Member Pages and Tutorials created by MSFN's members

Member Pages and Tutorials created by MSFN's members


This site - Creating an Unattended Windows XP CD was built in mind that it covers the foundations and basics of an Unattended XP CD. This is why you won't find any of the more complex advanced features of an Unattended CD on here. This is why we have member pages! Dedicated members of MSFN have created various methods of doing different things so you can improve your CD further, so be sure to check them out for enhancements! gosh.msfnhosting.com - by gosh Home of the popular "Reducing Size Of Source" guide to slim down your Windows XP CD! gosh is MSFN's resident filehacker and his guides cover an assortment of references on INF files and how you can modify the way Windows XP Setup runs. A hotfix slipstream by gosh is also in the works. greenmachine.msfnhosting.com - by GreenMachine GreenMachine has written up several articles on how you can package files with IExpress, a hotfix installation methods compared benchmark, and his own XP CD Creator guide to maintain an updated CD of slipstreamed hotfix updates. Mantra Software Australia - by RaveRod RaveRod has written up a Hotfix Slipstream Guide for your Windows XP installation CD which allows you to slipstream Windows hotfixes into your Windows XP installation CD. One of his other guides tells you how to Disable System File Protection before Windows Setup starts. This allows you to delete files and folders during setup or straight after setup has completed. Multiboot DVD Guide - by flyakite It's nice to have an unattended CD that will install all of your favorite programs, registry tweaks, and hotfixes all while you sit on the couch eating pizza and watching Futurama right? But, what if you decide you want to install Windows 98 and Windows XP on your computer, and you don't want to have to carry around multiple CDs? That's where this guide comes in handy. UpdateXP - by techtype This tool is designed to automatically install your hotfixes without having to create batch scripts for them. All you have to do is dump specific hotfixes files in seperate folders that UpdateXP will automatically read, and then runs the correct switches on them! Windows XP SP1 in 185MB - by jdeboeck The purpose of this guide is to remove Windows components and drivers from the installation CD, in order to save space and increase performance, both during setup and in the installed operating system. This is done by a series of batchfiles that do everything to remove files and prevent setup from displaying any errors. Winnt.sif Creator - by b0r3d An alternative tool to the Setup Manager from the Deployment Tools for creating your winnt.sif file! A nice and easy to use program that also has the added bonus of including registry tweaks too! XPlode - by Wraith A visually-stunning cmdlines.txt and RunOnceEx replacement for an unattended Windows XP installation that runs at the T9 minute stage of Windows XP Setup. Collection of Forum Threads - MSFN Forums Members in the forums have written up threads discussing topics on how to use Registry HIVE files, how to change your Windows XP Setup screen, using VBS scripts to automate certain things, using RunOnceEx instead of batch files, and much more all on one listing.

Sponsored Links

http://unattended.msfn.org/xp/members.htm08/07/2004 16:55:40

MSFN's Unattended XP CD - 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: C:\XPCD\$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.

Sponsored Links

http://unattended.msfn.org/xp/applications/powertoys.htm08/07/2004 16:55:42

MSFN's Unattended XP CD - Frequently Asked Questions

Frequently Asked Questions


Q: I'm worried that the installation of my Pre-SP2 hotfixes may have clashed with older/newer files when I ran the hotfix batch, how can I verify that the hotfixes have been installed correctly? A: Use a Microsoft command-line utility tool, known as QFECheck to verify that each hotfix is installed correctly. You can download QFECheck and read about it at the Microsoft Knowledge Base Q282784. ----Q: I don't have enough space to burn Windows XP with all the extras, what should I do? A: See this page ----Q: How do I open and edit winnt.sif and *.cmd files? A: Open Notepad. Either drag the file to the Notepad window, or use File > Open, change Files of Type to All Files, then browse to the file you want to edit. You may want to associate .sif and .cmd files with Notepad to save time. ----Q: Are files and folder names case-sensitive? A: No. :-) (Some switches are case-sensitive though) ----Q: None of the files and folders I put in \$OEM$\$1\ copied over during install, have I missed something out? A: You will need to change "OemPreinstall=No" to "OemPreinstall=Yes" (without quotes) in the winnt.sif file.

Sponsored Links

http://unattended.msfn.org/xp/faq.htm08/07/2004 16:55:45

MSFN's Unattended XP CD - Space Saving Tips

Space Saving Tips


Fancy freeing up about 159 MB of space by deleting un-needed folders? First of all, copy the contents of your Windows XP CD to C:\XPCD\ if you haven't done so already. Folders considered safe to delete in C:\XPCD\ are: DOCS, VALUEADD, and SUPPORT. This will free up 22.3 MB Let's go in further by browsing to the C:\XPCD\i386\ directory. If you don't plan to use this CD to upgrade from a previous OS, you can delete the following folders: WIN9XMIG, WIN9XUPG and WINNTUPG. This will free up 37.6 MB If you have a localised language version of Windows XP in your own language, then you probably can also delete: LANG. This will free up approx. 99 MB (This may vary) If you are installing applications from the $OEM$ distribution folders, then you can run a search on your $OEM$ folders for any instmsia.exe and instmsiw.exe files. Delete any you find as you won't need them for Windows XP, because it already has an up-to-date version of Windows Installer 2.0. Additional Links jdeboeck's Guide to Windows XP slimmed down to 185MB gosh's Guide to Reducing Size of Source

Sponsored Links

http://unattended.msfn.org/xp/space_saving_tips.htm08/07/2004 16:55:47

MSFN's Unattended XP CD - Getting Help

Getting Help
Having trouble doing something or need help & advice on something in particular that's not answered in this guide? Then you can ask in the MSFN Forums, in the Unattended Windows section. It will only take you 30 secs to sign up! Links: MSFN Forums | Sign up Many new members have contributed their own code and examples in the forums, so its worth checking out if you're looking for something that isn't covered in this guide!

Sponsored Links

http://unattended.msfn.org/xp/gettinghelp.htm08/07/2004 16:55:49

MSFN's Unattended XP CD - Using Modified Files

Using Modified Files


There are certain files 'customizers' like to replace on Windows XP - modified versions such as UXTheme.dll, Shell32.dll and msgina.dll to improve the appearance of Windows XP. Since UXTheme.dll is the most popular file hack to allow unsigned Visual Styles to be used on Windows XP, we'll show you how you can replace UXTheme.dll in the I386 directory with a modified version without Windows XP Setup complaining about it ;-) Note: The method outlined here can also be used for other modified files. UXTheme.dll If you haven't got a copy of Vorte[x]'s UXTheme.dll file for Windows XP SP1, you can download it here. Download: ModifyPE 0.81 Place both ModifyPE.exe and uxtheme.dll in the same directory. Open up Command Prompt and browse to the directory containing the two files. Run: modifyPE.exe uxtheme.dll -c then... makecab uxtheme.dll

Having done that, you should have a compressed uxtheme.dl_ file (which was the purpose of using makecab). All you have to do now is copy uxtheme.dl_ to your i386 directory and overwrite when prompted. Because we used modifyPE on the uxtheme.dll file, this edits the CRC header so Windows XP Setup will no longer attempt to abort the file copy. Instead it will allow the file through without prompting anything. However, it will be logged in setuperr.log when Windows has finished installing, which will mention that the file isn't digitally signed. There's nothing to worry about as the original Microsoft uxtheme.dll file doesn't exist in either dllcache or on the CD, so there's no way it can be replaced back to its original version :-) For those of you who are too lazy to do any of the above(!), you can grab the modified uxtheme.dl_ here. (For XP SP1 only) Windows File Protection Issues For the unfortunate few who get an annoying dialog window asking for the Windows XP CD, so that it can restore a modified file back to its original version, you may want to read this page to disable it. More Information You can visit MSFN Member gosh's page, for more information regarding the replacement of modified files.

Sponsored Links

http://unattended.msfn.org/xp/hacked_files.htm08/07/2004 16:55:52

MSFN's Unattended XP CD - Bypassing Windows File Protection

Bypassing Windows File Protection


Windows File Protection can be very unpredictable sometimes during an unattended run, prompting you with a dialog window which would appear after logging on if you've replaced files. There are the unfortunate few who suffer from this, but we'll show you how you can get around this!

Using a modified sfc_os.dll file I would strongly advise against using this method as your system files will be vulnerable to viruses that will attempt to overwrite them, which could result in a un-bootable system. A modified sfc_os.dll file will allow you to use a custom value in the registry: SFCSetting=ffffff9d which disables it completely. Below, you can download the hex-edited sfc_os.dll file, and it also has its CRC header modified with ModifyPE as well to allow Setup to copy the file: Download: SFC_OS.DL_ for Windows XP SP1 Download: SFC_OS.DL_ for Windows XP Non-SP1 Extract the zip and copy sfc_os.dl_ to the i386 directory at C:\XPCD\i386\ and overwrite when prompted. Editing the Registry Hive File Follow these instructions in order to place the SFCSetting=ffffff9d key into the registry: In Notepad, open C:\XPCD\I386\HIVESFT.INF, run a search for SFCQuota and copy & paste the following beneath SFCQuota: HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","SFCSetting",0x00010001,0xffffff9d

Screenshot: How it should look This saves having to import the registry setting during [GuiRunOnce], which by then it's probably already too late. By using the above method - WFP is disabled at the beginning of GUI-mode Setup. :-) Thanks to RaveRod from the MSFN forums for submitting this tip!

Sponsored Links

http://unattended.msfn.org/xp/wfp.htm08/07/2004 16:55:54

http://unattended.msfn.org/images/hivesft_sfcsetting.gif

http://unattended.msfn.org/images/hivesft_sfcsetting.gif08/07/2004 16:55:55

MSFN's Unattended XP CD - OEM Information & Logo

OEM Information & Logo


You can import your customized OEM Information and Logo unattended, we'll show you how in this guide. To do this, you need to create 2 files - oeminfo.ini and oemlogo.bmp oeminfo.ini Open Notepad and Copy and Paste the following example, then edit it accordingly:

[General] Manufacturer=MSFN Unattended XP CD Model= [OEMSpecific] SubModel= SerialNo= OEM1= OEM2= [Support Information] Line1=Support Contact: [email protected] Save it as oeminfo.ini oemlogo.bmp Create a new image with a pixel size of 180x114 (width x height), customize your logo to how you would want it to look, then save it as oemlogo.bmp. Its a good idea to keep it transparent so it blends into the colour of the System Properties window! Testing your OEM Information & Logo Copy both files into your Windows System32 Folder (usually C:\Windows\System32\) and open up your System Properties box to see the changes. Edit your files again until you are happy with it. Importing your OEM Information & Logo Automatically We can use the $OEM$ Distribution folders to do this. Create a sub-folder called $$ if one doesn't exist already, then create another sub-folder within $$ called System32. For example: C:\XPCD\$OEM$\$$\System32\ Copy both oeminfo.ini and oemlogo.bmp to the System32 folder explained above. When Windows XP Setup is run, both of these files will be automatically copied to Windows' System32 directory, no matter what the Windows folder is called.

Conclusion If you done everything correctly, your System Properties box should look something like this:

Sponsored Links

http://unattended.msfn.org/xp/oeminfo.htm08/07/2004 16:55:56

MSFN's Unattended XP CD - Importing Dial-Up Settings

Importing Dial-Up Settings


This one is pretty easy to accomplish, you can simply restore your Dial-Up Phonebook file by making use of the $OEM$ distribution folders which you already have learnt from this site. This guide only applies for 56K and ADSL users: Simply create the following directory stucture shown below: C:\XPCD\$OEM$\$Docs\All Users\Application Data\Microsoft\Network\Connections\Pbk Then browse to: %systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk You may want to copy & paste the above path into the Start > Run box because Application Data is a hidden directory. Once you're there, copy out your rasphone.pbk file and paste it into: C:\XPCD\$OEM$\$Docs\All Users\Application Data\Microsoft\Network\Connections\Pbk During Windows XP Setup, rasphone.pbk will be copied over automatically. Once Setup has finished and proceeded to logon, you will find that your Dial-Up settings are in Network Connections :-) Note: Rasphone.pbk does not store the username and password for dialling up (most likely for security reasons), so you'll need to specify it manually once you've logged on. Thanks to Igor from the MSFN forums for submitting this tip!

Sponsored Links

http://unattended.msfn.org/xp/restore_dialup.htm08/07/2004 16:55:58

MSFN's Unattended XP CD - Ad-Aware 6 Free Version

Ad-Aware 6 Free Version


Copy the Ad-Aware setup executable to C:\XPCD\$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.

Sponsored Links

http://unattended.msfn.org/xp/applications/adaware6.htm08/07/2004 16:56:00

MSFN's Unattended XP CD - Adobe Reader 6

Adobe Reader 6
Download: Adobe Reader 6 Basic or Adobe Reader 6 Full Copy the downloaded file to C:\XPCD\$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\""

Sponsored Links

http://unattended.msfn.org/xp/applications/adobereader6.htm08/07/2004 16:56:02

MSFN's Unattended XP CD - AIM (AOL Instant Messenger)

AIM (AOL Instant Messenger)


Download: AIM Copy Install_AIM.exe to C:\XPCD\$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

Sponsored Links

http://unattended.msfn.org/xp/applications/aim.htm08/07/2004 16:56:04

MSFN's Unattended XP CD - CDex

CDex
Download: CDex (Get the Installer, not the ZIP) Copy the downloaded file to: C:\XPCD\$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.

Sponsored Links

http://unattended.msfn.org/xp/applications/cdex.htm08/07/2004 16:56:06

MSFN's Unattended XP CD - 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-ofinstall" 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:

click to enlarge

Sponsored Links

http://unattended.msfn.org/xp/applications/nsis.htm08/07/2004 16:56:07

http://unattended.msfn.org/app_images/nsis.gif

http://unattended.msfn.org/app_images/nsis.gif08/07/2004 16:56:07

MSFN's Unattended XP CD - Diskeeper

Diskeeper
Extract and copy the contents of your Diskeeper setup files to: C:\XPCD\$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

click to enlarge

Sponsored Links

http://unattended.msfn.org/xp/applications/diskeeper.htm08/07/2004 16:56:09

http://unattended.msfn.org/app_images/diskeeper_command.gif

http://unattended.msfn.org/app_images/diskeeper_command.gif08/07/2004 16:56:09

MSFN's Unattended XP CD - Easy CD-DA Extractor 6

Easy CD-DA Extractor 6


Download: Easy CD-DA Extractor 6 Copy the downloaded file to: C:\XPCD\$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: Windows Registry Editor Version 5.00 [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

Sponsored Links

http://unattended.msfn.org/xp/applications/easycdda.htm08/07/2004 16:56:11

MSFN's Unattended XP CD - eMule

eMule
Download: eMule (ZIP Binary only) Create the following directory layouts first: C:\XPCD\$OEM$\$Progs\eMule\ C:\XPCD\$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.

Sponsored Links

http://unattended.msfn.org/xp/applications/emule.htm08/07/2004 16:56:12

MSFN's Unattended XP CD - Flashget

Flashget
Download: Flashget Copy the downloaded file to C:\XPCD\$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: Windows Registry Editor Version 5.00 [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

Sponsored Links

http://unattended.msfn.org/xp/applications/flashget.htm08/07/2004 16:56:14

MSFN's Unattended XP CD - 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 /SPSome 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 /SPECHO. 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)

click to enlarge

Sponsored Links

http://unattended.msfn.org/xp/applications/innosetup.htm08/07/2004 16:56:16

http://unattended.msfn.org/app_images/inno2.gif

http://unattended.msfn.org/app_images/inno2.gif08/07/2004 16:56:16

MSFN's Unattended XP CD - ISOBuster

ISOBuster
Download: ISOBuster Copy the downloaded file to C:\XPCD\$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 /SPECHO. 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.

Sponsored Links

http://unattended.msfn.org/xp/applications/isobuster.htm08/07/2004 16:56:18

MSFN's Unattended XP CD - Kazza Lite K++

Kazza Lite K++


Copy the KazaaLite K++ executable to: C:\XPCD\$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.

Sponsored Links

http://unattended.msfn.org/xp/applications/kazaalite.htm08/07/2004 16:56:19

MSFN's Unattended XP CD - 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: C:\XPCD\$OEM$\$1\install\Applications\kpf\

You need to first create a setup.iss file. See the Installshield 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

Sponsored Links

http://unattended.msfn.org/xp/applications/keriopersonalfirewall.htm08/07/2004 16:56:21

MSFN's Unattended XP CD - Windows Media Player 9

Windows Media Player 9


Download: Windows Media Player 9 for Windows XP Copy MPSetupXP.exe to C:\XPCD\$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

click to enlarge

If you plan to install both Windows Media Player 9 and Movie Maker 2, you may want to use the WMP9 & MM2 bundle instead.

Sponsored Links

http://unattended.msfn.org/xp/applications/mediaplayer9.htm08/07/2004 16:56:22

http://unattended.msfn.org/app_images/wmp9_command.gif

http://unattended.msfn.org/app_images/wmp9_command.gif08/07/2004 16:56:22

MSFN's Unattended XP CD - mIRC

mIRC
Download: mIRC Create the following directory layouts first: C:\XPCD\$OEM$\$Progs\mIRC\ C:\XPCD\$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"

Sponsored Links

http://unattended.msfn.org/xp/applications/mirc.htm08/07/2004 16:56:24

MSFN's Unattended XP CD - 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: C:\XPCD\$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

click to enlarge

If you plan to install both Windows Media Player 9 and Movie Maker 2, you may want to use the WMP9 & MM2 bundle instead.

Sponsored Links

http://unattended.msfn.org/xp/applications/moviemaker2.htm08/07/2004 16:56:26

http://unattended.msfn.org/app_images/moviemaker_command.gif

http://unattended.msfn.org/app_images/moviemaker_command.gif08/07/2004 16:56:26

MSFN's Unattended XP CD - Media Player Classic

Media Player Classic


Download: Media Player Classic Create the following directory layouts first: C:\XPCD\$OEM$\$Progs\Media Player Classic\ C:\XPCD\$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.

Sponsored Links

http://unattended.msfn.org/xp/applications/mpc.htm08/07/2004 16:56:28

MSFN's Unattended XP CD - MS Java Virtual Machine

MS Java Virtual Machine


Download: Microsoft Java VM Build 3809 Full and Microsoft Java VM Build 3810 Update (SP1 users only need the 3810 Update) Rename both downloaded files to MSJavx86_3809full and MSJavx86_3810update, then copy both files to: C:\2003CD\ $OEM$\$1\install\JavaVM\

Add these lines to your batch file: ECHO. ECHO Installing Microsoft JavaVM - Build 3809 ECHO Please wait... start /wait %systemdrive%\install\JavaVM\MSJavx86_3809full.exe /Q:A /R:N ECHO. ECHO Updating Microsoft JavaVM to 3810 ECHO Please wait... start /wait %systemdrive%\install\JavaVM\MSJavx86_3810update.exe /Q:A /R:N

click to enlarge

Additional Information For those of you who have slipstreamed the original Service Pack 1 (not SP1a) then you only need to use the MS Java VM Build 3810 Update, because an existing version of Java VM is already included in Windows XP. ECHO. ECHO Updating Microsoft JavaVM to 3810 ECHO Please wait... start /wait %systemdrive%\install\JavaVM\MSJavx86_3810update.exe /Q:A /R:N You may also be interested in combining both 3809 and 3810 together as one package for Windows XP SP1a - Go here to find out how.

Sponsored Links

http://unattended.msfn.org/xp/applications/msjava.htm08/07/2004 16:56:29

http://unattended.msfn.org/app_images/msjava_command.gif

http://unattended.msfn.org/app_images/msjava_command.gif08/07/2004 16:56:29

MSFN's Unattended XP CD - MSN Messenger

MSN Messenger
Download: MSN Messenger for Windows XP Using an extractor such as WinRAR, extract SETUPDL.EXE to this folder: C:\XPCD\$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

click to enlarge

Sponsored Links

http://unattended.msfn.org/xp/applications/msnmessenger.htm08/07/2004 16:56:36

http://unattended.msfn.org/app_images/msnmessenger_command.gif

http://unattended.msfn.org/app_images/msnmessenger_command.gif08/07/2004 16:56:37

MSFN's Unattended XP CD - Norton Antivirus 2003

Norton Antivirus 2003


Copy the contents of your Norton Antivirus 2003 CD to: C:\XPCD\$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

Sponsored Links

http://unattended.msfn.org/xp/applications/nav2003.htm08/07/2004 16:56:44

MSFN's Unattended XP CD - Nero Burning ROM

Nero Burning ROM


Download: Nero Burning ROM Copy the downloaded file to: C:\XPCD\$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.

Sponsored Links

http://unattended.msfn.org/xp/applications/nero.htm08/07/2004 16:56:45

MSFN's Unattended XP CD - .NET Framework 1.1

.NET Framework 1.1


Download: .NET Framework 1.1 Redistributable Using an extractor such as WinRAR, extract dotnetfx.exe to this folder: C:\XPCD\$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

click to enlarge

Install .NET Framework 1.1 using svcpack.inf If you've made a svcpack.inf file for installing Pre-SP2 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

Sponsored Links

http://unattended.msfn.org/xp/applications/netframework.htm08/07/2004 16:56:48

http://unattended.msfn.org/app_images/netframework_command.gif

http://unattended.msfn.org/app_images/netframework_command.gif08/07/2004 16:56:48

MSFN's Unattended XP CD - O&O Defrag Professional

O&O Defrag Professional


Download: O&O Defrag Professional Extract the downloaded file to: C:\XPCD\$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)

Sponsored Links

http://unattended.msfn.org/xp/applications/oodefragpro.htm08/07/2004 16:56:49

MSFN's Unattended XP CD - Symantec Antivirus Corporate

Symantec Antivirus Corporate


Copy the client install file to: C:\XPCD\$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.

Sponsored Links

http://unattended.msfn.org/xp/applications/sav.htm08/07/2004 16:56:51

MSFN's Unattended XP CD - Sun Java VM

Sun Java VM
Download: Sun Java VM (Choose "Windows Offline Installation") Copy the downloaded file to this folder: C:\XPCD\$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.

Sponsored Links

http://unattended.msfn.org/xp/applications/sunjava.htm08/07/2004 16:56:52

MSFN's Unattended XP CD - Windows Messenger

Windows Messenger
Download: Windows Messenger Using an extractor such as WinRAR, extract mmssetup.exe to this folder: C:\XPCD\$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

Sponsored Links

http://unattended.msfn.org/xp/applications/windowsmessenger.htm08/07/2004 16:56:54

MSFN's Unattended XP CD - 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"

Sponsored Links

http://unattended.msfn.org/xp/applications/wininstall.htm08/07/2004 16:56:55

MSFN's Unattended XP CD - WinRAR

WinRAR
Download: WinRAR Copy the downloaded file to C:\XPCD\$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:

click to enlarge

Followed by opening a folder containing the WinRAR shortcuts. It's up to you whether you want to use /s or /silent.

Sponsored Links

http://unattended.msfn.org/xp/applications/winrar.htm08/07/2004 16:56:56

http://unattended.msfn.org/app_images/winrar_setup.gif

http://unattended.msfn.org/app_images/winrar_setup.gif08/07/2004 16:56:57

MSFN's Unattended XP CD - 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.

Sponsored Links

http://unattended.msfn.org/xp/applications/wise.htm08/07/2004 16:56:58

MSFN's Unattended XP CD - 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.

Sponsored Links

http://unattended.msfn.org/xp/applications/zonealarm.htm08/07/2004 16:57:00

MSFN's Unattended XP CD - Credits & Copyright

Credits
I would like to thank Mike Wilson for passing over his original site which he no longer maintained to MSFN.org back in July 2003. Since then, it has been improved with many revisions and additions, possibly making it the definitive Unattended XP CD Guide available on the Internet. I would also like to thank all the members in the MSFN Community for their excellent contributions that have benefited many users to fully customize the way an Unattended XP CD functions, making it both a fun and exciting project to take part in. --Aaron MSFN.org Administrator

Copyright
Copyright 2003-2004 Microsoft Software Forum Network MSFN.org All trademarks used on this site are properties of their respective owners. This site is not affiliated with Microsoft in any way

Sponsored Links

http://unattended.msfn.org/xp/credits_copyright.htm08/07/2004 16:55:43

You might also like