MSFN Forum: a sample autounattend.xml - working good - MSFN Forum

Jump to content


  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

a sample autounattend.xml - working good install in 8 minutes, only partitioning screen is not automated Rate Topic: -----

#1 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 January 2007 - 03:38 AM

here's a working sample, made for my preferences, shared here for those who might have been having problems with their XML, & so would like to take a look at a confirmed-working sample for reference. After making use of this xml, all you need is your logic.
Once i finished making it, i tried to avoid the WSIM (from WAIK) as much as possible, since WSIM needs .NET 2.0 & is complex & crashy.

Attempted to include as many commonly-used options as possible, with quite a few being setup as default, but the settings are still exposed here so that you can change it to your liking. I've provided a lot of entry points to run custom setups, etc.
This is for Vista Ultimate - the other editions are subsets of it, so you just need to strip out relevant parts, if you're using Vista Business/HomePremium/etc.
note - i've supplied "REMOVED" as the key, you need to replace it with your own.
note2 - updated to remove superfluous tags

 
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
	<servicing>
		<package action="configure">
			<assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.0.6000.16386" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="" />
			<selection name="TabletPCOC" state="true" />
			<selection name="TelnetClient" state="false" />
			<selection name="TelnetServer" state="false" />
			<selection name="Windows-Ultimate-Extras" state="true" />
			<selection name="AxInstallService" state="false" />
			<selection name="FaxServicesUltimate" state="true" />
			<selection name="IIS-WebServerRole" state="false" />
			<selection name="InboxGames" state="true" />
			<selection name="Indexing-Service-Package" state="false" />
			<selection name="Microsoft-Windows-RemovableStorageManagement" state="false" />
			<selection name="XPS-Viewer" state="true" />
			<selection name="Printing-Foundation-Features" state="true" />
			<selection name="SUA" state="false" />
			<selection name="NetFx3" state="true" />
		</package>
	</servicing>
	<settings pass="specialize">
		<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<Help_Page>http://www.google.com</Help_Page>
			<Home_Page>about:blank</Home_Page>
			<FilterLevel>Medium</FilterLevel>
			<BlockPopups>yes</BlockPopups>
			<ShowInformationBar>true</ShowInformationBar>
			<FavoritesDelete>false</FavoritesDelete>
			<IEWelcomeMsg>true</IEWelcomeMsg>
			<PlaySound>true</PlaySound>
		</component>
		<component name="Microsoft-Windows-ehome-reg-inf" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<DisableExpressSetup>false</DisableExpressSetup>
		</component>
		<component name="Microsoft-Windows-RemoteAssistance-Exe" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<fAllowToGetHelp>false</fAllowToGetHelp>
		</component>
		<component name="Microsoft-Windows-Security-Licensing-SLC-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<SkipAutoActivation>true</SkipAutoActivation>
		</component>
		<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<AutoLogon>
				<Username>Administrator</Username>
				<Enabled>true</Enabled>
				<LogonCount>2</LogonCount>
			</AutoLogon>
		<BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
			<Display>
				<ColorDepth>32</ColorDepth>
				<DPI>120</DPI>
				<HorizontalResolution>1024</HorizontalResolution>
				<RefreshRate>75</RefreshRate>
				<VerticalResolution>768</VerticalResolution>
			</Display>
			<Themes>
				<DefaultThemesOff>false</DefaultThemesOff>
			</Themes>
			<WindowsFeatures>
				<ShowInternetExplorer>true</ShowInternetExplorer>
				<ShowMediaCenter>true</ShowMediaCenter>
				<ShowWindowsMail>true</ShowWindowsMail>
				<ShowWindowsMediaPlayer>true</ShowWindowsMediaPlayer>
			</WindowsFeatures>
			<RegisteredOwner>0wner</RegisteredOwner>
			<RegisteredOrganization>0wn Inc.</RegisteredOrganization>
			<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
			<StartPanelOff>false</StartPanelOff>
			<ShowWindowsLive>true</ShowWindowsLive>
			<CopyProfile>true</CopyProfile>
			<ComputerName>Computer</ComputerName>
			<TimeZone>India Standard Time</TimeZone>
		</component>
		<component name="Microsoft-Windows-SQMApi" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<CEIPEnabled>0</CEIPEnabled>
		</component>
		<component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<DisableSR>1</DisableSR>
		</component>
		<component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<fDenyTSConnections>true</fDenyTSConnections>
		</component>
		<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<Identification>
				<JoinWorkgroup>LAN</JoinWorkgroup>
			</Identification>
		</component>
		<component name="Security-Malware-Windows-Defender" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<DisableAntiSpyware>false</DisableAntiSpyware>
		</component>
		<component name="Networking-MPSSVC-Svc" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<FirewallGroups />
			<DomainProfile_EnableFirewall>true</DomainProfile_EnableFirewall>
			<PrivateProfile_EnableFirewall>true</PrivateProfile_EnableFirewall>
			<PublicProfile_EnableFirewall>true</PublicProfile_EnableFirewall>
			<PrivateProfile_DisableNotifications>false</PrivateProfile_DisableNotifications>
		</component>
	</settings>
	<settings pass="oobeSystem">
		<component name="Microsoft-Windows-ehome-reg-inf" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<WorkOffline>false</WorkOffline>
		</component>
		<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<OEMInformation>
				<Logo>%SystemRoot%\120x120x32.bmp</Logo>
				<Manufacturer>Alienware</Manufacturer>
				<Model>top-of-the-line model</Model>
				<SupportURL>http://www.google.com</SupportURL>
			</OEMInformation>
			<OOBE>
				<HideEULAPage>true</HideEULAPage>
				<NetworkLocation>Home</NetworkLocation>
				<ProtectYourPC>3</ProtectYourPC>
				<SkipMachineOOBE>true</SkipMachineOOBE>
				<SkipUserOOBE>true</SkipUserOOBE>
			</OOBE>
			<UserAccounts>
				<LocalAccounts>
					<LocalAccount wcm:action="add">
						<Password>
							<Value>QueCera</Value>
							<PlainText>true</PlainText>
						</Password>
						<Description>the PC doctor!</Description>
						<DisplayName>Vaidh</DisplayName>
						<Group>Administrators</Group>
						<Name>Vaidh</Name>
					</LocalAccount>
					<LocalAccount wcm:action="add">
						<Description>everyday use</Description>
						<DisplayName>Normal Usage</DisplayName>
						<Group>Users</Group>
						<Name>Normal Usage</Name>
					</LocalAccount>
				</LocalAccounts>
			</UserAccounts>
			<VisualEffects>
				<FontSmoothing>Standard</FontSmoothing>
			</VisualEffects>
			<FirstLogonCommands>
				<SynchronousCommand wcm:action="add">
					<CommandLine>%SystemDrive%\install\GUIrunOnce.cmd</CommandLine>
					<Description>customises settings</Description>
					<Order>20</Order>
				</SynchronousCommand>
			</FirstLogonCommands>
		</component>
		<component name="Microsoft-Windows-Sidebar" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<SidebarOnByDefault>false</SidebarOnByDefault>
			<SidebarVisible>false</SidebarVisible>
		</component>
		<component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<InputLocale>0409:00000409</InputLocale>
			<SystemLocale>en-us</SystemLocale>
			<UILanguage>en-us</UILanguage>
			<UserLocale>en-US</UserLocale>
			<UILanguageFallback>en-US</UILanguageFallback>
		</component>
	</settings>
	<settings pass="auditSystem">
		<component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<DriverPaths>
				<PathAndCredentials wcm:keyValue="cd7c395" wcm:action="add">
					<Path>%SystemRoot%\PnPdrvrs</Path>
				</PathAndCredentials>
			</DriverPaths>
		</component>
	</settings>
	<settings pass="generalize">
		<component name="Microsoft-Windows-Security-Licensing-SLC" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<SkipRearm>0</SkipRearm>
		</component>
		<component name="Microsoft-Windows-SharedAccess" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<EnableICS>false</EnableICS>
		</component>
	</settings>
	<settings pass="windowsPE">
		<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<Diagnostics>
				<OptIn>false</OptIn>
			</Diagnostics>
			<DiskConfiguration>
				<WillShowUI>Always</WillShowUI>
			</DiskConfiguration>
			<DynamicUpdate>
				<Enable>false</Enable>
			</DynamicUpdate>
			<UserData>
				<ProductKey>
					<WillShowUI>Never</WillShowUI>
					<Key>REMOVED</Key>
				</ProductKey>
				<AcceptEula>true</AcceptEula>
				<FullName>0wner</FullName>
				<Organization>0wn Inc.</Organization>
			</UserData>
			<ComplianceCheck>
				<DisplayReport>Never</DisplayReport>
			</ComplianceCheck>
			<LogPath>%SystemRoot%\temp</LogPath>
			<UseConfigurationSet>true</UseConfigurationSet>
			<ImageInstall>
				<OSImage>
					<InstallFrom>
						<MetaData wcm:action="add">
							<Value>Windows Vista ULTIMATE</Value>
							<Key>1</Key>
						</MetaData>
					</InstallFrom>
					<WillShowUI>OnError</WillShowUI>
				</OSImage>
			</ImageInstall>
		</component>
		<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<SetupUILanguage>
				<UILanguage>en-US</UILanguage>
				<WillShowUI>Never</WillShowUI>
			</SetupUILanguage>
			<InputLocale>en-US</InputLocale>
			<SystemLocale>en-US</SystemLocale>
			<UILanguage>en-US</UILanguage>
			<UILanguageFallback>en-US</UILanguageFallback>
			<UserLocale>en-US</UserLocale>
		</component>
	</settings>
	<settings pass="auditUser">
		<component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<RunSynchronous>
				<RunSynchronousCommand wcm:action="add">
					<Description>command1</Description>
					<Order>10</Order>
					<Path>cmd /C %SystemDrive%\install\one.cmd</Path>
				</RunSynchronousCommand>
				<RunSynchronousCommand wcm:action="add">
					<Description>command2</Description>
					<Order>20</Order>
					<Path>cmd /C %SystemDrive%\install\cmdlines.cmd</Path>
				</RunSynchronousCommand>
			</RunSynchronous>
		</component>
	</settings>
	<cpi:offlineImage cpi:source="wim:k:/sources/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend> 

This post has been edited by prathapml: 06 June 2007 - 12:30 PM



#2 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,693
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 January 2007 - 01:53 PM

Thanks prathapml

Noticed you toggled on many features there.Excellent example :thumbup . One question though in PNP drivers you have the following:
[/code]

<DriverPaths>
<PathAndCredentials wcm:keyValue=[b]"cd7c395"[/b] wcm:action="add">
<Path>%SystemRoot%\PnPdrvrs</Path>
</PathAndCredentials>
</DriverPaths>

[code]


I read the help files re the driver paths & noticed above in your key value of "cd7c395" normally 1,2 or 3? what is the relevance of the key value to the location of the driver path?
Is there an example of running the driver path directly from the DVD, like we use to? :hello:

#3 User is offline   urie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 517
  • Joined: 30-July 03

Posted 09 January 2007 - 07:12 PM

Quote

prathapml, Once i finished making it, i tried to avoid the WSIM (from WAIK)


it is WSIM that has added the keyValue="cd7c395"

i try to use full paths to drivers i,e,

- <DriverPaths>
- <PathAndCredentials wcm:action="add" wcm:keyValue="1">
  <Path>G:\sources\pnpDrivers\1</Path> 
  </PathAndCredentials>
- <PathAndCredentials wcm:action="add" wcm:keyValue="2">
  <Path>G:\sources\pnpDrivers\2</Path> 
  </PathAndCredentials>
  </DriverPaths>



G:\ is DVD drive but this can vary obviously from different systems

This post has been edited by urie: 09 January 2007 - 07:20 PM


#4 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 January 2007 - 11:00 AM

Thats true, WSIM has assigned that key - and its just a random one, WSIM assigns such a key only because of the assumption that a lot of folders are going to be added & therefore single-digit numbers or alphabets are going to run out.

And well, using absolute paths would be a nightmare. There's no existing solution that i'm aware of, to get drivers from DVD (unless you mean injecting the drivers into the install.WIM, but that still gets extracted to hard disk & only then used, so its still useless).

#5 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 10 January 2007 - 11:28 AM

There's no existing solution that i'm aware of, to get drivers from DVD (unless you mean injecting the drivers into the install.WIM, but that still gets extracted to hard disk & only then used, so its still useless).


This is my experience here, too. I realy start liking the new Vista deployment, but I've no clue what they were thinking about, when programing this painful driver handling. You've three diferent methods mainly to install drivers but all of them will copy the drivers to the Windows driver store and waste time and space. :angry:

I can't imagine that's so difficult to program a method where drivers are checked before becoming integrated to the driver store. :whistle:

Expect from that I do like the new Vista deployment!

Much thanks for sharing your knowledge prathapml! :thumbup

Martin

EDIT:
I was telling something wrong here. It seems to be possible to integrate drivers to .wim file based on a machines hadware only. I've read it in a MS ppt. There were no details about the procedure. I'm not sure if it will work for installation from DVD but it will work for WDS installs. Try to find out more ATM...

