- The MTP Setup Information (.inf) File
- Windows Setup Automation Overview
- Use Setupconfig.ini to install Windows
- What is a setupconfig file?
- How does Windows Setup use Setupconfig.ini?
- Using media/ISO file
- Using Windows Update
- Use an answer file while installing Windows
- Modify an existing installation
- Implicit Answer File Search Order
- Sensitive Data in Answer Files
- Windows Setup Annotates Configuration Passes in an Answer File
- Implicit Answer File Search Examples
- Answer Files Named Autounattend.xml are Automatically Discovered by Windows Setup
- Answer Files are Discovered in Order of Precedence in Predefined Search Paths
- Answer Files Must Include a Valid Configuration Pass
- Additional Resources
The MTP Setup Information (.inf) File
Microsoft provides a set of class drivers to support the Media Transfer Protocol (MTP). If your device supports MTP, you can use one of these drivers. In addition to the class drivers, Microsoft provides a setup information (.inf) file to install a class driver. This file is named WpdMtp.inf.
If your MTP device has unique requirements, create a new setup information (.inf) file that is based on the original version of WpdMtp.inf. (You cannot modify WpdMtp.inf directly.)
The following table describes specific Needs directives that are found in WpdMtp.inf and possible modifications that you can make to the sections that are identified by a given directive.
The entries in the following table can support any of three transports (USB, IP, or Bluetooth). Be aware that each transport requires a unique installation section. Also be aware that the Bluetooth transport is only supported in Windows 7.
Needs directive | Description | |||
---|---|---|---|---|
Needs = WPD.MTP, WINUSB.NT | The WPD.MTP section identifies the driver files that will be copied and registered. The following applies to Windows Vista and Windows Media Player 11. Starting with Windows 7, WinUsb.sys replaces WpdUsb.sys as the lower filter driver for MTP devices that connect to the computer by using USB. The following directive is required for a vendor’s INF to include WinUsb.inf and a specific WinUSB section: | |||
Needs = WPD.MTP.Registration | The WPD.MTP.Registration section accomplishes four tasks:
| |||
Needs = WPD.MTP.Registration.Basic | The WPD.MTP.Registration.Basic section lets you customize tasks 2 and 3 in the previous list. For example, you can set the application compatibility to support Windows Image Acquisition (WIA) by using a value of 0x01 or Windows Media Device Manager (WMDM) by using a value of 0x02. | |||
Needs = WPD.MTP.Services | The WPD.MTP.Services section adds driver services (and default service parameters). This includes WUDF and WPDUSB.sys (for Windows Vista and Windows XP only). | |||
Needs = WPD.MTP.CoInstallers | The WPD.MTP.CoInstallers section identifies the co-installer. (To install an MTP device, a Windows user-mode driver framework (UMDF) co-installer is used.) This section is required for Windows 7, Windows Vista, and Windows Media Player 11. (It was not required for an MTP driver that supported Windows Media Player 10.) | |||
Needs = WPD.MTP.Wdf | The WPD.MTP.Wdf section identifies the Windows user-mode driver framework (UMDF) service and its binary (WPDMTPDR.dll). This section is required for Windows 7, Windows Vista, and Windows Media Player 11. (It was not required for an MTP driver that supported Windows Media Player 10.) Windows Setup Automation OverviewUse Setupconfig.ini to install WindowsWhat is a setupconfig file?Setupconfig is a configuration file that is used to pass a set of flags or parameters to Windows setup.exe. Use this file as an alternative to passing parameters to Windows setup on a command line. This functionality is available in Windows 10, version 1511 and later. IT pros can use the setupconfig file to add parameters to Windows Setup from Windows Update and Windows Server Update Services. The different parameters that can be used with Windows 10 Setup.exe are described in this topic. Setupconfig.ini files can contain single parameters, or parameters and value pairs. Do not include “/” characters, and with parameter and value pairs, include “=” between the two. For example, you create a Setupconfig.ini with the following. Note that the header [SetupConfig] is required. This is equivalent to the following command line: How does Windows Setup use Setupconfig.ini?Using media/ISO fileIf you are running Windows setup from media or an ISO file, you must include the location to the setupconfig file on the command line (“/ConfigFile ”) when running setup.exe. For example: If you include a parameter on the command line and the same parameter in the setupconfig file, the setupconfig file parameter and value has precedence. Using Windows UpdateIf the update is delivered through Windows Update, Windows Setup searches in a default location for a setupconfig file. You can include the setupconfig file here: Use an answer file while installing WindowsYou can automate Windows installation by using an answer file: Use a USB flash drive Use a sample answer file or create your own with Windows System Image Manager (Windows SIM). Save the file as Autounattend.xml on the root of a USB flash drive. On a new PC, put in the Windows product DVD and the USB flash drive, and then boot the PC. When no other answer file is selected, Windows Setup searches for this file. Select an answer file
For sample answer files and a list of settings used to automate installation, see Automate Windows Setup. Modify an existing installationBecause reboots are required during Setup, a copy of the answer file is cached to the %WINDIR%\Panther directory of the Windows installation. You can modify this file to do any of the following: Update system and control panel settings without booting the image. Update an image by preparing the PC to boot to audit mode (see Microsoft-Windows-Deployment\Reseal\Mode). Update the order in which drivers or packages are installed. (Packages with dependencies may require installation in a certain order.) Replace the answer file in an offline image Create a custom answer file in Windows System Image Manager (Windows SIM). Open an elevated command prompt. Mount the Windows image. Modify or replace the file: \Windows\Panther\unattend.xml in the mounted image. NoteВ В The answer file in the image may contain settings that have not yet been processed. If you want these settings to get processed, edit the existing file rather than replacing it. Unmount the image. Test the image by deploying it to a new PC, without specifying an answer file. When Windows Setup runs, it finds and uses this answer file. Implicit Answer File Search OrderWindowsВ Setup searches for answer files at the beginning of each configuration pass, including the initial installation and after applying and booting an image. If an answer file is found, and it contains settings for the given configuration pass, it processes those settings. WindowsВ Setup identifies and logs all available answer files, depending on the search order. The answer file that has the highest precedence is used. The answer file is validated and then cached to the computer. Valid answer files are cached to the $Windows. BT\Sources\Panther directory during the windowsPE and offlineServicing configuration passes. After the Windows installation is extracted to the hard disk, the answer file is cached to %WINDIR%\panther. The following table shows the implicit answer file search order.
|