making an unattened windows xp cd

Upload: anuj-meena

Post on 05-Apr-2018

219 views

Category:

Documents


1 download

TRANSCRIPT

  • 7/31/2019 Making an Unattened Windows Xp CD

    1/97

    MSFN's Unattended XP CD - Introduction

    I n t r o d u c t i o n

    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 patchedUXTheme.dll without any user interaction whatsoever? Then this guide will show you how you can do just that!

    Targe t Aud ience : Home users - who are taking up a time-consuming process of re-installing Windows, manually installingessential applications, downloading windows updates, and tweaking their OS to perfection on every re-format.

    Di f f i cu l t y : Requires intermediate experience on Microsoft Windows XP and a basic knowledge of how batch commandsfunction.

    Go to: Get t in g Sta r t ed

    La tes t Si te Upda tes

    2nd April 2004: Fixed a problem where a User Account would expire after 14 days when using the Add Users &

    Au to logon guide in an Unattended Windows XP CD. The solution is to add n e t a c co u n t s / m a x p w a g e: u n li m i t e d to

    useraccounts.cmd. Thanks to GreenMachine for pointing this out!

    8th March 2004: Of f i ce 2003 Slipstreaming and Unattended Guide added

    5th March 2004: Revised RunOnceEx guide, added Runnin g RunOnceEx f r om CD, and Wind ow s XP Se tup T im e l ine.

    Si te Upda t es A rch ive

    T r an s l at i o n s

    These translations are neither supported or maintained by MSFN. We cannot verify the integrity of these translations soplease use at your own risk. Requesting help in your native language (with the exception of english) is not permitted on theMSFN forums. You can request permission to make a translation by sending a PM t o m e on the forums.

    Deutsch: Unbeau fs i ch t ig t e W ind ow s XP CD

    Russian: Cl ick her e

    Italian: Cl ick h ere

    http://www.msfn.org/board/index.php?act=Msg&CODE=4&MID=3http://unattended.blue-tree.de/http://unattended.oszone.net/http://www.machediavolo.it/guide/xpcd/http://www.machediavolo.it/guide/xpcd/http://unattended.oszone.net/http://unattended.blue-tree.de/http://www.msfn.org/board/index.php?act=Msg&CODE=4&MID=3
  • 7/31/2019 Making an Unattened Windows Xp CD

    2/97

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

    Step 1 - Ge t t i n g S ta r t ed

    What you will need to get started:

    q Windows XP CD with Service Pack 1 Slipstreamedq XP SP1 Deploym ent Tools

    q CDI m age fo r W indow s XP P ro fess iona l Ed i t i on / Home Ed i t i on

    q 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 tocreate your own: The Elder Geek | Windows He lp .ne t

    P r ep a r a t i o n

    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$ D ist r i bu t ion

    Fo lders. 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 informationautomatically.

    Go to: Step 2 - Crea t ing an Answ er F il e

    Sponsored L inks

    htt // tt d d f / / tti t t d ht 08/07/2004 16 54 13

    http://download.microsoft.com/download/whistler/ToolDep/SP1/WXP/EN-US/xpsp1deploytools_en.cabhttp://unattended.msfn.org/files/CDImage_Pro.ziphttp://unattended.msfn.org/files/CDImage_Home.ziphttp://www.theeldergeek.com/slipstreamed_xpsp1_cd.htmhttp://www.windows-help.net/windowsxp/winxp-sp1-bootcd.htmlhttp://www.windows-help.net/windowsxp/winxp-sp1-bootcd.htmlhttp://www.theeldergeek.com/slipstreamed_xpsp1_cd.htmhttp://unattended.msfn.org/files/CDImage_Home.ziphttp://unattended.msfn.org/files/CDImage_Pro.ziphttp://download.microsoft.com/download/whistler/ToolDep/SP1/WXP/EN-US/xpsp1deploytools_en.cab
  • 7/31/2019 Making an Unattened Windows Xp CD

    3/97

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

    Step 2 - Creat ing an Answ er Fi le

    An answer fileis a way to script the answers for a series of graphical user interface (GUI) dialog boxes. An answer file alsotells Setup how to interact with the $OEM$ distribution folders and files you create, and supplies Setup with all of theinformation that the end user would provide during a typical Windows Setup.

    With the XP SP1 Deploym ent Tools you downloaded, simply extract them to a folder, or double click on the Cab file. The

    only files you will need is setupmgr.exe and ref.chm:

    The Setup Manager (setupmgr.exe) is a wizard-based answer file creation utility, so you won't come across too muchdifficulty in using this application. To start you off, make the following choices:

    New o r Ex is t i ng Answ er Fi l e: Create NewType of Setu p : Unattended SetupW i n d o w s P r o d u ct : Windows XP Home / ProfessionalU se r I n t e r a c t i o n: Fully AutomatedDist r i bu t ion 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 youcome 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 renamethis to w i n n t . s i f .

    OEM Pre ins ta l l a t i on

    As you read on the previous page, we're using the $OEM$ distribution folders to install our favourite software, drivers, andregistry tweaks. But to make this work, we need to specify two values in the winnt.sif file under [Unattended]:

    http://download.microsoft.com/download/whistler/ToolDep/SP1/WXP/EN-US/xpsp1deploytools_en.cabhttp://download.microsoft.com/download/whistler/ToolDep/SP1/WXP/EN-US/xpsp1deploytools_en.cab
  • 7/31/2019 Making an Unattened Windows Xp CD

    4/97

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

    Step 3 - An Overv iew o f Batch Fi les

    Before we start on making batch files to install our applications and registry tweaks, you may want to find out what they doand to see how they are used:

    Batch files (*.cmd or *.bat, although *.cmd is recommended) can be executed in several areas of Windows XP's Setupprocess. Using batch files helps to automate several tasks at once without any interaction required.

    They can be executed from either cmdlines.txt, svcpack.inf, a RunOnceEx entry in the Registry, or from the [GuiRunOnce]section in winnt.sif. You will learn more about these as you go through this guide.

    Typ ical con ten ts o f a ba tch f i l e

    Batch files supports all the commands that work as if you was using the Command Prompt. To see Windows XP's CommandPrompt, go to Start > Run > and type cm d followed by enter.

    Let's try making a small batch file that does several things. Open Notepad and copy and paste the following:

    Save this as anything you like, as long as it has a .cmd extension. Now double-click on the file. You will find that it renamesthe Window title to "Batch File Testing", opens MSPaint and Wordpad, asks you to press any key to continue, and then itexits.

    @echo off

    title Batch File Testing

    echo Hello World

    echo.echo Starting MS Paintstart mspaint

    echo.echo Starting Wordpad

    start Wordpad

    echo.pause

    MSFN' U d d XP CD Wh h $OEM$ Di ib i F ld ?

  • 7/31/2019 Making an Unattened Windows Xp CD

    5/97

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

    Wh at a r e t h e $OEM$ D is t r i bu t ion Fo lde rs?

    The purpose of these $OEM$ Folders is that anything you place into there will be automatically copied to the destinationhard drive of where you're installing Windows. Once copied over, you can easily create batch commands to install andperform tasks using the % s y st e m d r i v e% variable. For example: If Windows was installed to the D:\ drive, theenvironment variable "%systemdrive%" will resolve into D:\

    You might ask, "why not run application installations from the CD itself?" This is because CD-ROM drive letters are bound tobe different on every PC, which shows why there's no permanent "%CDROM%" environment variable. You could howevercreate and run a script that checks for the existance of a particular file on the CD so it maps the correct drive letter to the%CDROM% variable, but we won't be covering that in this guide (although its been discussed often in the forums so itshould turn up in a search).

    The $OEM$ D is t r i bu t ion Fo lders

    As you can see on the left, the $OEM$ folder stays parallel to the i 3 8 6 folder, notinside it. Anything in $ 1 will be copied to the root of the hard drive of whereWindows is installed to (C:\ for example). See the examples below on how it allworks:

    In preparation, the layout is:

    C:\XPCD\$OEM$\$1\Install\

    When burned to CD (X:\ being the CD-ROM Drive letter), the layout is:X:\$OEM$\$1\Install\

    When the \$OEM$\$1\Install is copied over to the hard drive during Setup, the layoutis:C:\Install\

    Makes sense? This is why in certain parts of the site you will find commands such as:"start /wait %systemdrive%\install\MSN\msnmsgs.msi /qb" as this gives the sameoutput as C:\Install\ when C:\ is the Windows drive.

    $ $ - Anything in here will be copied to the Windows folder, no matter what its called(Windows, WINNT, WindowsXP). By using this method you can create additionalfolders within $$ such as Resources followed by a sub-folder called Themes and placeyour visual styles in here. It will then be copied to C:\WINDOWS\Resources\Themesautomatically when running Windows Setup.

    MSFN's Unattended XP CD Add Users & Auto Logon

  • 7/31/2019 Making an Unattened Windows Xp CD

    6/97

    MSFN s Unattended XP CD - Add Users & Auto Logon

    Add Users & Au to Logon

    One of the pitfalls of an unattended setup is that everything is run under the default Administrator account. This meansprograms you install will only be installed for the current logged in user (that would be the default Administrator) and won'tbe accessible for other users. The same applies for registry tweaks that use HKEY_CURRENT_USER, but we'll discuss thaton a seperate page h e r e.

    Most applications today will install for "All Users", but in case you have a favourite application that won't install for "AllUsers", and prefer to have it in your own custom user account, then this guide is for you!

    What we want to do is set up our own User Account during GUI-mode of Windows XP Setup (that's where you see thecountdown). To do this, we need to use a file known as cmd l ines . t x t which will automatically run at the T-12 Minute stage

    of Windows XP Setup. By doing this, we can automate the first logon with your own user name.

    I n s t r u ct i o n s

    Open Notepad, and copy & paste in the following:

    Save this as cmd l ines . t x t in the C:\XPCD\$OEM$\ folder.

    Notice that we are trying to launch useraccoun ts . cmd from there. Again open Notepad and paste in the following:

    This adds the user John with a password of asdf1234, and adds John to the Administrators Group. ne t accoun ts / m a x p w a g e : u n l i m i t e d 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 useraccoun ts . 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, youshould surround them with quotes It would be like so:

    [COMMANDS]"useraccounts.cmd"

    net user John asdf1234 /addnet localgroup Administrators John /addnet accounts /maxpwage:unlimited

    REGEDIT /S autologon.regEXIT

    MSFN's Unattended XP CD - Importing HKEY CURRENT USER Registry Tweaks

  • 7/31/2019 Making an Unattened Windows Xp CD

    7/97

    MSFN s Unattended XP CD Importing HKEY_CURRENT_USER Registry Tweaks

    I m por t ing HKEY_CURRENT_USER Regis t r y Tw eaks

    You probably have noticed that importing registry tweaks that are for the HKEY_CURRENT_USER tree from either[GuiRunOnce] or RunOnceEx only applies to the current logged in user account. This means any further accounts youcreate in future doesn't inherit your custom tweaks. This guide will show you how you can get your HKEY_CURRENT_USERtweaks applied to all user accounts.

    For this, we'll be using a method known as cmd l ines . t x t which automatically runs at the T-12 minute stage of Windows XPSetup.

    I n s t r u ct i o n s

    Open Notepad, and copy & paste in the following:

    Save this as cmd l ines . t x t in the C:\XPCD\$OEM$\ folder.

    If you haven't created your regtweaks.reg file yet, check this page for a couple of examples. Below is an example ofRegistry Tweaks for HKEY Current User. Please d o n o t use these examples if you are not sure what they do.

    Simply place r e g t w e a k s . r e g in the same folder where cmd l ines . t x t exists. That would be: C:\XPCD\$OEM$\

    All HKEY_CURRENT_USER tweaks imported at this stage will be mapped to the Default User Profile, and any furtheraccounts you create in future will inherit them :-)

    [COMMANDS]"REGEDIT /S regtweaks.reg"

    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"

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    8/97

    y g y

    Si len t I ns ta l l a t i on o f you r f avour i t e Reg ist r y Tw eaks

    In this guide, we'll show you how you can put all your favourite registry tweaks into one single .reg file, and show you howyou can import all the entries into the Windows Registry silently.

    I n s t r u ct i o n s

    Below, you'll find my personal favourite registry tweaks, but that's not all! You can check Kel ly 's XP Corn er for hundreds

    more. It's a good idea to copy the contents of this and paste into Notepad so you can view them clearly in full screen andedit out the ones you don't want to use.

    Please do not use any of them if you're unsure what they do. Just because I use these tweaks doesn't mean you have to aswell. There's probably hundreds and thousands of different tweaks you can put into the registry, you just have to pick outyour favourite ones.

    Once you have finished putting in all your personal favourite registry tweaks in Notepad, save it as RegTw eaks. reg in C:\XPCD\$OEM$\$1\install\

    Lastly, copy & paste these lines to one of your batch files:

    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 Lo on

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

    http://www.kellys-korner-xp.com/xp_tweaks.htmhttp://www.kellys-korner-xp.com/xp_tweaks.htm
  • 7/31/2019 Making an Unattened Windows Xp CD

    9/97

    Refe rence - w inn t . si f comm ands exp la ined

    Jump to section:

    [ Dat a ] [ Un at t en d ed ] [ Gu iUn at t en d ed ] [ Sh el l ]

    [ User Dat a] [ Tap iLocat ion ] [ Reg ion a lSet t i n g s] [ Disp lay ]

    [ Net w or k in g ] [ Com p on en t s] [ I d en t i f i ca t ion ] [ Gu iRu n On ce]

    [ Da t a]

    AutoPartition=1 or 0If you have the selection on 1 then Windows Setup will install the OS on any free partition that is available. If you removethis line or if you put AutoPartition=0 then setup will ask you on which partition you wish to install Windows onto andadvises 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.

    ^ B ac k t o To p

    [ Un a t t e n de d ]

    UnattendMode=FullUnattendedSetting this option to FullUnattended will perform a fully unattended install, which uses the winnt.sif answer file to answerall the Setup questions, you will have no option to change these answers during setup. Other values can be found in theRef.chm file that was mentioned on the Crea t ing an Answ er F i l epage.

    OemSkipEula=Yes or NoSetting this option to Yes will skip the EULA screen which you already read when you used Setup Manager. Setting thisoption to No will mean you have to press F8 on the keyboard to accept the license during text-mode Setup.

    MSFN's Unattended XP CD - Examples

  • 7/31/2019 Making an Unattened Windows Xp CD

    10/97

    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!

    W i n n t .s if :

    svcpack . in f

    [Data]AutoPartition=0MsDosInitiated="0"UnattendedInstall="Yes"

    [Unattended]UnattendMode=FullUnattendedOemSkipEula=YesOemPreinstall=YesTargetPath=\WINDOWSFileSystem=*UnattendSwitch="yes"WaitForReboot="No"DriverSigningPolicy=Ignore

    OemPnPDriversPath="Drivers\000_intel_INF;Drivers\001_gigabit_LAN;Drivers\002_monitor"KeyboardLayout="United Kingdom"

    GuiUnattended

    [Version]

    Signature="$Windows NT$"MajorVersion=5MinorVersion=1BuildNumber=2600

    [SetupData]CatalogSubDir="\i386\Update"

    [ProductCatalogsToInstall]

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    11/97

    Si len t I ns ta l l a t i on o f Pre -SP2 Ho t f i x Upda tes

    At the time of making this guide, there's probably approx. 25-35 MB of critical updates on WindowsUpdate for Windows XP.

    Nobody likes to download them, especially if you're on 56K when you're eager to get all your essential apps installed andmaking a full backup before properly using your OS. Thanks to the silent install switches, we can now include 35 MB ofhotfixes on the CD and get them installed all in one go. This section covers two parts - Getting the Hotfixes and Installingthe Hotfixes.

    Ge t t i n g t h e H o t f i x e s | I n s t a l li n g t h e H o t f i x e s

    Sponsored L inks

    http://unattended.msfn.org/xp/hotfixes.htm08/07/2004 16:54:38 MSFN's Unattended XP CD - Getting the Hotfixes

  • 7/31/2019 Making an Unattened Windows Xp CD

    12/97

    Get t in g t he Ho t f i xes

    You're probably wondering how to find out which exact hotfixes you need for Windows XP, there are 4 ways to do this:

    Method 1 - An u p - to - da te l i s t f o r W in dow s XP Pro fess iona l SP1

    A full list of Critical Updates are available at t h i s f o r u m t h r e a d , please keep in mind this list is for Windows XP

    Professional Edition SP1 (32-bit). If you are using an edition other than Professional, please use one of the 3 other methodsshown below. This list is kept up-to-date at all times.

    M e t h o d 2 - W i n d o w s Up d a t e

    Set up a base install of Windows XP SP1 (with no updates installed), and access W i n d o w s U p d a t e. Take note of the 6 digit

    numbers on each Critical Update, e.g. "329441: Security Update for Microsoft Windows".

    After you have taken note of all the 6 digit numbers on every security update, you need to attach them to the end of thisURL: http://support.microsoft.com/?kbid=xxxxxx replacing the xxxxxx with the numbers you wrote down.

    Then download from the link provided at the Knowledge Base Article (some articles will link to a Technet Security Bulletin).Repeat for the other updates shown on WindowsUpdate.

    M e t h o d 3 - W i n d o w s U p d at e Ca t a l o g

    Set up a base install of Windows XP SP1 (with no updates installed), and access W i n d o w s U p d a t e. Click on the

    "Personalize Windows Update" link on the left pane, Check the "Display the link to the Windows Update Catalog" under the"See Also" check-box under "Set options for Windows Update" list in the right pane, Click the "save settings" button in thetop right of the right pane.

    Then click on the "Windows Update Catalog" link under the "See Also" list in the left pane, click "Find updates for MicrosoftWindows operating systems" in the right pane, select OS (Windows XP SP1) in the Operating-system-list and your OSlanguage in the Language-List, and then click search in bottom right of the right pane.

    You are now presented with links to "Critical Updates and Service Packs", "Multi-Language Features" and "RecommendedUpdates". Open each link and add what components/updates you want/need and click the "Go to Download Basket" linkwhen you are done. Select the path to download the updates in (Must be an existing folder) and click on the "Downloadnow" Button. The updates will now be downloaded and categorized in separate folders, automatically on your own hard-drive.

    MSFN's Unattended XP CD - Installing the Hotfixes

    http://board.msfn.org/index.php?showtopic=8741http://windowsupdate.microsoft.com/http://windowsupdate.microsoft.com/http://windowsupdate.microsoft.com/http://windowsupdate.microsoft.com/http://board.msfn.org/index.php?showtopic=8741
  • 7/31/2019 Making an Unattened Windows Xp CD

    13/97

    I n s t a ll i n g t h e Ho t f i x e s

    In this section of the guide, we'll help you set up a hotfixes installation that will run in the GUI-mode part of Setup. The

    hotfixes installation will execute at the "13 minutes left" stage, which will take somewhere between 5-20 minutes tocomplete - depending on your system specifications.

    (I know this page seems very long, but it only takes 10 mins to do everything explained. Its just very detailed!)

    Se t t i n g up your Ho t f i x es and the svcpack . in f f i l e

    Copy all your downloaded hotfix files into this directory: C:\XPCD\i386\Update\

    All hotfixes must be renamed to an 8.3 naming format (no more than 8 characters in length). For example, filenames suchas Q819696_WXP_SP2_x86_ENU.exe and WindowsXP-KB824146-x86-ENU.exe should be renamed to Q 8 1 9 6 9 6 .ex e and KB824146 .exe in that order respectively.

    Open Notepad and copy and paste the following below:

    Save this as svcpack. in f in C:\XPCD\I386\. You m u s t delete svcpack.in_ in the I386 directory otherwise Windows XPSetup will not use the svcpack.inf file.

    The entries shown in [SetupHotfixesToRun] are just an example. All the hotfixes you have downloaded, renamed andcopied to the Upda te folder should be added under this section in svcpack.inf in numer i ca l o rde r . The images below will

    help to know what syntax should be used:

    [Version]Signature="$Windows NT$"MajorVersion=5MinorVersion=1BuildNumber=2600

    [SetupData]CatalogSubDir="\i386\Update"

    [ProductCatalogsToInstall]

    [SetupHotfixesToRun]Q330994.exe /Q:A /R:NQ819696.exe /Q /O /N /ZKB824146.exe /Q /O /N /Zqchain.exe

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    14/97

    Exp la ina t ion o f Ho t f i x Sw i t ches used

    There are 5 switches in total which we can use with the Type 1 Hotfixes (the other switches documented by Microsoft's

    Knowledge Base articles are irrelevant). Below you can find an explaination of them, and choose which ones you can use.

    / U - Unattended Mode. No user interaction is required to install a hotfix, but you will see progress bar windows.

    / Q - Quiet Mode. This functions exactly the same way as /U, but does not display any progress bar windows. You do notneed to use /Q and /U together.

    / O - Overwrites OEM Files without prompting. Recent tests by several forums users have seen this to speed up hotfixinstallation very noticably, roughly shaving off one minute per hotfix. This is because each hotfix installation spends timesearching for "third-party drivers" repeatly one after another. Using /O will prevent this.

    Please use this switch with cau t ion as this may overwrite any driver files you choose to install. (although we've not heardany side effects from this since mentioning it here)

    / N - Do not back up files for removal. This won't create any backups of older system files, thus there won't be any Add/Remove entries for the hotfixes.

    / Z - Do not restart when installation is complete.

    Sponsored L inks

    http://unattended msfn org/xp/hotfixswitches explained htm08/07/200416:54:47

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    15/97

    [Version]

    Signature="$Windows NT$"

    MajorVersion=5

    MinorVersion=1BuildNumber=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 /OQ824141.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:NWMP9MM2.exe

    Q828026.exe /Q /N /Z /O

    qchain.exe

    DX9NTopk.exe

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    16/97

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    17/97

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

    MSFN's Unattended XP CD - Unattended Installation of Applications

  • 7/31/2019 Making an Unattened Windows Xp CD

    18/97

    Unat tended I ns ta l l a t i on o f App l i ca t ions

    In this section, we'll be showing you how you can install applications silently without user interaction. Each application is

    listed in the navigation menu under App l i ca t ions.

    Each page will show you the necessary batch commands you will need to use. You will need to add these commands toyour own batch file which will run from [GuiRunOnce]. You can see how I've done mine by looking at s t a r t . c m d in theExamp les page.

    A p p l ic at i o n n o t l i st e d ?

    Then find out what installer package it uses, and follow one of the links in the navigation menu under the Applicationslisting.

    If you're still not sure, you can search and then ask in the App l i ca t ion Sw i t ches forum. If you get no response, you may

    want to consider emailing the developer of the application to ask if it supports a silent installation or not.

    When a l l e l se fai l s .. .

    You can use an application that monitors your software installation, and then creates a silent-install package of the filesand registry changes that occured during the installation. These types of applications are listed below:

    W i n I n s t a l l L E 2 0 0 3 (Freeware) Use the 'Discover' Wizard.

    I n s t a l l R i t e (Freeware)

    A u t o I T (Freeware)

    Sym antec A I Snapsho t (Included in Symantec Ghost Corporate)

    Sponsored L inks

    MSFN's Unattended XP CD - Device Drivers

    http://www.msfn.org/board/index.php?showforum=80http://downloads.ondemandsoftware.com/download/installs/wininstallle.exehttp://www.epsilonsquared.com/http://www.hiddensoft.com/AutoIt/http://service1.symantec.com/SUPPORT/ghost.nsf/8477deaaaafc102288256b1e00704619/26fc910ebab0c95188256a15005f935f?OpenDocument&src=bar_sch_namhttp://service1.symantec.com/SUPPORT/ghost.nsf/8477deaaaafc102288256b1e00704619/26fc910ebab0c95188256a15005f935f?OpenDocument&src=bar_sch_namhttp://www.hiddensoft.com/AutoIt/http://www.epsilonsquared.com/http://downloads.ondemandsoftware.com/download/installs/wininstallle.exehttp://www.msfn.org/board/index.php?showforum=80
  • 7/31/2019 Making an Unattened Windows Xp CD

    19/97

    Si len t I ns ta l l a t i on o f W indow s Dev ice Dr i ve rs

    If you ever had to update a lot of drivers after installing Windows, then this guide will show you how you can get Windows

    XP Setup to install your updated drivers rather than the ones from the drivers.cab file on the CD. It's not as difficult as youthink!

    For those who have a SATA/Raid setup, you may want to r ead th i s page as the method outlined below cannot load your

    Hard drive controller drivers during Setup.

    D r i v e r s i n w i n n t . si f [ U n at t e n d e d ]

    OemPnPDriversPath= "Drivers\00 0_intel_INF;Drivers\00 1_gigabit_LAN;Drivers\ 002_m onitor"

    This is where you can tell Setup to search your updated drivers folders to find a better match than what's in the existingdrivers.cab on the XP CD. If it finds a better match it will install those instead.

    N o t e: Seperate different directories with a semi -co lon ";"

    DriverSigningPolicy= IgnoreThis will force Setup to install drivers that may not be WHQL certified. This is used in conjunction with OemPnPDriversPath.(Feedback from the MSFN forums have said that this doesn't always work. Try to use WHQL certified drivers if you can!)

    You can add as many drivers as you want for several machines with different hardware specs. There is no risk of installingwrong drivers on a specific machine because Windows XP detects the best driver match for the hardware.

    H o w t o p r e p a r e y o u r d r iv e r s

    All drivers are packaged differently, which is why we can't make a guide for every driver. But most of them can beextracted using extraction software and will contain one, or several INF files inside.

    Extract your driver package to any folder, and examine the contents of it. Sometimes you will find several sub-folders

    containing the INF files in which case you need to make seperate direct paths to them in OemPnPDr iversPath . This isbecause Windows XP Setup will not scan any sub-folders for any INF files.

    Name your folders starting with numbers, this ensures that specific drivers get installed in a numerical order. As you mayalready know, its important for chipset drivers to be installed before any other driver, this is why the chipset folder is givena number of 000, so its the first folder that Setup checks and installs. Here's an example below of how you can lay yoursout:

    000_chipset

    001 network MSFN's Unattended XP CD - InstallShield

    http://greenmachine.msfnhosting.com/READING/addraid.htmhttp://greenmachine.msfnhosting.com/READING/addraid.htm
  • 7/31/2019 Making an Unattened Windows Xp CD

    20/97

    I ns ta l lSh ie ld

    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 destinationdirectory, etc. It's i m p o r t a n t that you do not choose the "Restart the computer now" option. If you do, you will terminateyour 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 se tup . i ss file. Putthis se tup . i ss 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.

    H o w d o I i d e n t i f y a n I n s t a l lSh i e l d p ac k a g e?

    Most of them can be extracted. The Properties box of Setup.exe should show something like "InstallShield (R) SetupLauncher" or something similar. And lastly, if you see a setup.iss file in the directory, then its definitely InstallShield!

    Sponsored L inks

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    21/97

    Of f i ce XP Una t t ended - I n t r oduc t ion

    Got a DVD Recorder? You'll need it if you want to bundle Office XP with Windows XP, due to its large size. If not, you could

    use a 2nd CD for Office XP, and instruct the batch file on the Windows CD to ask you to insert the 2nd CD and then run theOffice XP installation. You can follow this g u i d e on the MSFN Forums for the how-to. Alternatively, you could SFX archive

    all the Office XP files (with WinRAR) and hopefully it will fit on your Windows XP CD.

    This guide will show you how to run a silent unattended installation of Office XP. The Simple method will just run a silentinstall from an existing Office XP CD, and installs the full default components. If you feel like going advanced you caninclude all the updates to Office XP, and fully customize your installation options (yes, you even get to have control overwhat shortcuts to install, and whether or not to install that annoying Office Assistant!)

    The Advanced method also doubles up as a slipstreaming guide, which will show you how to slipstream Service Pack 2, and

    the post-SP2 updates.

    Off ice XP Sim ple | Off ice XP Advanced

    Sponsored L inks

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

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

    http://www.msfn.org/board/index.php?showtopic=8381http://www.msfn.org/board/index.php?showtopic=8381
  • 7/31/2019 Making an Unattened Windows Xp CD

    22/97

    Of f i ce XP Una t t ended - S imp le m e thod

    Grab your Office XP disc and copy the contents of it to: C:\XPCD\$OEM$\$1\install\Applications\OfficeXP\

    The number of files may vary for different Office XP Editions, don't worry if its not the same as in the screenshot above.Although I know for a fact that PROPLUS.msi is Office XP Professional with Frontpage, and PRO.msi is just Office XPProfessional, 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 ve rs ion if you want full control over your Office XP Installation.

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    23/97

    Of f i ce XP Una t t ended - Advanced m ethod

    In here, we'll show you how you can slipstream Service Pack 2 and the Post-SP2 updates to Office XP, then show you how

    to customize your Office XP installation. If you already have a slipstreamed up-to-date Office XP CD you may want to skipto Sect ion 3 . Please note that you can only do a slipstream if you have PRO.msi or PROPLUS.m si , you cannot slipstream

    if your Office XP disc contains PRORET.m si .

    Se ct i o n 1 - T h e A d m i n i s t r a t i v e I n s t a l la t i o n P o in t

    First, we need to create an Administrative Installation Point so we can be able to slipstream the Service Pack and Updatesinto Office XP.

    Insert your Office XP CD, and run the following command from the Run box which can be accessed from the Start Menu(Change the CD-ROM drive letter to your Office XP CD if it differs from E:\):

    This starts Office XP Setup, where you can define an Administrative I nstallation Pointfor your Office XP files.

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    24/97

    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/OfficeXP_Slipstreamer.cmd

  • 7/31/2019 Making an Unattened Windows Xp CD

    25/97

    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 /qbmsiexec /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 /qbmsiexec /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

    MSFN's Unattended XP CD - Additions

  • 7/31/2019 Making an Unattened Windows Xp CD

    26/97

    Ad d i t i o n s

    You can make a number of additions to enhance your unattended installation of Windows XP:

    Add Users & Au to Logon

    Find out how to create your own user accounts, and force your own user account to logon first instead of the defaultAdministrator account.

    Using Mod i f i ed F i l es

    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 Wind ow s Fi l e Pro t ec t ion

    Having trouble deleting specific files and folders in Windows? Find out how you can disable WFP completely (can be used inconjunction with Hacked Files to prevent the WFP dialog window from appearing).

    O EM I n f o r m a t i o n & L o g o

    Find out how to copy your OEM information and logo to the System Properties window automatically.

    I m p o r t i n g Di a l- u p Se t t i n g s

    You don't want to spend too much time reconfiguring a new dial-up connection on a clean install. Find out how you canimport your settings!

    Space Savin g T ips

    Running out of space on the CD? Follow these great guides to slim down your CD contents without losing any functionality!

    I m por t i ng HKEY Cur r en t User Reg is t r y Tweak s ( fo r a l l use rs )

    Find out how you can map all HKEY_CURRENT_USER registry tweaks to the Default User Profile so any user you create infuture will inherit those tweaks.

    Sponsored L inks

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    27/97

    Fina l is ing you r Unat ten ded XP CD

    Once you're happy with your Unattended XP CD preparation, double check to see if everything is correct, including the

    winnt.sif answer file, all the batch files, svcpack.inf and anything else you might have added.

    It is very likely that you will have several mistakes that have gone unnoticed, so its a good idea to test your installation inVMWare or Virtual PC to save on wasting CD-R discs. Both VMWare and Virtual PC is an application that emulates hardwareand allows you to install an Operating System without it affecting any of your existing partitions.

    Both VMWare and V i r tua l PC support ISO Images (a single file image dump of a CD that has an .iso extension).

    Us ing M ic roso f t ' s CD I m age Too l t o c rea te the I SO

    CDImage is a command-line driven application developed by Microsoft to create an ISO image from a directory of files andfolders. We have put together the tool, with the boot.bin file (to make your ISO file bootable), and a batch file that containsthe necessary switches to create the ISO. This is a one-click ISO creation tool!

    Download: CDI m age fo r W in dow s XP P ro fess iona l

    Download: CD I m a g e f o r W i n d o w s X P H o m e

    Read the included readme.txt for instructions. Once the ISO is created, you can test your Windows Installation in VMWareor Virtual PC, and recreate the ISO again to fix any previous mistakes. Once perfected, you can burn the ISO straight to aCD-R disc. Both Easy CD Creator and Nero is able to support this.

    Alternatively, doing it the long way round, you can burn all the contents of C:\XPCD\ to a CD-R, using one of these guides:The Elder Geek | Windows He lp .ne t

    N o t es

    Using software such as WinISO, UltraISO or any other variant to create/edit your bootable ISO image is notrecommended as there is a risk of corrupting your ISO file.

    According to feedback from the MSFN Forums, it's been said that Virtual PC cannot support DVD ISO images over 2GB insize. The workaround is to mount the ISO by using third-party software such as Daemon Too ls (freeware), or A lcoho l

    1 2 0 % rather than in Virtual PC. After mounting the ISO in either Daemon Tools or Alcohol, use the "Capture Host Drive

    :" feature in Virtual PC.

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

    http://www.vmware.com/products/desktop/ws_features.htmlhttp://www.microsoft.com/virtualpc/http://unattended.msfn.org/files/CDImage_Pro.ziphttp://unattended.msfn.org/files/CDImage_Home.ziphttp://www.theeldergeek.com/slipstreamed_xpsp1_cd.htmhttp://www.windows-help.net/windowsxp/winxp-sp1-bootcd.htmlhttp://www.daemon-tools.cc/http://www.alcohol-software.com/http://www.alcohol-software.com/http://www.alcohol-software.com/http://www.alcohol-software.com/http://www.daemon-tools.cc/http://www.windows-help.net/windowsxp/winxp-sp1-bootcd.htmlhttp://www.theeldergeek.com/slipstreamed_xpsp1_cd.htmhttp://unattended.msfn.org/files/CDImage_Home.ziphttp://unattended.msfn.org/files/CDImage_Pro.ziphttp://www.microsoft.com/virtualpc/http://www.vmware.com/products/desktop/ws_features.html
  • 7/31/2019 Making an Unattened Windows Xp CD

    28/97

    Albanian

    Belarusian

    Belgian Dutch

    Belgian French

    Brazilian (ABNT)

    Bulgarian

    Bulgarian Latin

    Canadian English (Multilingual)

    Canadian French

    Canadian French (Multilingual)

    CroatianCzech

    Czech (QWERTY)

    Danish

    Dutch

    Estonian

    FinnishFrench

    German

    German (IBM)

    Greek

    Greek Latin

    Greek (220)Greek (220) Latin

    Greek (319)

    Greek (319) Latin

    Hungarian

    Hungarian 101-key

    IcelandicIrish

    Italian

    Italian (142)

    Latin American

    Latvian

    Latvian (QWERTY)

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    29/97

    [Components]

    AccessOpt = On

    Appsrv_console = On

    Aspnet = On

    AutoUpdate = On

    BitsServerExtensionsISAPI = On

    BitsServerExtensionsManager = On

    Calc = On

    Certsrv = On

    Certsrv_client = On

    Certsrv_server = OnCharmap = On

    Chat = On

    Clipbook = On

    Complusnetwork = On

    Deskpaper = On

    Dialer = OnDtcnetwork = On

    Fax = On

    Fp_extensions = On

    Fp_vdir_deploy = On

    Freecell = On

    Hearts = OnHypertrm = On

    IEAccess = On

    Iis_asp = On

    Iis_common = On

    Iisdbg = On

    Iis_ftp = OnIis_htmla = On

    Iis_doc = On

    Iis_inetmgr = On

    Iis_internetdataconnector = On

    Iis_nntp = On

    Iis_pwmgr = On

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    30/97

    Of f i ce 2 0 0 3 Un at t e n d e d - I n t r o d u c t i o n

    Got a DVD Recorder? You'll need it if you want to bundle Office 2003 with Windows XP, due to its large size. If not, you

    could use a 2nd CD for Office 2003, and instruct the batch file on the Windows CD to ask you to insert the 2nd CD and thenrun the Office 2003 installation. You can follow this g u i d e on the MSFN Forums for the how-to. Alternatively, you could SFX

    archive all the Office 2003 files (with WinRAR) and hopefully it will fit on your Windows XP CD.

    This guide will show you how to run a silent unattended installation of Office 2003. The Simple method will just run a silentinstall from an existing Office 2003 CD, and installs the full default components. If you feel like going advanced you caninclude all the updates to Office 2003, and fully customize your installation options (yes, you even get to have control overwhat shortcuts to install, and whether or not to install that annoying Office Assistant!)

    The Advanced method also doubles up as a slipstreaming guide, which will show you how to slipstream the post-RTM

    updates.

    Of f i ce 2003 Sim p le | Of f i ce 2003 Advanced

    Sponsored L inks

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

    MSFN's Unattended XP CD -

    http://www.msfn.org/board/index.php?showtopic=8381http://www.msfn.org/board/index.php?showtopic=8381
  • 7/31/2019 Making an Unattened Windows Xp CD

    31/97

    Of f i ce 200 3 Una t t ended - Sim p le me t hod

    Grab your Office 2003 disc and copy the contents of it to: C:\XPCD\$OEM$\$1\install\Applications\Office2003\

    The number of files may vary for different Office 2003 Editions, don't worry if its not the same as in the screenshot above.

    Add these lines to your batch file:

    ECHO.ECHO Installing Office 2003ECHO 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 ve rs ion if you want full control over your Office 2003 Installation.

    Sponsored L inks

    MSFN's Unattended XP CD -

  • 7/31/2019 Making an Unattened Windows Xp CD

    32/97

    Of f i ce 200 3 Una t t ended - Advanced meth od

    In this guide, we'll show you how you can slipstream the updates to Office 2003, then show you how to customize your

    Office 2003 installation.

    Sec t ion 1 - Crea t ing an Admin is t ra t i v e In s ta l l a t i on Po in t

    From the Office Resource Kit site: Only editions of Office 2003 acquired through a Volume License agreement or other non-retail channel allow you t o create an administrative installation point. You cannot run Setup.exe in administrative m ode (/a) wit h an Offi ce 2003 ret ai l edit ion. If you cannot make an Administrative Installation Point, you will not be able to

    slipstream the latest updates into it. However, you can still customize Office 2003's installation by going to Sect ion 3 .

    First, we'll need to create an Administrative Installation Point so we can be able to slipstream the updates into Office 2003.This only has to be done once, and updates can still be slipstreamed to an existing Administrative Installation Point at alater date.

    Insert your Office 2003 CD, and run the following command from the Run box which can be accessed from the Start Menu(Change the CD-ROM drive letter to your Office 2003 CD if it differs from E:\):

    This starts Office 2003 Setup, where you can define an Administrative I nstallation Pointfor your Office 2003 files.

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

    TITLE Offi 2003 U d t E t t b ht t b MSFN

  • 7/31/2019 Making an Unattened Windows Xp CD

    33/97

    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/Office2003_Slipstreamer.cmd

    TITLE Office 2003 Slipstreamer brought to you by www MSFN org

  • 7/31/2019 Making an Unattened Windows Xp CD

    34/97

    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/app_images/office2003/custom.gif

  • 7/31/2019 Making an Unattened Windows Xp CD

    35/97

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

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    36/97

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

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    37/97

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

    MSFN's Unattended XP CD - Running RunOnceEx from CD

  • 7/31/2019 Making an Unattened Windows Xp CD

    38/97

    Run nin g RunOnceEx f rom CD

    Some of our readers wanted a way to install their software from the CD without copying the files to the Hard Drive usingthe \$OEM$\$1\ folders. This guide will show you a simple way on how you can accomplish this without needing to usethird-party utilities.

    Please make sure you have read through the RunOnceEx gu ide first!

    Mak ing m od i f i ca t ions to your ex i s t i ng RunOnceEx .cmd f i l e

    In order to find the correct CD drive letter, we need to include some IF EXIST statements in the RunOnceEx.cmd file. OpenRunOnceEx.cmd in Notepad, and include the following after @echo of f :

    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:

    Create a blank txt file called CD.txt and place this in C:\XPCD. This allows the IF EXIST command to scan all the driveletters specified, then when it finds CD.txt it will set an environment variable of %CDROM% pointing to the correct driveletter.

    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 afolder name of your choice.

    Going back to the RunOnceEx.cmd file, we'll need to make further changes:

    q Change all instances of% s y st e m d r i v e % to % CDROM%

    q 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 tothe %CDROM% environment variable, and the drive letter will be imported to the registry. Give it a go and see foryourself! The end result should look something like this:

    cmdow @ /HID@echo off

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    39/97

    Trans fo rm ing f r om Com m and L ine Ba tches t o RunOnceEx

    Do you want to change from dull c o m m a n d l i n e b a t c h e s to a more sleek, professional looking RunOnceEx w indow ?

    We'll show you how you can easily transform over to this method!

    If you would prefer to use an INF file to control RunOnceEx, you can follow gosh's guide to learn how h e r e.

    Ge t t i n g S t a r t e d

    First of all, remove the [GuiRunOnce] entries in w i n n t . s i f , as RunOnceEx can be used to replace [GuiRunOnce] completely.Although you can use both if needed for any reason but they will execute at the same time, so use caution.

    To start RunOnceEx on logon, we will need to import the registry keys during Windows Setup. We can do this by usingcmdlines.txt which executes a series of commands during the T-12 minute stage of Windows XP Setup. Create a cmd l ines .t x t file in Notepad and paste in the following:

    Save this as cmd l ines . t x t in C:\XPCD\$OEM$\

    Crea t ing y our RunOnceEx .cmd f i l e

    This file will contain the syntax using REG.exe to import entries into the Windows Registry. This different method ofimporting registry entries allows the % s y st e m d r i v e% environment variable to be used. The other method of using *.regfiles requires a fixed drive letter (environment variables won't work), which isn't perfect if we wanted to install Windowsonto D:\ or E:\ on a different PC.

    Here is an example of what you can use:

    [COMMANDS]"RunOnceEx.cmd"

    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

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

    http://gosh.msfnhosting.com/using_runonceex.htmhttp://gosh.msfnhosting.com/using_runonceex.htm
  • 7/31/2019 Making an Unattened Windows Xp CD

    40/97

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    41/97

    MSFN's Unattended XP CD - Downloads

  • 7/31/2019 Making an Unattened Windows Xp CD

    42/97

    Do wn lo a d s

    D o w n l o a d : CDR- a comm and l i ne CD Dr i ve Ejec to r u t i l i t y

    CDR.exe is a command line utility which you can execute to eject one or more CD/DVD drives. This can be used as areplacement for the cd_eject.vbs script file, which wasn't all that great in terms of functionality. Use CDR.exe /? for a fulllist 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/deletecommands in the Windows or System32 directories, in which case Windows File Protectioncan intefere at times when theCD is in the drive.

    Usage: CDR.exe open ALL

    Thanks to devil270975 for developing this tool for MSFN.org

    - - - - - - - - - - -

    D o w n l o a d : CMDOW - a c om m a n d l i n e W i n d o w U t i l it y

    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 executedfrom anywhere when placed in the Windows System32 Directory)

    Usage: cmdow @ /HID

    - - - - - - - - - - -

    D o w n l o a d : 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 batchfile proceeds to install anything else.

    Extract sleep.zip, and then copy sleep.exe into: C:\XPCD\$OEM$\$$\System32\ (This allows sleep to be executed fromanywhere when placed in the \Windows\System32 Directory)

    MSFN's Unattended XP CD - Windows XP Setup Timeline

    http://unattended.msfn.org/files/CDR.ziphttp://www.commandline.co.uk/cmdow/index.htmlhttp://unattended.msfn.org/files/sleep.ziphttp://unattended.msfn.org/files/sleep.ziphttp://www.commandline.co.uk/cmdow/index.htmlhttp://unattended.msfn.org/files/CDR.zip
  • 7/31/2019 Making an Unattened Windows Xp CD

    43/97

    Wind ow s XP Se tup T ime l ine

    This timeline shows Windows XP's Setup activity during an unattended installation, to clear up the confusion of when tasksare run.

    Configure BIOS to set CD-ROM as First Boot Device. Boot from CD...

    T ex t - m o d e Se t u p

    1. Loads Drivers2. Copies files required for Setup to the Hard Disk3. Copies the contents of your $OEM$ folders to the Hard Disk4. Reboots the PC...

    GU I - m o d e Se t u p

    1. DetachedProgram executes from winnt.sif at T-39 minute stage2. Installs Devices3. Installs Network4. Installs Start Menu Items5. Registers Components

    6. svcpack. in f executes at T-13 minute stage7. cmd l ines . t x t executes at T-12 minute stage8. [ S e t u p P a r a m s ] executes from winnt.sif at T-9 minute stage9. Saves Settings10. Deletes temporary files then reboots...

    Fi r s t Logon

    1. Windows XP logs you in and loads personal settings

    2. Both [ Gu iRunOnce] from winnt.sif and RunOnceEx executes at the same time3. Desktop and Taskbar loads.

    I hope this helps! Please consult the ref.chm file if you ever need to take advantage ofDetachedProgram or[ S e t u p P a r a m s ] .

    MSFN's Unattended XP CD - Site Updates Archive

  • 7/31/2019 Making an Unattened Windows Xp CD

    44/97

    Si te Updat es Arch iv e

    5th March 2004: Revised RunOnceEx guide, added Runnin g RunOnceEx f r om CD, and Wind ow s XP Se tup T im e l ine.

    2nd March 2004: Fixed table length for users browsing in a resolution of 800x600 (if the site appears broken, clean out thebrowser's cache)

    1st March 2004: Redesigned site and made several revisions to some pages.

    3rd December 2003: Added a guide to help transform over from Command Line batches to the more professionalRunOnceEx .

    24th November 2003: Its been a while, but I got around to revamping parts of the site and added additional sections. Youcan see a full list of changes h e r e.

    4th November 2003: Added Repacked TweakUI to support a silent install using /qb or /qn (Thanks Ytterbium!) SeePowerToys page .

    16th October 2003: Updated the Installing Hotfixes Guide to coincide with the release of the Update Rollup 1 pack.

    13th October 2003: Fixed the wrong syntax used in TRANSFORMS in the Office XP Unattended Guide. TRANSFORMS=C:\XPCD\$OEM$\$1\install\ should be replaced with TRANSFORMS=%systemdrive%\install\

    5th October 2003: New Hotfix Installation guide added, and updates added to the Office XP Unattended Guide.

    20th September 2003: The Hotfix section has been removed temporarily due to inconsistencies found in the hotfixinstallation as reported by a couple of users. We are working on a new script that will slipstream the hotfixes into theWindows XP SP1 CD, as well as an alternative for those who want to have the hotfix installation run from a batch. Globalsite updates are also expected in the next few days.

    9th August 2003: Added: Space saving tips for DirectX 9, and more Q&As in the FAQ.

    1st August 2003: Added: Office XP Unattended, Simple & Advanced methods.

    29th July 2003: Added: Inno Setup and NSIS guides, ISOBuster, CDex, and Norton Antivirus 2003

    27th July 2003: Added: Ad-Aware 6, Adobe Reader 6, AIM 5.2, DivX 5, Kazza Lite K++, O&O Defrag Pro, Sun Java VM,WinRAR, ZoneAlarm

    26th July 2003: MS Java installation page recreated to benefit users with XP SP1 and XP SP1a More Applications are on the MSFN's Unattended XP CD - Site Updates

  • 7/31/2019 Making an Unattened Windows Xp CD

    45/97

    Si t e Up d at e l og ( 2 4 / 1 1 / 2 0 0 3 )

    Created A d d i t i o n s section with the following guides:

    Auto Logon, Hacked Files, Bypassing Windows File Protection, OEM Logo & Info, Restore Dial-Up Settings, Space savingtips, and importing HKCU registry settings.

    Created $OEM$ D is t r i bu t ion fo lde rs explaination page

    Rewritten Dr ive rs page to introduce a folder numbering process.

    Rewritten most pages on this site to explain certain instructions more clearly.

    All Application pages' download links replaced with homepage links.

    Fina l is ing you r CD rewritten for CDImage (WinISO instructions and ISOs removed)

    Added more values for the winnt.sifReference page

    Di rec tX 9 .0b no longer needs a hex-edited dxsetup.exe file. Added OPK file instead.

    Windows Media Player & Movie Maker 2 bun dle OPK added

    Created Member S i tes page

    Added new tools to D o w n l o a d s. Old ones removed as similar utilites are already built in Windows

    Examp le batch files cleaned up so it doesn't look too complicated.

    Sponsored L inks

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

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    46/97

    Si len t I ns ta l l o f D i rectX 9 .0b

    Download: DirectX 9 .0b OPK

    Extract from the .rar file and then copy DX9NTopk.exe to C:\XPCD\$OEM$\$1\install\DirectX9b\

    The DirectX 9.0b OPK does not require any switches to silently install. Add the following commands to your existing batchfile:

    ECHO.ECHO Installing DirectX 9.0bECHO Please wait...

    start /wait %systemdrive%\install\DirectX9b\DX9NTopk.exe

    I ns ta l l D i rectX 9 .0b us ing svcpack . in f

    If you've made a svcpack.inf file for installing Pre-SP2 hotfixes, you can also install DirectX 9.0b from there:

    Copy DX9NTopk.exe to the C:\XPCD\I386\Update\ folder and then add this line under [SetupHotfixesToRun] in svcpack.inf:

    [SetupHotfixesToRun]DX9NTopk.exe

    Sponsored L inks

    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

    http://unattended.msfn.org/files/DX9NTopk.rarhttp://unattended.msfn.org/files/DX9NTopk.rar
  • 7/31/2019 Making an Unattened Windows Xp CD

    47/97

    Wind ow s Med ia Playe r 9 & Mov ie Maker 2 Bund le OPK

    Download: Window s Med ia Playe r 9 & Mov ie Maker 2 Bund le OPK

    The Windows Media Player 9 & Movie Maker 2 OPK does not require any switches to silently install. Add the followingcommands to your existing batch file:

    ECHO.ECHO Installing WMP9 and Movie Maker 2ECHO Please wait...start /wait %systemdrive%\install\WMP9_MM2\WMP9_MM2_ENU.exe

    I n s t a l l W M P9 & M M 2 u s i n g s v cp a ck . i n f

    If you've made a svcpack.inf file for installing Pre-SP2 hotfixes, you can also install WMP9 and MM2 from there:

    Copy WMP9_MM2_ENU.exe to the C:\XPCD\I386\Update\ folder and then add this line under [SetupHotfixesToRun] insvcpack.inf:

    [SetupHotfixesToRun]WMP9_MM2_ENU.exe

    Sponsored L inks

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

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

    http://unattended.msfn.org/files/WMP9_MM2_ENU.exehttp://unattended.msfn.org/files/WMP9_MM2_ENU.exe
  • 7/31/2019 Making an Unattened Windows Xp CD

    48/97

    Mem ber Pages and Tutor ia ls c rea ted by MSFN's mem bers

    This site - Creating an Unatt ended Windows XP CDwas built in mind that it covers the foundations and basics of anUnattended XP CD. This is why you won't find any of the more complex advanced features of an Unattended CD on here.

    This is why we have member pages! Dedicated members of MSFN have created various methods of doing different thingsso you can improve your CD further, so be sure to check them out for enhancements!

    gosh .ms fnhos t ing .com - b y g o s h

    Home of the popular "Reducing Size Of Source" guide to slim down your Windows XP CD! gosh is MSFN's resident file-hacker and his guides cover an assortment of references on INF files and how you can modify the way Windows XP Setupruns. A hotfix slipstream by gosh is also in the works.

    greenmach ine .ms fnhos t ing .com - by GreenMach ine

    GreenMachine has written up several articles on how you can package files with IExpress, a hotfix installation methodscompared benchmark, and his own XP CD Creator guide to maintain an updated CD of slipstreamed hotfix updates.

    Mant ra So f tw are Aus t ra l i a - by RaveRod

    RaveRod has written up a Hotfix Slipstream Guide for your Windows XP installation CD which allows you to slipstreamWindows hotfixes into your Windows XP installation CD. One of his other guides tells you how to Disable System File

    Protection before Windows Setup starts. This allows you to delete files and folders during setup or straight after setup hascompleted.

    Mu l t i boo t DVD Gu ide - b y f l y a k i t e

    It's nice to have an unattended CD that will install all of your favorite programs, registry tweaks, and hotfixes all while yousit on the couch eating pizza and watching Futurama right? But, what if you decide you want to install Windows 98 andWindows XP on your computer, and you don't want to have to carry around multiple CDs? That's where this guide comes inhandy.

    UpdateXP - b y t e c h t y p e

    This tool is designed to automatically install your hotfixes without having to create batch scripts for them. All you have todo is dump specific hotfixes files in seperate folders that UpdateXP will automatically read, and then runs the correctswitches on them!

    Wind ow s XP SP1 in 185MB - by jdeboeck

    MSFN's Unattended XP CD - Windows XP Powertoys

    http://gosh.msfnhosting.com/http://greenmachine.msfnhosting.com/http://www.mantrasoftware.net/http://flyakite.msfnhosting.com/http://techtype.msfnhosting.com/http://jdeboeck.msfnhosting.com/http://jdeboeck.msfnhosting.com/http://techtype.msfnhosting.com/http://flyakite.msfnhosting.com/http://www.mantrasoftware.net/http://greenmachine.msfnhosting.com/http://gosh.msfnhosting.com/
  • 7/31/2019 Making an Unattened Windows Xp CD

    49/97

    W in d o w s XP Po w e r t o y s

    Download: Po w e r t o y s f o r W i n d o w s X P W e b s it e | T w e a k U I 2 . 1 0 .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 PowertoyECHO Please wait...start /wait %systemdrive%\install\PowerToys\TweakUI.msi /qbECHO.ECHO Installing Task Switcher PowertoyECHO Please wait...start /wait %systemdrive%\install\PowerToys\TaskswitchPowertoySetup.exe /s /v/qn

    All other powertoys support the /s /v/qn switch.

    Sponsored L inks

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

    MSFN's Unattended XP CD - Frequently Asked Questions

    http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asphttp://unattended.msfn.org/files/TweakUI.ziphttp://unattended.msfn.org/files/TweakUI.ziphttp://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp
  • 7/31/2019 Making an Unattened Windows Xp CD

    50/97

    Frequ ent ly Asked Quest ion s

    Q: I'm worried that the installation of my Pre-SP2 hotfixes may have clashed with older/newer files when I ran the hotfixbatch, how can I verify that the hotfixes have been installed correctly?

    A: Use a Microsoft command-line utility tool, known as QFECheck to verify that each hotfix is installed correctly. You candownload QFECheck and read about it at the Microso f t Know ledge Base Q2827 84 .

    - - - - -

    Q: I don't have enough space to burn Windows XP with all the extras, what should I do?

    A: See th is pag e

    - - - - -

    Q: How do I open and edit winnt.sif and *.cmd files?

    A: Open Notepad. Either drag the file to the Notepad window, or use File > Open, change Files of Type to All Files, thenbrowse to the file you want to edit. You may want to associate .sif and .cmd files with Notepad to save time.

    - - - - -

    Q: Are files and folder names case-sensitive?

    A: No. :-) (Some switches are case-sensitive though)

    - - - - -

    Q: None of the files and folders I put in \$OEM$\$1\ copied over during install, have I missed something out?

    A: You will need to change "OemPreinstall=No" to "OemPreinstall=Yes" (without quotes) in the winnt.sif file.

    Sponsored L inks

    MSFN's Unattended XP CD - Space Saving Tips

    http://download.microsoft.com/download/whistler/Patch/Q282784/WXP/EN-US/Q282784_WXP_SP1_x86_ENU.exehttp://support.microsoft.com/?kbid=282784http://support.microsoft.com/?kbid=282784http://download.microsoft.com/download/whistler/Patch/Q282784/WXP/EN-US/Q282784_WXP_SP1_x86_ENU.exe
  • 7/31/2019 Making an Unattened Windows Xp CD

    51/97

    Space Savin g Tips

    Fancy freeing up about 159 MB of space by deleting un-needed folders? First of all, copy the contents of your Windows XPCD to C:\XPCD\ if you haven't done so already.

    Folders considered safe to delete in C:\XPCD\ are:

    DOCS, VALUEADD, and SUPPORT. This will free up 22.3 MB

    Let's go in further by browsing to the C:\XPCD\i386\ directory. If you don't plan to use this CD to upgrade from a previousOS, you can delete the following folders:

    W I N 9 X M I G, WIN9XUPG and WI NNTUPG. This will free up 37.6 MB

    If you have a localised language version of Windows XP in your own language, then you probably can also delete:

    LANG. This will free up approx. 99 MB (This may vary)

    If you are installing applications from the $OEM$ distribution folders, then you can run a search on your $OEM$ folders forany i ns tms ia .exe and i n s t m s i w . e x e files. Delete any you find as you won't need them for Windows XP, because italready has an up-to-date version of Windows Installer 2.0.

    A d d i t i o n al Li n k s

    j d eboeck ' s Gu id e t o W in d ow s XP sl im m ed d ow n t o 1 8 5 MB

    gosh ' s Guide t o Reducing S ize o f Sour ce

    Sponsored L inks

    MSFN's Unattended XP CD - Getting Help

    http://jdeboeck.msfnhosting.com/http://gosh.msfnhosting.com/part1.htmhttp://gosh.msfnhosting.com/part1.htmhttp://jdeboeck.msfnhosting.com/
  • 7/31/2019 Making an Unattened Windows Xp CD

    52/97

    Get t ing He lp

    Having trouble doing something or need help & advice on something in particular that's not answered in this guide? Thenyou can ask in the MSFN Forums, in the U n a t t e n d e d W i n d o w ssection. It will only take you 30 secs to s ign up !

    Links: MSFN Forum s | Sign u p

    Many new members have contributed their own code and examples in the forums, so its worth checking out if you'relooking for something that isn't covered in this guide!

    Sponsored L inks

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

    MSFN's Unattended XP CD - Using Modified Files

    http://www.msfn.org/board/index.php?c=9http://www.msfn.org/board/index.php?s=0&act=Reg&CODE=00http://www.msfn.org/boardhttp://www.msfn.org/board/index.php?s=0&act=Reg&CODE=00http://www.msfn.org/board/index.php?s=0&act=Reg&CODE=00http://www.msfn.org/boardhttp://www.msfn.org/board/index.php?s=0&act=Reg&CODE=00http://www.msfn.org/board/index.php?c=9
  • 7/31/2019 Making an Unattened Windows Xp CD

    53/97

    Using Modi f ied F i les

    There are certain files 'customizers' like to replace on Windows XP - modified versions such as UXTheme.dll, Shell32.dll andmsgina.dll to improve the appearance of Windows XP.

    Since UXTheme.dll is the most popular file hack to allow unsigned Visual Styles to be used on Windows XP, we'll show youhow you can replace UXTheme.dll in the I386 directory with a modified version without Windows XP Setup complainingabout it ;-)

    Note: The method outlined here can also be used for other modified files.

    UXTheme.d l l

    If you haven't got a copy of Vorte[x]'s UXTheme.dll file for Windows XP SP1, you can download it h e r e.

    Download: Modi fy PE 0.81

    Place both ModifyPE.exe and uxtheme.dll in the same directory. Open up Command Prompt and browse to the directorycontaining the two files. Run:

    modifyPE.exe ux theme.dll -c

    then...makecab uxtheme.dll

    MSFN's Unattended XP CD - Bypassing Windows File Protection

    http://unattended.msfn.org/files/uxtheme_xpsp1.ziphttp://unattended.msfn.org/files/modpe081.ziphttp://unattended.msfn.org/files/modpe081.ziphttp://unattended.msfn.org/files/uxtheme_xpsp1.zip
  • 7/31/2019 Making an Unattened Windows Xp CD

    54/97

    Bypass ing W indow s Fi le P ro tect ion

    Windows File Protection can be very unpredictable sometimes during an unattended run, prompting you with a dialogwindow which would appear after logging on if you've replaced files. There are the unfortunate few who suffer from this,

    but we'll show you how you can get around this!

    Us ing a m od i f i ed s f c_os .d l l f i l e

    I would strongly advise against using this method as your system files will be vulnerable to viruses that will attempt tooverwrite 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: SFCSet t i n g= f f f f f f 9 d which disables itcompletely. Below, you can download the hex-edited sfc_os.dll file, and it also has its CRC header modified with Mod i f yPE

    as well to allow Setup to copy the file:

    Download: SFC_OS.DL_ f or Wi nd ow s XP SP1

    Download: SFC_OS.DL_ for Win dow s XP Non- SP1

    Extract the zip and copy sfc_os.dl_ to the i386 directory at C:\XPCD\i386\ and overwrite when prompted.

    Ed i t i ng the Reg is t r y H ive Fi l e

    Follow these instructions in order to place the SFCSet t i n g= f f f f f f 9d key into the registry:

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

    http://unattended.msfn.org/files/sfc_os_for_xp_sp1.ziphttp://unattended.msfn.org/files/sfc_os_for_xp_nonsp1.ziphttp://unattended.msfn.org/files/sfc_os_for_xp_nonsp1.ziphttp://unattended.msfn.org/files/sfc_os_for_xp_sp1.zip
  • 7/31/2019 Making an Unattened Windows Xp CD

    55/97

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

    MSFN's Unattended XP CD - OEM Information & Logo

  • 7/31/2019 Making an Unattened Windows Xp CD

    56/97

    OEM I n f o r m a t i o n & Lo g o

    You can import your customized OEM Information and Logo unattended, we'll show you how in this guide.

    To do this, you need to create 2 files - o e m i n f o . i n i and o e m l o g o . b m p

    o e m i n f o .i n i

    Open Notepad and Copy and Paste the following example, then edit it accordingly:

    Save it as o e m i n f o . i n i

    o e m l o go .b m p

    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 o e m l o g o . b m p . Its a good idea to keep it transparent so it blends into the colour of the System Propertieswindow!

    T es t i n g y o u r O EM I n f o r m a t i o n & L o g o

    Copy both files into your Windows System32 Folder (usually C:\Windows\System32\) and open up your System Propertiesbox to see the changes. Edit your files again until you are happy with it.

    I m p o r t i n g y o u r OEM I n f o r m a t i o n & Lo g o Au t o m a t i c al l y

    We can use the $OEM$ Distribution folders to do this. Create a sub-folder called $ $ if one doesn't exist already, then

    [General]Manufacturer=MSFN Unattended XP CDModel=[OEMSpecific]SubModel=SerialNo=OEM1=OEM2=[Support Information]Line1=Support Contact: [email protected]

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    57/97

    I m p o r t i n g D ia l - Up Se t t i n g s

    This one is pretty easy to accomplish, you can simply restore your Dial-Up Phonebook file by making use of the $OEM$distribution folders which you already have learnt from this site. This guide only applies for 56K and ADSL users:

    Simply create the following directory stucture shown below:C:\XPCD\$OEM$\$Docs\All Users\Application Data\Microsoft\Network\Connections\Pbk

    Then browse to:%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk

    You may want to copy & paste the above path into the Start > Run box because App l i cat ion Da ta is a hidden directory.

    Once you're there, copy out your r asphone .pbk file and paste it into:C:\XPCD\$OEM$\$Docs\All Users\Application Data\Microsoft\Network\Connections\Pbk

    During Windows XP Setup, rasphone.pbk will be copied over automatically. Once Setup has finished and proceeded tologon, you will find that your Dial-Up settings are in Network Connections :-)

    N o t e: Rasphone.pbk does not store the username and password for dialling up (most likely for security reasons), so you'llneed to specify it manually once you've logged on.

    Thanks to Igor from the MSFN forums for submitt ing this tip!

    Sponsored L inks

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

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    58/97

    Ad-Aw are 6 Free Vers ion

    Copy the Ad-Aware setup executableto C:\XPCD\$OEM$\$1\install\Applications\AdAware\

    Add these lines to your batch file:

    ECHO.ECHO Installing Lavasoft Ad-Aware 6 Build 181ECHO Please wait...start /wait %systemdrive%\install\Applications\AdAware\aaw6181.exe /s

    When silently installing A d - Aw a r e Pl u s / P r o, it will prompt you for a password, I haven't found a way round this, but afterinserting your registration password it will continue to silently install.

    Sponsored L inks

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

    MSFN's Unattended XP CD - Adobe Reader 6

  • 7/31/2019 Making an Unattened Windows Xp CD

    59/97

    Adobe Reader 6

    Download: Adobe Reader 6 Bas ic or Adobe Reader 6 Fu l l

    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 6ECHO Please wait...start /wait %systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_enu_basic.exe -p"-s /v\"/qn\""

    Sponsored L inks

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

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

    http://ardownload.adobe.com/pub/adobe/reader/win/6.x/6.0/enu/AdbeRdr60_enu.exehttp://ardownload.adobe.com/pub/adobe/reader/win/6.x/6.0/enu/AdbeRdr60_enu_full.exehttp://ardownload.adobe.com/pub/adobe/reader/win/6.x/6.0/enu/AdbeRdr60_enu_full.exehttp://ardownload.adobe.com/pub/adobe/reader/win/6.x/6.0/enu/AdbeRdr60_enu.exe
  • 7/31/2019 Making an Unattened Windows Xp CD

    60/97

    AI M (AOL I ns tan t Messenger )

    Download: AI M

    Copy I n s t a l l_ A I M .e x e to C:\XPCD\$OEM$\$1\install\Applications\AIM\

    Add these lines to your batch file:

    ECHO.ECHO Installing AIM 5.2ECHO Please wait...start /wait %systemdrive%\install\Applications\AIM\Install_AIM.exe /s

    Sponsored L inks

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

    MSFN's Unattended XP CD - CDex

    http://aim.aol.com/http://aim.aol.com/
  • 7/31/2019 Making an Unattened Windows Xp CD

    61/97

    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.50ECHO Please wait...start /wait %systemdrive%\install\Applications\CDex\cdex_150.exe /S

    Further switches can be found at the N S I S page.

    Sponsored L inks

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

    MSFN's Unattended XP CD - Nullsoft SuperPiMP Install System (NSIS)

    http://cdexos.sourceforge.net/downloads.phphttp://cdexos.sourceforge.net/downloads.php
  • 7/31/2019 Making an Unattened Windows Xp CD

    62/97

    Nu l l so f t SuperPiMP I ns ta l l Sys tem ( NSI S)

    Applications packaged with NSIS supports the /S switch for a silent installation (the 'S' is case-sensitive)

    Setup.exe /S

    You can also use the /D switch to specify a destination drive/directory to install the files into:

    Setup.exe /S /D=E:\Software\CDex

    Software such as Winamp and CDex show a confirmation that install was successful at the end (CDex), or an "end-of-install" screen where you set file associations and settings (Winamp). I haven't found a way to bypass this yet, but it

    shouldn't affect the rest of the batch commands in any way.

    H o w d o I f i n d o u t i f a s e t u p p a c k a g e i s m a d e b y N SI S?

    Many NSIS packaged installers show the familiar small window at the center of your screen, such as Winamp and CDex:

    click to enlarge

    Sponsored L inks

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    63/97

    MSFN's Unattended XP CD - Diskeeper

  • 7/31/2019 Making an Unattened Windows Xp CD

    64/97

    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.0ECHO Please wait...start /wait %systemdrive%\install\Applications\diskeeper\Setup.exe /s /v/qn

    click to enlarge

    Sponsored L inks

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    65/97

    http://unattended.msfn.org/app images/diskeeper command.gif08/07/2004 16:56:09 MSFN's Unattended XP CD - Easy CD-DA Extractor 6

  • 7/31/2019 Making an Unattened Windows Xp CD

    66/97

    Easy CD-DA Ext ract or 6

    Download: Easy CD-DA Ext r actor 6

    Copy the downloaded file to: C:\XPCD\$OEM$\$1\install\Applications\easycdda\

    If you are a registered user, you can also silently register this application. Copy and paste into Notepad and save asregister.reg:

    Windows Registry Editor Version 5.00

    [ HKEY_CURRENT_USER\Sof tw are\ Poikosof t\ Easy CD-DA Ext ract or 6]"ba8" = "YourEm ailAddress""ba9"= "YourSerialNumber"

    Add these lines to your batch file:

    ECHO.ECHO Installing Easy CD-DA Extractor 6ECHO Please wait...

    start /wait %systemdrive%\install\Applications\easycdda\ezcddax6.exe /S /WECHO Registering Easy CD-DA Extractor...REGEDIT /S %systemdrive%\install\Applications\easycdda\register.reg

    Sponsored L inks

    MSFN's Unattended XP CD - eMule

    http://www.poikosoft.com/easycdda.htmlhttp://www.poikosoft.com/easycdda.html
  • 7/31/2019 Making an Unattened Windows Xp CD

    67/97

    eMule

    Download: eMu le (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

    MSFN's Unattended XP CD - Flashget

    http://www.emule-project.net/home/perl/general.cgi?l=1&rm=downloadhttp://www.emule-project.net/home/perl/general.cgi?l=1&rm=download
  • 7/31/2019 Making an Unattened Windows Xp CD

    68/97

    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 asregister.reg:

    Windows Registry Editor Version 5.00

    [ HKEY_CURRENT_USER\Sof tw are\ JetCar\ JetCar\ General]"RegName"= "I nsert Email Address""RegPass"= "I nsert Serial Key"

    "RegDisp"= "I nsert your Name"

    Add these lines to your batch file:

    ECHO.ECHO Installing Flashget 1.4ECHO Please wait...start /wait %systemdrive%\install\Applications\flashget\fgf140.exe /SECHO.

    ECHO Registering Flashget 1.4...REGEDIT /S %systemdrive%\install\Applications\flashget\register.reg

    Sponsored L inks

    MSFN's Unattended XP CD - Inno Setup

    http://www.amazesoft.com/http://www.amazesoft.com/
  • 7/31/2019 Making an Unattened Windows Xp CD

    69/97

    I n n o Se t u p

    Applications packaged with Inno Setup supports the /SILENT and /VERYSILENT switches (I'm not entirely sure on thedifference between the two, as they appear to do the same thing)

    setup.exe /VERYSILENT

    You might get this dialog window asking if you want to continue installation:

    We can simply get around that using the following switch instead:

    setup.exe /VERYSILENT /SP-

    Some Inno Setup installers will attempt to open the program when setup completes, ISOBuster is one example of doingthis. Again, we can simply overcome this by using an in-built utility in Windows XP known as Taskk i l l.

    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.4ECHO Please wait...start /wait %systemdrive%\install\Applications\ISOBuster\IsoBuster14.exe /VERYSILENT /SP-

    ECHO.ECHO Killing ISOBuster.exe processtaskkill.exe /F /IM isobuster.exeECHO.

    H o w d o I f i n d o u t i f a s et u p p a c k a g e is m a d e b y I n n o Se t u p ?

    The first window that appears is usually the one shown above on this page, followed by the window shown below (click on

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

  • 7/31/2019 Making an Unattened Windows Xp CD

    70/97

    MSFN's Unattended XP CD - ISOBuster

  • 7/31/2019 Making an Unattened Windows Xp CD

    71/97

    I SOBuster

    Download: I SOBus te r

    Copy the downloaded fileto C:\XPCD\$OEM$\$1\install\Applications\ISOBuster\

    Add these lines to your batch file:

    ECHO.ECHO Installing ISOBuster 1.4ECHO Please wait...start /wait %systemdrive%\install\Applications\ISOBuster\IsoBuster14.exe /VERYSILENT /