This post has been edited by FireGeier: 10 January 2007 - 04:32 PM


#6 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,747
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 11 January 2007 - 10:27 AM

View Postprathapml, on Jan 10 2007, 11:00 AM, said:

And well, using absolute paths would be a nightmare. There's no existing solution that i'm aware of, to get drivers from DVD (unless you mean injecting the drivers into the install.WIM, but that still gets extracted to hard disk & only then used, so its still useless).

:no: WSIM applys single numbers here each time I used it to add a driver 1,2,3
Makes no difference though unless you need a special order

:no: absolute does work without a hitch cause I been doing that since RC1
First thing we got going cause drivers are important to get the sound and video right
<Path>F:\sources\pnpDrivers\1</Path>

But of course you must test and figure out which drive letter the DVD will be, kinda a no brains thing
Might add i do that in the beginning and it holds all the way through to having the drivers installed when it boots the desktop. My resolution is what I want all the way through my UA setups doing it that way.
Lot out there to learn on this Vista isn't it

EDIT: FireGeier im workin on that myself from DVD

This post has been edited by maxXPsoft: 11 January 2007 - 10:39 AM


#7 User is offline   EmRoD 

  • Powered by PlugSquare.com
  • Pip
  • Group: Members
  • Posts: 97
  • Joined: 16-January 04

Posted 17 January 2007 - 03:16 AM

I'm using an usb key to complete unattended install, I use the

<UseConfigurationSet>true</UseConfigurationSet>
From
<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

In the WindowsPE Pass.

This way i can use the %configsetroot% variable to point out to my USB Drive letter, it works to add drivers, just use %configsetroot%\drivers\BLA
to point to the USBDRIVE\Drivers\BLA folder :)

maybe if you unattend from dvd you can you this trick to point to your DVD as %configsetroot% refers to the letter of the drive where Autounattend.xml resides.

#8 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 January 2007 - 05:07 PM

Now this looks like the final piece of the puzzle is solved?
Thank you for the excellent news, I will test this weekend :D

This post has been edited by prathapml: 17 January 2007 - 05:09 PM


#9 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 17 January 2007 - 05:30 PM

View PostEmRoD, on Jan 17 2007, 10:16 AM, said:

I'm using an usb key to complete unattended install, I use the

<UseConfigurationSet>true</UseConfigurationSet>
From
<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

In the WindowsPE Pass.

