Help - Search - Members - Calendar
Full Version: a sample autounattend.xml - working good
MSFN Forums > Unattended Windows Discussion & Support > Unattended Vista
Pages: 1, 2

   
Google Internet Forums Unattended CD/DVD Guide
prathapml
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

CODE
<?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>
MAVERICKS CHOICE
Thanks prathapml

Noticed you toggled on many features there.Excellent example thumbup.gif . One question though in PNP drivers you have the following:
CODE
[/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? welcome.gif
urie
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,

CODE
- <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
prathapml
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).
FireGeier
CODE
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. mad.gif

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

Expect from that I do like the new Vista deployment!

Much thanks for sharing your knowledge prathapml! thumbup.gif

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...
maxXPsoft
QUOTE (prathapml @ Jan 10 2007, 11:00 AM) *
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.gif 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.gif 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
CODE
<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
EmRoD
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 smile.gif

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.
prathapml
Now this looks like the final piece of the puzzle is solved?
Thank you for the excellent news, I will test this weekend biggrin.gif
FireGeier
QUOTE (EmRoD @ Jan 17 2007, 10: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 smile.gif

...


Thanks, a lot for that info EmRoD!!! thumbup.gif

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
EmRoD
Hi


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

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

CODE
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

CODE
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.
FireGeier
Hello EmRoD!

I've tested your method using %configsetroot% and it's working like a charm! woot.gif

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

QUOTE (EmRoD @ Jan 18 2007, 07:52 AM) *
...
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.gif

Martin
MAVERICKS CHOICE
Very nice find indeed. I'm sure there will be many more yet though.
EmRoD
QUOTE (FireGeier @ Jan 18 2007, 09:33 AM) *
Hello EmRoD!

I've tested your method using %configsetroot% and it's working like a charm! woot.gif

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

QUOTE (EmRoD @ Jan 18 2007, 07:52 AM) *
...
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.gif

Martin


-> M$ indicates a way to create "test" signature for unisgned drivers on the waik user guide
prathapml
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.... sad.gif
FireGeier
CODE
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.gif

Martin
nushu
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 smile.gif
PS. this works in both windowsPE and offlineServicing.
FireGeier
QUOTE (nushu @ Jan 27 2007, 12:35 PM) *
...
, 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 smile.gif
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
prathapml
QUOTE (FireGeier @ Jan 27 2007, 07:17 PM) *
"%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.
nDrew
QUOTE (prathapml @ Jan 27 2007, 05:27 PM) *
QUOTE (FireGeier @ Jan 27 2007, 07:17 PM) *
"%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 newwink.gif
prathapml
QUOTE (nDrew @ Jan 28 2007, 01:25 PM) *
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....
nDrew
QUOTE (prathapml @ Jan 28 2007, 04:00 AM) *
QUOTE (nDrew @ Jan 28 2007, 01:25 PM) *
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....



no, it seems to me that WAIK understands it...when I click "Check answer file" - there're no errors...so, i don't know how but it works. I've already installed that way Office 2007 (unattended) and nod32...

I wrote 2 lines in autounattend.xml:

%CDRoot%\soft\Office2007.exe

and

"%CDRoot%\soft\nod32v.2.7.exe" /VERYSILENT /SP- (when using command line parameters I use "" )
FireGeier
Thank's for sharing nDrew!

Martin
maxXPsoft
QUOTE (FireGeier @ Jan 29 2007, 08:12 AM) *
Thank's for sharing nDrew!

Martin
Did you test that FireGeier? don't work for me.
FireGeier
@maxXPsoft:

No, I've not tested it yet, but I will the next few hours. Sounds to me that nDrew tested it and it seemed to work for him.

However I'll try out and let you know!

If this should not work, I'll test to run a script from WinPE which will set a variable to use with a removable device and install drivers than during WinPE pass using this "selfmade" variable. Don't know for the moment, if setup is doing a reboot before it's installing drivers during WinPE. Cause than my idea would not work, too.

Martin
shortie
Hi all,

I', using a local copy of my vista dvd, put the attached autounattended.xml in the root of that local copy and made a new iso with vlite (latest version). When firing up vmware and using that iso image, I always get an error saying "Windwos could no apply the Windows PE bootstrap setting specified in the uanttednded file".


Any idea???

Kind regards,

shortie
maxXPsoft
QUOTE (shortie @ Jan 29 2007, 03:46 PM) *
Windows PE bootstrap setting specified in the uanttednded file".
what attached xml? I've only seen a few times when I had the
<component name="Microsoft-Windows-PnpCustomizationsNonWinPE"
and its not right.
urie
QUOTE (FireGeier @ Jan 29 2007, 07:10 PM) *
@maxXPsoft:

No, I've not tested it yet, but I will the next few hours. Sounds to me that nDrew tested it and it seemed to work for him.

However I'll try out and let you know!

If this should not work, I'll test to run a script from WinPE which will set a variable to use with a removable device and install drivers than during WinPE pass using this "selfmade" variable. Don't know for the moment, if setup is doing a reboot before it's installing drivers during WinPE. Cause than my idea would not work, too.

Martin


@FireGeier, we are talking paths here to dvd ideally we dont want full path thought we had it with configsetroot but as you know works,
fair enought you can add to a cleanup.CMD to delete configsetroot from windows folder grab back some Hdrive space but as far as vista go's it any files it is looking for wont goto windows it will be looking for c:\window\configsetroot\ ok that maybey fair enought like old I386 folder if you have mabey a oem machine, but we are talking here about unattend vista for normal peeps not rollouts and syspreping i think the forum needs split up , as was in unattendxp section there was a seperate thread for RIS, also let me know how you get on with %CDRoot% dont have a chance to test tommorrow busy but last time i searched for %CDRoot% on net it turnd up Linux..

P.S. maxxp and myselfe tried %CDRoot% months ago but you never know maybey small typo error can happen.
also have you acctually thought about what nDrew ids saying i,e %CDRoot%\soft\Office2007.exe this aint in PE aint drivers were talking must be adding at <settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup"
this is software install after PE vista will access and search for paths then maybey %CDRoot% would work just a thought, we ar all in the same boat MS guidlines are clear to all:)) yeah if you can make head or tail to them:)
shortie
Hi,

