Jump to content

Current_User Regtweaks doesn't work ?


Recommended Posts

Hello zedox!

There is something else missing in your Autounattend.xml. You need to change this:

<RunSynchronousCommand wcm:action="add">
<Order>120</Order>
<Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /oobe /reboot</Path>
<Description>Restarting</Description>
</RunSynchronousCommand>

to this here:

<RunSynchronousCommand wcm:action="add">
<Order>120</Order>
<Path>%WINDIR%\system32\sysprep\sysprep.exe /generalize /quiet /oobe /reboot</Path>
<Description>Restarting</Description>
</RunSynchronousCommand>

Without generalize CopyProfile will NOT work.

Regards,

Martin

Link to comment
Share on other sites


okey dokey just tested it using all settings you've mentioned, but didn't work for me :(

Here is my autounattend.xml with the changes...


<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<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>
</SetupUILanguage>
<InputLocale>00020437</InputLocale>
<UserLocale>en-GB</UserLocale>
<UILanguage>en-US</UILanguage>
<SystemLocale>en-GB</SystemLocale>
</component>
<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">
<UserData>
<ProductKey>
<Key>REMOVED</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Type>Primary</Type>
<Order>1</Order>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Label>Windows Vista Ultimate</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
<Extend>false</Extend>
<Active>true</Active>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<WillShowUI>OnError</WillShowUI>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
</OSImage>
</ImageInstall>
<Display>
<VerticalResolution>768</VerticalResolution>
<HorizontalResolution>1024</HorizontalResolution>
<ColorDepth>32</ColorDepth>
</Display>
<Restart>Restart</Restart>
</component>
</settings>
<settings pass="oobeSystem">
<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">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>2</ProtectYourPC>
</OOBE>
<TimeZone>(GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London</TimeZone>
<UserAccounts>
<AdministratorPassword>
<Value>REMOVED</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>REMOVED</Value>
<PlainText>false</PlainText>
</Password>
<Name>Antonio</Name>
<Group>Administrators</Group>
<DisplayName>Antonio</DisplayName>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<Display>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
<ColorDepth>32</ColorDepth>
</Display>
</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>
</settings>
<settings pass="specialize">
<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-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">
<SearchScopes>
<Scope wcm:action="add">
<ScopeUrl>http://www.google.co.uk/search?hl=en&q={searchTerms}&meta=</ScopeUrl>
<ScopeKey>{0633EE93-D776-472f-A0FF-E1416B8B2E3A}</ScopeKey>
<ScopeDisplayName>Google</ScopeDisplayName>
<ScopeDefault>true</ScopeDefault>
</Scope>
</SearchScopes>
<FavoritesDelete>true</FavoritesDelete>
<Help_Page>http://www.google.co.uk/</Help_Page>
<Home_Page>http://www.google.co.uk/</Home_Page>
<IEWelcomeMsg>false</IEWelcomeMsg>
<ShowInformationBar>false</ShowInformationBar>
</component>
<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">
<Order>10</Order>
<Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\autounattend.xml SETX AppsRoot %i: -m"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>20</Order>
<Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /audit</Path>
</RunSynchronousCommand>
</RunSynchronous>
</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">
<CopyProfile>true</CopyProfile>
</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">
<Order>10</Order>
<Path>cmd /c REGEDIT /S %AppsRoot%\Install\"Registry Tweaks"\"Registry Tweaks.reg"</Path>
<Description>Importing Registry Tweaks</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>20</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"7-Zip 4.45 (beta)"\"7-Zip 4.45 (beta).cmd"</Path>
<Description>Installing 7-zip 4.45 (beta)</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>30</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Adobe Flash Player 9"\"Adobe Flash Player 9.cmd"</Path>
<Description>Installing Adobe Flash Player 9</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>40</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Adobe Reader 8.0"\"Adobe Reader 8.0.cmd"</Path>
<Description>Installing Adobe Reader 8.0</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>50</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Adobe Shockwave Player 10"\"Adobe Shockwave Player 10.cmd"</Path>
<Description>Installing Adobe Shockwave Player 10</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>60</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Flashget 1.8.2"\"Flashget 1.8.2.cmd"</Path>
<Description>Installing FlashGet 1.8.2</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>70</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Grisoft AVG Anti-Virus 7.5"\"Grisoft AVG Anti-Virus 7.5.cmd"</Path>
<Description>Installing Grisoft AVG Anti-Virus 7.5</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>80</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Microsoft Windows Live Messenger 8"\"Microsoft Windows Live Messenger 8.cmd"</Path>
<Description>Installing Microsoft Windows Live Messenger 8</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>90</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Sun Java Runtime Environment 6.1"\jre-6u1-windows-i586-p-s.exe /qn</Path>
<Description>Installing Sun Java Runtime Environment 6.1</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>100</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Vista Codec Pack 4.4.2"\"Vista Codec Pack 4.4.2.cmd"</Path>
<Description>Installing Vista Codec Pack 4.4.2</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>110</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"WinRAR 3.70 (beta)"\"WinRAR 3.70 (beta).cmd"</Path>
<Description>Installing WinRAR 3.70 (beta)</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>120</Order>
<Path>%WINDIR%\system32\sysprep\sysprep.exe /generalize /quiet /oobe /reboot</Path>
<Description>Restarting</Description>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<settings pass="auditSystem">
<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>
<Password>
<Value>REMOVED</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<LogonCount>3</LogonCount>
<Username>Antonio</Username>
</AutoLogon>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/unattendedfiles/home/uavistaultimate/windows_vista_ultimate/sources/install.wim#Windows Vista (vLite) ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Link to comment
Share on other sites

Hello again!

For the moment I'm very busy ATM but at the weekend, I'll use your Autounattend.xml to install Vista on my test system. Let's see what will hapen.

Regards,

Martin

Edited by FireGeier
Link to comment
Share on other sites

Hello ruudboek!

Your error is cause by a double slash, look at the following parts inside your Autounattend.xml:

<RunSynchronousCommand wcm:action="add">
<Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\AppsRoot.txt SETX AppsRoot %i:\ -m"</Path>
<Order>1</Order>
</RunSynchronousCommand>

and:

<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>cmd /c regedit /s %appsroot%\install\default.reg</Path>
</RunSynchronousCommand>

Your %Appsroot% variable will looke like this for example:

D:\

That means your calling command looks like this for the moment for example - this is the way setup will read it:

cmd /c regedit /s D:\\install\default.reg

The two slashes will setup let fail!

That means you have to remove the slash here, like this:

cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\AppsRoot.txt SETX AppsRoot %i: -m"

Regards,

Martin

Martin,

i followed your advise and changed the FOR %IN line. Regrettably it gave me the same result.

Also i have to say that i was expecting your suggestion not to make any difference, because of the simple fact that i can see that the regimport was succesfull because it was showing a green checkmark at the registry import screen during the installation.

Ruud

Link to comment
Share on other sites

Hello zedox!

Did a test install with your Autounattend.xml and it was not working for me, too. Have not figured out why yet but I've a workaround I was using before:

You have to use two answer files. The first answer file will process evrything till auditUser pass. Using sysprep generaliz a second xml is called, which will do the rest:

Autounattend.xml:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<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>
</SetupUILanguage>
<InputLocale>00020437</InputLocale>
<UserLocale>en-GB</UserLocale>
<UILanguage>en-US</UILanguage>
<SystemLocale>en-GB</SystemLocale>
</component>
<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">
<UserData>
<ProductKey>
<Key>key</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Type>Primary</Type>
<Order>1</Order>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Label>Windows Vista Ultimate</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
<Extend>false</Extend>
<Active>true</Active>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<WillShowUI>OnError</WillShowUI>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
</OSImage>
</ImageInstall>
<Display>
<VerticalResolution>768</VerticalResolution>
<HorizontalResolution>1024</HorizontalResolution>
<ColorDepth>32</ColorDepth>
</Display>
</component>
</settings>
<settings pass="specialize">
<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-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">
<SearchScopes>
<Scope wcm:action="add">
<ScopeUrl>http://www.google.co.uk/search?hl=en&q={searchTerms}&meta=</ScopeUrl>
<ScopeKey>{0633EE93-D776-472f-A0FF-E1416B8B2E3A}</ScopeKey>
<ScopeDisplayName>Google</ScopeDisplayName>
<ScopeDefault>true</ScopeDefault>
</Scope>
</SearchScopes>
<FavoritesDelete>true</FavoritesDelete>
<Help_Page>http://www.google.co.uk/</Help_Page>
<Home_Page>http://www.google.co.uk/</Home_Page>
<IEWelcomeMsg>false</IEWelcomeMsg>
<ShowInformationBar>false</ShowInformationBar>
</component>
<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">
<Order>10</Order>
<Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\Autounattend.xml SETX AppsRoot %i: -m"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>20</Order>
<Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /audit</Path>
</RunSynchronousCommand>
</RunSynchronous>
</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">
<CopyProfile>true</CopyProfile>
<ComputerName>Compu</ComputerName>
<TimeZone>Greenwich Standard Time</TimeZone>
<ProductKey>key</ProductKey>
</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">
<Order>10</Order>
<Path>cmd /c REGEDIT /S %AppsRoot%\Install\"Registry Tweaks"\"Registry Tweaks.reg"</Path>
<Description>Importing Registry Tweaks</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>20</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"7-Zip 4.45 (beta)"\"7-Zip 4.45 (beta).cmd"</Path>
<Description>Installing 7-zip 4.45 (beta)</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>30</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Adobe Flash Player 9"\"Adobe Flash Player 9.cmd"</Path>
<Description>Installing Adobe Flash Player 9</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>40</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Adobe Reader 8.0"\"Adobe Reader 8.0.cmd"</Path>
<Description>Installing Adobe Reader 8.0</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>50</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Adobe Shockwave Player 10"\"Adobe Shockwave Player 10.cmd"</Path>
<Description>Installing Adobe Shockwave Player 10</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>60</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Flashget 1.8.2"\"Flashget 1.8.2.cmd"</Path>
<Description>Installing FlashGet 1.8.2</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>70</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Grisoft AVG Anti-Virus 7.5"\"Grisoft AVG Anti-Virus 7.5.cmd"</Path>
<Description>Installing Grisoft AVG Anti-Virus 7.5</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>80</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Microsoft Windows Live Messenger 8"\"Microsoft Windows Live Messenger 8.cmd"</Path>
<Description>Installing Microsoft Windows Live Messenger 8</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>90</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Sun Java Runtime Environment 6.1"\jre-6u1-windows-i586-p-s.exe /qn</Path>
<Description>Installing Sun Java Runtime Environment 6.1</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>100</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Vista Codec Pack 4.4.2"\"Vista Codec Pack 4.4.2.cmd"</Path>
<Description>Installing Vista Codec Pack 4.4.2</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>110</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"WinRAR 3.70 (beta)"\"WinRAR 3.70 (beta).cmd"</Path>
<Description>Installing WinRAR 3.70 (beta)</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>120</Order>
<Path>%WINDIR%\system32\sysprep\sysprep.exe /generalize /quiet /oobe /reboot /unattend:%AppsRoot%\Install\Unattend.xml</Path>
<Description>Restarting</Description>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<settings pass="auditSystem">
<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>
<Password>
<Value>dABlAHMAdABQAGEAcwBzAHcAbwByAGQA</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<LogonCount>3</LogonCount>
<Username>Administrator</Username>
</AutoLogon>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:j:/vistawork/dvd/en_x86/sources/install_windows vista ultimate.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Put the following Unattend.xml into Install folder of your removable media:

Unattend.xml:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="generalize">
<component name="Microsoft-Windows-PnpSysprep" 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">
<PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
</component>
</settings>
<settings pass="specialize">
<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">
<CopyProfile>true</CopyProfile>
<ComputerName>Compu</ComputerName>
<TimeZone>Greenwich Standard Time</TimeZone>
<ProductKey>key</ProductKey>
</component>
</settings>
<settings pass="oobeSystem">
<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">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<SkipUserOOBE>true</SkipUserOOBE>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>2</ProtectYourPC>
</OOBE>
<TimeZone>Greenwich Standard Time</TimeZone>
<UserAccounts>
<AdministratorPassword>
<Value>dABlAHMAdABBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>dABlAHMAdABQAGEAcwBzAHcAbwByAGQA</Value>
<PlainText>false</PlainText>
</Password>
<Name>Antonio</Name>
<Group>Administrators</Group>
<DisplayName>Antonio</DisplayName>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<Display>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
<ColorDepth>32</ColorDepth>
</Display>
</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>00020437</InputLocale>
<SystemLocale>en-GB</SystemLocale>
<UserLocale>en-GB</UserLocale>
<UILanguage>en-US</UILanguage>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:j:/vistawork/dvd/en_x86/sources/install_windows vista ultimate.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Regards,

Martin

Edited by FireGeier
Link to comment
Share on other sites

Hello zedox!

For the moment you have an folder called Install, which does contain subfolders with apps installation files, so your structure looks like this:

Removable Media:
|
|__ Install
|
|___ Registry Tweaks
|
|___ Software Files
| |
| |___ 7-Zip 4.45 (beta)
| |
| |___ Adboe Flash Player
| |
| |
| etc.
|
|___ Unattend.xml

You can put it to an other location, too, certainly. Than you have to adapt the following line inside Autounattend.xml to your needs:

<RunSynchronousCommand wcm:action="add">
<Order>120</Order>
<Path>%WINDIR%\system32\sysprep\sysprep.exe /generalize /quiet /oobe /reboot /unattend:%AppsRoot%\Install\Unattend.xml</Path>
<Description>Restarting</Description>
</RunSynchronousCommand>

Just change /unattend:%AppsRoot%\Install\Unattend.xml to what ever you need.

Regards,

Martin

Link to comment
Share on other sites

:( Unfortunately it didn't work, to be truthful that method worked worse than any other.

The local account's wern't created, and also the setup asked for locale settings, product key and to accep the End-User Licence agreement on first login.

Also the HKCU settings... didn't apply. :(

Link to comment
Share on other sites

Hello zedox!

Have you used the both xml files like I've posted or have you done any modifications?

Regards,

Martin

Edit:

Would you please post your log files setuperr.log and setupact.log (located in: %windir%\Panther\UnattendGC).

Edited by FireGeier
Link to comment
Share on other sites

Hello zedox!

I copied the code exactly how you laid it out, all I changed was the prod key and passwords.

Sorry, but your log is telling something different :whistle: :

2007-05-29 16:23:34, Info						 [setupugc.exe] Found run command in registry: path = [%WINDIR%\system32\sysprep\sysprep.exe /quiet /oobe /reboot]
2007-05-29 16:23:34, Info [setupugc.exe] Found RunSynchronous command: [%WINDIR%\system32\sysprep\sysprep.exe /quiet /oobe /reboot]

If you would have copied it exactly the lines would look like this:

2007-05-29 16:23:34, Info						 [setupugc.exe] Found run command in registry: path = [%WINDIR%\system32\sysprep\sysprep.exe /generalize /quiet /oobe /reboot /unattend:%AppsRoot%\Install\Unattend.xml]
2007-05-29 16:23:34, Info [setupugc.exe] Found RunSynchronous command: [%WINDIR%\system32\sysprep\sysprep.exe /generalize /quiet /oobe /reboot /unattend:%AppsRoot%\Install\Unattend.xml]

It's not executing generalization and so it's not copying the profile. There is an other thing showing, that "my" xml files are not used: I've changed your Timezone setting to Greenwich Standard Time, cause your setting was wrong here, too. Now it's using the wrong setting again:

2007-05-29 16:27:55, Warning					  [Shell Unattend] TimeZone: Unknown time zone '(GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London'

Do you wipe your disk during setup? If not please wipe it, cause it could use a xml file from an earlier setup run in worst case. Something is messed up with your xml files for the moment, please check again.

Regards,

Martin

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...