This way i can use the %configsetroot% variable to point out to my USB Drive letter, it works to add drivers, just use %configsetroot%\drivers\BLA
to point to the USBDRIVE\Drivers\BLA folder :)

...


Thanks, a lot for that info EmRoD!!! :thumbup

But I have one more question belonging to that: Does your solution copy over all drivers from drivers\BLA or only the drivers which are needed by the system?

Thanks again, for sharing that info!

Martin

#10 User is offline   EmRoD 

  • Powered by PlugSquare.com
  • Pip
  • Group: Members
  • Posts: 97
  • Joined: 16-January 04

Posted 18 January 2007 - 12:52 AM

Hi


to add drivers to the winPE pass you have to use :

<Microsoft-Windows-PnpCustomizationsWinPE> In the Windows PE Pass

 
The Microsoft-Windows-PnpCustomizationsWinPE component is used to add one
or more out-of-box drivers to a Windows installation. Drivers that are located in the
path specified by DriverPaths are copied to the driver store of the Windows installation
during the windowsPE configuration pass.

You can add boot-critical as well as non-boot-critical drivers with this component to a
Windows image before it is installed. 


To add them during the Offline servicing pass Use :

<Microsoft-Windows-PnpCustomizationsNonWinPE>

Those 2 ways Allows you to add Critical drivers NEEDED by the system. (Mass Strorage or network if use use net shares during installation.)

To add them copied during the auditSystem Pass, use :

<Microsoft-Windows-PnpCustomizationsNonWinPE> Int the AuditSystem Pass

 
The Microsoft-Windows-PnpCustomizationsNonWinPE component is used to add one or more
out-of-box drivers to a Windows installation. Drivers that are located in the path specified by
DriverPaths are copied to the driver store of the Windows installation during the auditSystem
configuration pass. When the system runs Plug and Play, these out-of-box drivers are available
to install hardware on the system. 




Tha means To install Vista on a RAID Array, you have to use WinPE to add drivers.
if you want to add video drivers, you can just use the audit pass.

This post has been edited by EmRoD: 18 January 2007 - 01:02 AM


#11 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 18 January 2007 - 02:33 AM

Hello EmRoD!

I've tested your method using %configsetroot% and it's working like a charm! :w00t:

AND my final installation holds the drivers needed by the system only!!!

View PostEmRoD, on Jan 18 2007, 07:52 AM, said:

...
To add them copied during the auditSystem Pass, use :

<Microsoft-Windows-PnpCustomizationsNonWinPE> Int the AuditSystem Pass

...



I can't recommend to use AuditSystem pass to install drivers for the moment, cause you'll be prompted for the installation of unsigned drivers. And as long as we are in the state between, you would have to find a solution to suppress these prompts during audit mode. You'll not get these prompts for the same drivers, when integrating them to install.wim or installing them during WinPE pass.

However, I call you a hero EmRoD!

Vive la France, mon ami... vive la France! :thumbup

Martin

This post has been edited by FireGeier: 18 January 2007 - 02:35 AM


#12 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,693
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 January 2007 - 03:52 AM

Very nice find indeed. I'm sure there will be many more yet though.

#13 User is offline   EmRoD 

  • Powered by PlugSquare.com
  • Pip
  • Group: Members
  • Posts: 97
  • Joined: 16-January 04

Posted 18 January 2007 - 06:08 AM

View PostFireGeier, on Jan 18 2007, 09:33 AM, said:

Hello EmRoD!

I've tested your method using %configsetroot% and it's working like a charm! :w00t:

AND my final installation holds the drivers needed by the system only!!!

View PostEmRoD, on Jan 18 2007, 07:52 AM, said:

...
To add them copied during the auditSystem Pass, use :

<Microsoft-Windows-PnpCustomizationsNonWinPE> Int the AuditSystem Pass

...





I can't recommend to use AuditSystem pass to install drivers for the moment, cause you'll be prompted for the installation of unsigned drivers. And as long as we are in the state between, you would have to find a solution to suppress these prompts during audit mode. You'll not get these prompts for the same drivers, when integrating them to install.wim or installing them during WinPE pass.

However, I call you a hero EmRoD!

Vive la France, mon ami... vive la France! :thumbup

Martin


-> M$ indicates a way to create "test" signature for unisgned drivers on the waik user guide

#14 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 January 2007 - 03:18 AM

Hmm, went to read it, the AIK guide directs you to this link, for detailed info about using test signatures during install:
http://www.microsoft.com/whdc/winlogo/drvs..._practices.mspx


And its neither quick to implement, nor does it even look like a solution that the average user can use on an ad-hoc basis.... :(

#15 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 19 January 2007 - 07:51 AM

And its neither quick to implement, nor does it even look like a solution that the average user can use on an ad-hoc basis.... sad.gif


That's right, seems to be more an intermediate solution for driver developers.

But EmRoDs method is running fine 'n' is easy to use, so I call it the EmRoD-Method! :thumbup

Martin

#16 User is offline   nushu 

  • Group: Members
  • Posts: 2
  • Joined: 15-June 04

Posted 27 January 2007 - 05:35 AM

I'd like to thank EmRoD for pointing out the %configsetroot% (i have been searching for a variable wich points to the location of the answer file for a long time) , and regarding the drivers in a ConfigurationSet i also found out something very cool , it seems that the setup process searches recursively in the driver path. If your drivers are in "%configsetroot%\Drivers\nvidia" , "%configsetroot%\Drivers\audigy" , etc... , you only need to insert "%configsetroot%\Drivers" into the answer file. I find this very useful , no need to change the answer file when you add/remove drivers :)
PS. this works in both windowsPE and offlineServicing.

#17 User is offline   FireGeier 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 405
  • Joined: 24-October 05

Posted 27 January 2007 - 07:47 AM

View Postnushu, on Jan 27 2007, 12:35 PM, said:

...
, and regarding the drivers in a ConfigurationSet i also found out something very cool , it seems that the setup process searches recursively in the driver path. If your drivers are in "%configsetroot%\Drivers\nvidia" , "%configsetroot%\Drivers\audigy" , etc... , you only need to insert "%configsetroot%\Drivers" into the answer file. I find this very useful , no need to change the answer file when you add/remove drivers :)
PS. this works in both windowsPE and offlineServicing.


That's right, but have a look here, too... cause this is the disadvantage of this method. So it's still a cool way installing drivers but it's NOT installing right away from stick or DVD.

Martin

#18 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 January 2007 - 05:27 PM

View PostFireGeier, on Jan 27 2007, 07:17 PM, said:

"%configsetroot%\Drivers"

but have a look here, too... cause this is the disadvantage of this method.
Scary.
So then i'll continue with what i was doing for XP uA. Run a CMD & set the %CDDRIVE% for use thru all other scripts - this was done using CDswitch.

#19 User is offline   nDrew 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 29-January 05

Posted 28 January 2007 - 01:55 AM

View Postprathapml, on Jan 27 2007, 05:27 PM, said:

View PostFireGeier, on Jan 27 2007, 07:17 PM, said:

"%configsetroot%\Drivers"

but have a look here, too... cause this is the disadvantage of this method.
Scary.
So then i'll continue with what i was doing for XP uA. Run a CMD & set the %CDDRIVE% for use thru all other scripts - this was done using CDswitch.


As for me the "%CDRoot%"-variable works perfectly for me and it doesn't copy any folders to %systemroot% - try it ;)

This post has been edited by nDrew: 28 January 2007 - 01:57 AM


#20 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 January 2007 - 04:00 AM

View PostnDrew, on Jan 28 2007, 01:25 PM, said:

As for me the "%CDRoot%"-variable works perfectly
Hmm, interesting.
Can you explain?
Does the variable need to be set using some tool, is it accessible only thru the xml, or thru batch-files or normal win32 setup environment....

Share this topic:


  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy