Logo
Lose Weight
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows Vista

Automating Installation : Using Windows SIM (part 2) - Creating an Answer File, Adding Files to Answer Files

9/23/2012 5:49:23 PM

Creating an Answer File

You can use Windows SIM to create a new unattended setup answer file (Figure 4). The process of creating an answer file involves selecting an image, creating a catalog file to index image components (the catalog describes the available settings), selecting and configuring settings for these components, and saving the answer file in a location where it will be detected during setup.

Figure 4. Using Windows SIM to create an answer file.

Note

To correctly identify components in a Windows image, Windows SIM must use a catalog file. A catalog (.clg) file is a binary file that describes the settings and packages in a Windows image. Windows SIM automatically creates catalog files when you open an image. You can also manually create a catalog by clicking Create Catalog on the Tools menu in Windows SIM.


To create a new answer file
1.
Start Windows SIM. Click Start, point to All Programs, point to Microsoft Windows AIK, and then click Windows System Image Manager.

2.
Copy Install.wim from the product DVD to the local hard disk if you haven’t already copied the product media to a local folder.

3.
On the File menu, click Select Windows Image.

4.
In the Select A Windows Image dialog box, browse to the folder containing the Install.wim file, and then open the file.

5.
In the Select An Image dialog box, select the edition of Windows Vista that you intend to deploy, and then click OK.

6.
Click OK to create a new catalog file when prompted.

7.
On the File menu, click New Answer File.

8.
Choose Components in the Windows Image pane and choose settings to add in the Answer File pane. To add a setting to the answer file, right-click a setting in a component and choose a configuration pass from the menu.

9.
Verify your settings by clicking Validate Answer File on the Tools menu.

10.
Save the answer file by clicking File and then clicking Save Answer File. Save the answer file in your distribution share using a descriptive name.

How It Works: Where Do Answer Files Go?

Windows Setup looks in a number of places for an answer file named Autounattend.xml when starting each configuration pass. Table 2 describes each location in which you can put Autounattend.xml for Windows Setup to automatically find and use it during installation.

Table 2. Answer File Locations
OrderLocationDescription
1In the registry value HKLM\System\Setup\UnattendFile.Specifies the location of an answer file. The answer file is not required to be named Unattend.xml.
2%WINDIR%\panther\unattendThe name of the answer file must be Unattend.xml or Autounattend.xml.
3%WINDIR%\pantherWindows Setup caches answer files to this location. Do not overwrite any files found here.
4Removable read/write media in order of drive letter, at the root of the drive.The name of the answer file must be Unattend.xml or Autounattend.xml, and the answer file must be located at the root of the drive.
5Removable read-only media in order of drive letter, at the root of the drive.Removable read-only media in order of drive letter, at the root of the drive The name of the answer file must be Unattend.xml or Autounattend.xml, and must be located at the root of the drive.
6During windowsPE and offlineServicing passes in the Sources folder of the distribution media or share. For all other passes, Windows Setup looks in %WINDIR%\system32\sysprep.In the windowsPE and offlineServicing passes, the name of the answer file must be Autounattend.xml. For all other configuration passes, the file name must be Unattend.xml.
7%SYSTEMDRIVE%The answer file name must be Unattend.xml or Autounattend.xml.


To edit an existing answer file
1.
In Windows SIM, click Select Windows Image on the File menu.

2.
In the Select A Windows Image dialog box, browse to the folder containing the Install.wim image file, and then open it.

3.
In the Select An Image dialog box, choose the appropriate edition of Windows Vista, and then click OK.

4.
On the File menu, click Open Answer File.

Adding Files to Answer Files

Microsoft provides updates as packages that you can import into the installation project, as shown in Figure 5. You can also use Windows SIM to add device drivers.

Figure 5. Adding packages to an answer file.

In addition to packages, you can add device drivers to an answer file and specify a device driver path. This device driver path processes additional out-of-box device drivers during Windows Setup. You can copy out-of-box device drivers to a Windows image during the windowsPE configuration pass. In this configuration pass, you can add boot-critical drivers to a Windows image before that image is installed.

Note

You can also add additional drivers to the Windows installation during the auditSystem configuration pass.


When you select a driver path, you select a folder that contains one or more .inf-type device drivers. The folder path is added to the answer file and, during an unattended installation, is referenced to find all drivers in the path and install them. You can only use this procedure to add .inf drivers to a Windows image. Drivers packaged as .exe files or other file types must be installed on a running Windows operating system.

To add a package to an answer file by using the Insert menu
1.
Open Windows SIM.

2.
Open an image, distribution share, and answer file.

3.
On the Insert menu, click Package(s) to open the Select Package(s) To Insert dialog box.

4.
Open the folder containing the package to add, and then open the package file. Package files have the .cab file extension.

5.
In the Properties pane, under Settings, choose Install, Remove, Configure, or Stage.

To add a device driver path to an answer file
1.
Open Windows SIM.

2.
Open an image, distribution share, and answer file.

3.
On the Insert menu, select Driver Path.

4.
Choose the configuration pass in which you install the driver. This can be in the windowsPE pass, offlineServicing, or the auditSystem pass. By adding device driver paths to the windowsPE or offlineServicing configuration passes, you can add out-of-box device drivers to the Windows image before the system starts. This enables you to add boot-critical device drivers to a Windows image. Adding drivers to auditSystem enables you to add additional out-of-box drivers during audit mode. This enables you to maintain a simple Windows image, and then add only the drivers that are required for a specific hardware configuration.

Note

The device driver path you add to the answer file should be relative to the destination computer. If the destination computer must access the device drivers from a network share, for example, then the path should be the UNC path to the network share containing the device drivers.

5.
In the Select a Folder That Contains Driver Files dialog box, select the driver path to add to the answer file, and then click OK.

The driver path selected is added to the answer file under the configuration pass that you selected. Depending on the configuration pass that you selected, the driver path is included as a list item to one of the following components:

  • Microsoft-Windows-PnpCustomizationsWinPE for windowsPE

  • Microsoft-Windows-PnpCustomizationsWinPE for offlineServicing

  • Microsoft-Windows-PnpCustomizationsNonWinPE for auditSystem

Note

You can also drag drivers from an Out-of-Box Drivers folder in the Distribution Share pane to the Answer File pane and drop it in either the WinPE or auditSystem pass, or right-click to add it.

Other -----------------
- Dreamweaver CS5 : Working with Multimedia and Online Tools - Linking or Embedding Sound
- Dreamweaver CS5 : Working with Multimedia and Online Tools - Inserting a Flash Video
- Adobe Photoshop CS5 : The Essential Adjustments : Exposure
- Adobe Photoshop CS5 : Maximizing Filters - Getting the Best Results - Fade and Blend
- Security in Windows Vista : Architectural and Internal Windows Vista Security Improvements (part 2)
- Security in Windows Vista : Architectural and Internal Windows Vista Security Improvements (part 1)
- Adobe Fireworks CS5 : Extra Credit (part 2) - Stroking rendered text
- Adobe Fireworks CS5 : Extra Credit (part 1) - Applying blending modes for image correction
- Adobe Flash Catalyst CS5 : Grouping and transforming
- Adobe Flash Catalyst CS5 : Binding the Data to the Visual Component
- Adobe After Effects CS5 : Building a 3D object (part 2)
- Adobe After Effects CS5 : Building a 3D object (part 1)
- Creating Basic Windows Images : Deploying Custom Images
- Creating Basic Windows Images : Capturing Custom Images
- Adobe Flash Professional CS5 : Importing Graphics - Importing Photoshop and Illustrator Files
- Adobe Flash Professional CS5 : Importing Graphics - Setting Photoshop Import Preferences
- Adobe InDesign CS5 : Creating and Running Scripts
- Adobe InDesign CS5 : Using Scripts - Exploring VBA
- Dreamweaver CS5 : Standard Server Behaviors (part 6) - Stored procedure/command/callable
- Dreamweaver CS5 : Standard Server Behaviors (part 5) - Dynamic elements
 
 
Most view of day
- Planning and Designing a Public Key Infrastructure : Designing the CA Hierarchy
- Microsoft Sharepoint 2013 : Application Authentication (part 1) - Cloud App Model, OAuth
- Adobe Dreamweaver CS5 : Using Library Items and Server-side Includes (part 1) - Using the Library Assets Panel - Adding a Library item
- System Center Configuration Manager 2007 : Operating System Deployment - Tips and Techniques
- Preparing Windows PE : Exploring Windows PE
- Windows Server 2008 : Promoting and Demoting a Domain Controller - Promoting a DC to an RODC with an Existing Account
- Windows Phone 8 : Configuring Basic Device Settings - Backing Up Your Phone (part 3) - Backing Up Text Messages
- Understanding Network Services and Active Directory Domain Controller Placement for Exchange Server 2013 (part 1)
- Microsoft Content Management Server Development : Validating the HtmlPlaceholderControl (part 1) - Retrieving the Current Value of the HtmlPlaceholderControl
- Microsoft Visio 2010 : Sharing and Publishing Diagrams - Saving Visio-Created Websites on a SharePoint Server
Top 10
- MDT's Client Wizard : Package Properties
- MDT's Client Wizard : Driver Properties
- MDT's Client Wizard : Application Properties
- MDT's Client Wizard : Operating System Properties
- MDT's Client Wizard : Customizing the Deployment Share
- Windows Server 2012 : Software and User Account Control Administration (part 5) - Maintaining application integrity - Configuring run levels
- Windows Server 2012 : Software and User Account Control Administration (part 4) - Maintaining application integrity - Application access tokens
- Windows Server 2012 : Software and User Account Control Administration (part 3) - Mastering User Account Control - Configuring UAC and Admin Approval Mode
- Windows Server 2012 : Software and User Account Control Administration (part 2) - Mastering User Account Control - Elevation, prompts, and the secure desktop
- Windows Server 2012 : Software and User Account Control Administration (part 1) - Software installation essentials
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro