Making An Unattened Windows XP CD
Making An Unattened Windows XP CD
Making An Unattened Windows XP CD
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
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
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
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
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
[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
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
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
[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
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
Sponsored Links
http://unattended.msfn.org/xp/hotfixes.htm08/07/2004 16:54:38
Sponsored Links
http://unattended.msfn.org/xp/gethotfixes.htm08/07/2004 16:54:40
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
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
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
Sponsored Links
http://unattended.msfn.org/xp/applications.htm08/07/2004 16:54:50
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
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
Sponsored Links
http://unattended.msfn.org/xp/officexp.htm08/07/2004 16:54:58
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
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
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
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
Sponsored Links
http://unattended.msfn.org/xp/office2003.htm08/07/2004 16:55:09
MSFN's Unattended XP CD -
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 -
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
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
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
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
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
Sponsored Links
http://unattended.msfn.org/xp/archive.htm08/07/2004 16:55:29
Sponsored Links
http://unattended.msfn.org/xp/site_update.htm08/07/2004 16:55:33
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
Sponsored Links
http://unattended.msfn.org/xp/applications/wmp9mm2.htm08/07/2004 16:55:38
Sponsored Links
http://unattended.msfn.org/xp/members.htm08/07/2004 16:55:40
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
Sponsored Links
http://unattended.msfn.org/xp/faq.htm08/07/2004 16:55:45
Sponsored Links
http://unattended.msfn.org/xp/space_saving_tips.htm08/07/2004 16:55:47
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
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
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
[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
Sponsored Links
http://unattended.msfn.org/xp/restore_dialup.htm08/07/2004 16:55:58
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Sponsored Links
http://unattended.msfn.org/xp/applications/wininstall.htm08/07/2004 16:56:55
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
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
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
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