nobody who could give me a hint what's wrong with my unattended.xml??

shortie
maxXPsoft
shortie
2 things i would delete from PE
LogPath
PageFile

D usually don't exist during PE since its all in memory at that point. If thats the target drive then its about to be formatted
Logs, look in systemdrive\Windows\panther folder after its installed

also Language Pack is not right, should be
CODE
<package action="configure">
            <assemblyIdentity name="Microsoft-Windows-Client-LanguagePack-Package" version="6.0.6000.16386" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="de-DE" />
shortie
Thanks maxXPsoft,

installation is running now.
One more question : Right before the disk-config dialog setup asks me which os I want to install, the selection box only show ultimate. How can I overwrite this dialog?

Kind regards,

shortie
FireGeier
Hello shortie!

Look here.

Martin
FireGeier
QUOTE (urie @ Jan 30 2007, 03:41 AM) *
... also let me know how you get on with %CDRoot% dont have a chance to test tommorrow busy but last time ...


Hello maxX & urie!

Like expected %CDRoot% does not work to install drivers during WinPE pass.

For the moment I try to use my own %DriversRoot% variable using setx.exe. But I'm not successfull. Well... if I check the registry in WinPE using regedit. %DriversRoot% seems to be setted to Environment. But if I open a cmd-Windows the DriversRoot variable does not appear in the list even it's present in the registry.

EDIT:
Forget about this part... global environment can't be set in running system. whistling.gif

Starting Setup from WinPE results in an error that boot critical drivers are not valid. This error means, it can not find the path. So %DriversRoot% variable does not work.

Do you have any ideas here?

Thanks,
Martin
maxXPsoft
http://www.msfn.org/board/forums.html#entry619873
EmRoD
If you want to get rid of the configetroot folder just add a
specialize
RunSynchronousCommand

%systemroot%\System32\cmd /c "rd /S /Q %systemroot%\ConfigSetRoot"

I use it to remove files copied from my usb drive during setup, but I understand the issue when running configset from dvd :/
FireGeier
@ EmRoD:

For sure this works, but it's not like installing drivers from DVD. We're trying to find a method, where drivers getting installed right away from the media. If you're installing from DVD for example using configsetroot the Vista DVD will be copied to your HD two times. That's not wasting time only in worst case you could run out of Disk space during installation.

Martin
maxXPsoft
and yes you can remove the dir it copies with a command
but as pointed out, Its all over the registry when this happens with a DVD install
sp00f
It doesnt work for me, each time i edit things like the KEY , and userlocale it wont open after saving.
Im using a Dutch Vista by the way.

EDIT:

got it working now, only there are more things peolle need to change then only the REMOVED
Your account is in it with password, and your time zones
You might change the first post.
maxXPsoft
lol sp00f its up to everyone to look closely at an example and fix as needed for their install
sp00f
QUOTE (maxXPsoft @ Feb 13 2007, 03:56 PM) *
lol sp00f its up to everyone to look closely at an example and fix as needed for their install

You should read the first post again (this time better)he didnt mentioned that.
maxXPsoft
QUOTE
here's a working sample, made for my preferences

your right I don't understand here's a working sample, made for my preferences
edit
what I'm trying to say is a lot of these have been posted and not even 1 will work for you, you need the WAIK and be very careful even then, a bad entry will crash you, been there done that about a 100 times till I got what I wanted from all my tests
nDrew
but how to disable those warnings at unsigned drivers' install? sad.gif
Mateus
Hello!

