home




Customise and Deploy Windows 7 pre-configured and automatically (unattended installs) with the Windows Automated Installation Kit


In this section, you will learn how to customise and deploy Windows 7 so you, the OEM (Original Equipment Manufacturer) or the IT Administrator can deploy Windows 7 that meets your organisation's needs.

Want to build a Windows 7 Image which is pre-configured with the Windows components (such as the Windows Fax service) that you need? Do you want to include other browsers, brand applications, configure how setup will install on your workstations?

Whatever your needs are, read on to learn more from Guru Guy who will teach you step-by-step customised deployment of Windows 7!



Step-by-Step

Windows Automated Installation Kit

First, you need to download the Windows 7 Automated Installation Kit (which also customises installs for Windows Server 2008 R2).

  1. Once downloaded and you have burned the ISO to DVD, run CDSetup.exe and launch the setup of the AIK (Automated Installation Kit) from the autorun.
  2. Windows 7 Automated Installation Kit Installing
  3. Once Installed, load the "Windows System Image Manager" from Start->All Programs->Microsoft Windows AIK.
  4. Insert your Windows 7 DVD (e.g. Windows 7 Enterprise or Windows 7 Professional) and navigate to the DVDROM Drive\Sources\ folder and copy the file "Install.wim" to you hard disk (e.g. C:\Windows7)
  5. Go to File -> Select Windows Image and select the file "Install.wim" located on your C:\Windows7 folder. (It needs to be on your hard disk as the file need write access!)
    Select Windows 7 Edition Image in WAIK
    In this example, Guru Guy will customise Windows 7 Professional.
  6. On the File menu, click New Answer File. You now get a list of options in the "Answer File" pane.
  7. In the "Windows Image" Pane on the bottom left hand side, expand "Components";
  8. In this step, we need to add a number of Windows System Components to the answer file, by right-clicking on the component and selecting the appropriate installation pass/phase (the list below tells you which pass to add them to). Passes you cannot add them to are grayed out. You can optionally add Internet Explorer, in Microsoft-Windows-IE-InternetExplorer to the pass "specialize".
    Options to Add:
    Component Pass
    Microsoft-Windows-Deployment\Reseal oobeSystem
    Microsoft-Windows-International-Core-WinPE\SetupUILanguage windowsPE
    Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition windowsPE
    Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition windowsPE
    Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition * windowsPE
    Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition * windowsPE
    Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo windowsPE
    Microsoft-Windows-Setup\UserData windowsPE
    Microsoft-Windows-Shell-Setup\OOBE oobeSystem
    Microsoft-Windows-Shell-Setup\OEMInformation specialize
    Microsoft-Windows-Shell-Setup\AutoLogon

    auditSystem


  9. * Microsoft's recommendation uses a two-partition configuration. You do this by adding a second CreatePartition and a second ModifyPartition component to your answer file by right-clicking the component in the Windows SIM Windows Image pane, and then by selecting the appropriate configuration pass. 

    Windows 7 AIK - Selecting Components to Install Pass

  10. We now need to define all of these components as to how we want setup to deal with them. These settings vary from defining setup languages, to customising the Hard Disk Partition information.
    You need to define your settings from the table below. Be careful not to miss any! See the screenshot below for examples of how it should look like...

    Component Value

    Microsoft-Windows-International-Core-WinPE

    InputLocaleen-GB
    SystemLocale = en-GB
    UILanguage
    en-US
    UILanguageFallback = en-GB
    UserLocale
    en-GB
    (or it can be another language)

    Microsoft-Windows-International-Core-WinPE\SetupUILanguage

    UILanguageen-US 
    WillShowUI = OnError

    Microsoft-Windows-Setup\DiskConfiguration

    WillShowUI = OnError

    Microsoft-Windows-Setup\DiskConfiguration\Disk

    DiskID = 0
    WillWipeDisk = true

    Microsoft-Windows-Setup\DiskConfiguration\Disk
    \CreatePartitions\CreatePartition

    Order = 1
    Size = 200
    Type = Primary

    Microsoft-Windows-Setup\DiskConfiguration\Disk
    \CreatePartitions\CreatePartition

    Extend = true
    Order = 2
    Type = Primary

    Microsoft-Windows-Setup\DiskConfiguration\Disk\
    ModifyPartitions\ModifyPartition

    Active = true
    Format = NTFS
    Label = System
    Order = 1
    PartitionID = 1

    Microsoft-Windows-Setup\DiskConfiguration\Disk\
    ModifyPartitions\ModifyPartition

    Format = NTFS
    Label = Windows
    Order = 2
    PartitionID = 2

    Microsoft-Windows-Setup\ImageInstall\OSImage

    InstallToAvailablePartition = false
    WillShowUI = OnError

    Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo

    DiskID = 0
    PartitionID = 2

    Microsoft-Windows-Setup\UserData

    AcceptEula = true

    Microsoft-Windows-Setup\UserData\ProductKey

    Key = <product key>
    WillShowUI = OnError

    Optional: Microsoft-Windows-IE-InternetExplorer

    Home_Page = <Company Home Page>

    Microsoft-Windows-Deployment\Reseal

    ForceShutdownNow = false
    Mode = Audit

    Microsoft-Windows-Shell-Setup\OOBE

    HideEULAPage = true
    ProtectYourPC = 3

    Microsoft-Windows-Shell-Setup\OEMInformation

    Manufacturer = <company name>
    HelpCustomized = false
    SupportPhone = <sup number>
    SupportURL = <support URL>
    SupportHours = <support hours>

    Microsoft-Windows-Shell-Setup\AutoLogon

    Enabled = true
    LogonCount = 5
    Username = Administrator



    This screenshot is an example of Guru Guy configuring the CreatePartition and ModifyPartition values:
    Windows 7 AIK - Defining Disk Partitions
    These settings outline a basic unattended installation in which no user input is required during Windows Setup. When the installation is complete, the computer will reboot to audit mode. Audit mode is a stage of Windows Setup that enables you to quickly boot to the desktop, install additional applications and device drivers, and test the installation. Windows Welcome does not run in audit mode, but it will run the next time the computer restarts, once you have run the sysprep command with the /oobe option. Windows Welcome, also called Machine OOBE (out-of-box experience), prompts the end user to read the Microsoft Software License Terms and to configure the computer.
  11. Now go to Tools, and then click Validate Answer File; Keep an eye on the bottom right-hand-side "Messages" section. If no messages appear under "validation" then your install answer file is correct!
  12. Click on File -> Save Answer File. Save the answer file as Autounattend.xml.
  13. Copy the Autounattend.xml file to the root directory of a USB flash drive
  14. Turn on the your test computer and insert the Windows 7 product DVD and have the USB Stick containing the answer file you created inserted into the Primary USB port. (On a Desktop this is any of the back USB Ports, on a laptop usually any will do). 
  15. Voila - Windows 7 Setup should now be reading the answer file and installing itself based on your answer-file settings!
If you wish to burn your customised Windows 7 Setup Installation with the Answer file to DVD, read Guru Guy's Guide to creating a custom Windows 7 Installation DVD.

Anything missing? Contact Guru Guy and get your comments/feedback and internet community tips/suggestions incorporated into this article!

For more information on customising the Unattended Setup File (to which there are dozens of components with customisable features), visit the Microsoft documentation at http://technet.microsoft.com/en-us/library/cc766052(WS.10).aspx

Common Windows 7 Unattended Installation Setup Errors

  • Q> When you launch Windows 7 Setup, you are still presented with EULA and welcome instead of setup being automated.
    A> Either you have a problem with the Autounattend.xml (Make sure it is called this! Unattend.xml is post-disk partitioning for setup!) like the installer language specified in your Autounattend.xml is wrong/not supported or it cannot be found. It must be placed on the root of a USB Stick, Floppy Disk, or the root of the DVD Install media (not in sources folder!);
  • Q> I keep getting an Installation was canceled error "Windows could not apply unattend settings during pass [offlineServicing]", as pictured below:
    Windows could not apply unattend settings during pass [offlineServicing]
    A> This occurs if you have added the "Windows Foundation" or "Windows LanguagePack" packages which are configured wrongly such as missing vital system components etc. Remove these configurations from your Autounattend.xml and place them in Unattend.xml which is applied after WinPE install phase.
  • Q> I get during Windows 7 Setup Installation "Windows cannot be installed in the selected partition. Installation requires at least 5722MB of free space. To Install Windows, free additional space and restart the installation". This percuiliar message appears mid-way through the Installation Setup stage "Expanding files".
    Windows 7 Setup Failure: Installation requires at least 5722MB
    A> This is particularly annoying since you probably do have over 5.7GB of free space. I found this happened inside Virtual Machines with C Partitions of even 8GB in size, which should be more than enough to accomodate the 200MB system partition and the Windows partition. However, the answer is easy, make sure you have a hard disk partition/size of at least 10GB or more - then it shall work fine. I know, strange Windows 7 Setup does not honour 8GB in size. Perhaps they will fix this in future service packs.

Learn more about:



Like what you've read? Was this of help? Contact Guru Guy to let him have your feedback!

Now why not visit Guru Guy's Vintage Computer Webshop to grab classic Vintage Computer Server Software!

 
  Copyright © Guru Guy 2009. All Rights Reserved. SITEMAP | DISCLAIMER