Can somebody help me ?

Sorry but I am a beginner but I have some work with Unattend XP.

Where should put I the autounattend.xml?

I now learn English so I cant read all of your publication.
prathapml
Looks like i'm not so scared of the "UseConfigSetRoot" tag now anymore.
Because i do end up using it anyways, for the sake of running automated scripts after copying files over to HDD using the $OEM$ folder path (which needs above tag).
So i just delete %configsetroot% folder now at the end of my scripts.
(for those who havent already read about this in the beginning of this topic, u need to use the UseConfigSetRoot tag in your xml, if u want to use the $OEM$ tree. And u can specify %configsetroot%\drivers, in your xml, to get Setup to pick up drivers automatically from dvdroot\drivers folder. I was afraid to use this feature since the entire dvd would get copied - but then realised it would get copied anyways, for the purpose i'm looking at, so cant avoid the copying of that folder)

Now my recent discovery, is that i dont need to bother with the unattend.xml to set a directory to pickup drivers from!
Because i can simply drop my PnPdrvrs folder into the "$OEM$\$$\inf" folder on dvd, & since its part of the DevicePath & vista searches recursively, the drivers will be installed automatically at bootup, provided your drivers are signed/WHQL.
Wondering if this will work for XP too.

Not quite sure if the above even makes sense at all to a beginner, but those of you who've been looking for a straight-forward way for this, might find it useful. If you want clarifications, just ask! smile.gif
MAVERICKS CHOICE
Hey guys few q's

How to stop windows on first show to setup further users? Also the home ofice network setup screen thing?

I have the following in my xml

CODE
[/code]  
<OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Other</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>
                <SkipUserOOBE>true</SkipUserOOBE>
            </OOBE>
[code]


Do I need to set skip machine oobe as well as Admin set & autologon toggled on.



CODE
[/code]

</settings>
    <settings pass="specialize">
        <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>Workgroup</JoinWorkgroup>
[code]


Do I need to nominate something else in the ans file to skip the setup network lot?

Thanks Fellas

Update:

Choosing skip machine setting sorted the user screen as expected, although waik setting depracated. Works fine though.

I also changed my network setting from Other to Work however pops the network screen up with Work highlighted? Not a real biggy though.
Fatila
Thanks for your pointers.

In the MS AIK guide, it explains how vista will search for the unattend.xml from removable media. However I wish to install Vista from a USB flash drive, is there a way to get the install to search a folder within the same media?
prathapml
I'm back - found this about system-variable folders on vista & how they correspond to XP (it may not be much, but its notable because it gives quite a bit of info on the topic, on one page) - on link below
http://trustedaccess.info/blogs/travelling...orn-Server.aspx
And how to install *.MSU updates for vista silently - http://trustedaccess.info/blogs/travelling...s-silently.aspx


hi maverick, below helps? smile.gif
CODE
; Set the Network Location
;00000000 = Home/Work; 00000001 = Public
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork]
"Category"=dword:00000000
MAVERICKS CHOICE
Thanks, Have bookmarked & will try the network reg setting. This will stop this page from showing on first logon I take it?
I have succesfully integrated selected updates to my source & working fine. getting very close to where i would like to be in UA now.
prathapml
Hmm, do you mean this page comes up before first login, or after u login?

And the above is superb then, i'd like to know about these please:
when do u apply your reg settings - if u apply it before first-login, then how do u apply it? (and thru which pass?)
how to integrate updates into source? ohmy.gif
MAVERICKS CHOICE
This is happening straight after setup on first logon, autologon in my case. I manually apply my reg after setup atm, will automate that soon haven't been that far yet, but will take on any suggestions for this?

One of our members Arneh posted this Slip updates

Very nice batch to slip updates straight into the source, all credit to Arneh thumbup.gif
keul
I apply reg tweaks during first login (with autologon), then install apps and finally execute sysprep (with copyprofile).
It seems that first login is the best way to apply tweaks because if you do it before, HKCU won't be imported for default user.

However, I can't exactly mimic what I used to do during XP unattended install : whatever I do, some reg tweaks keep being erased by windows :

CODE
HCKU\Control Panel\WindowMetrics\PaddedBorderWidth
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Superhidden


These settings seem to be overwritten when an account is first logged (ie when windows does its pseuso RunOnceEx things -> "Configuring Desktop", "Configuring Internet Explorer" ...).
I managed bypassing this issue by importing reg tweaks in a runonce key so that it's done after first account configuration. Then, at first logon, Administrator account has all tweaks applied.

But this only moves this issue one step beyond : when sysprep executes, copyprofile is successfully done (new user accounts got nearly all tweaks applied), but one more time "Configuring..." erases some of them for this new account.

Can't remember if I already tried re-adding runonce reg import just before executing sysprep so that reg tweaks import would be done for new account as well... Anyway, I find this method pretty much complicated for such a basic thing.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.