Jump to content

Current_User Regtweaks doesn't work ?


Recommended Posts

oops, I've attached the wrong setup logs... forgot I reinstalled! lol!

Will post the correct ones... Here is what my autounattend.xml looks like...


<?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>
</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.46 (alpha)"\"7-Zip 4.46 (alpha).cmd"</Path>
<Description>Installing 7-zip 4.46 (alpha)</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.4"\"Vista Codec Pack 4.4.4.cmd"</Path>
<Description>Installing Vista Codec Pack 4.4.4</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>110</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"WinRAR 3.70"\"WinRAR 3.70.cmd"</Path>
<Description>Installing WinRAR 3.70</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>REMOVED</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<LogonCount>3</LogonCount>
<Username>Administrator</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>

and this is the 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>REMOVED</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>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>
<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="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


@Firegeier,

your autounattend.xml and the unattend.xml worked like a charm.

The only mistake i made was placing my modified unattend.xml in a folder called panther\unattend during the Window PE phase.

The advantage of that is that it takes precedence over the autounattend.xml on the dvd. The disadvantage of that was that it also took precedence over the sysprep unattend.xml, making it get into kind of a loop.

Adding a runsynchronous command to the audituser phase that deletes the unattend.xml from the panther\unattend folder fixed the problem.

Thx firegeier, appreciate the help.

Ruud

Link to comment
Share on other sites

@Ruud:

Thanks for the feedback. BTW I would never recommend to replace unattend.xml inside Panther dir/subdir. This can end up very confusing and is not recommended by MS, too.

@zedox:

I've found three things:

no 1:

2007-05-31 11:22:35, Info						 [setupugc.exe] Finished executing [cmd /c %AppsRoot%\Install\"Software Files"\"7-Zip 4.46 (beta)"\"7-Zip 4.46 (alpha).cmd"] synchronously
2007-05-31 11:22:35, Info [setupugc.exe] Process returned with exit code 0x1

Seems to me that this cmd is not executed - might be caused by the brackets.

no 2:

2007-05-31 11:35:13, Info						 [msoobe.exe] No display mode found that matches criteria

Your system seems to have problems, if you don't set the refresh rate. So please set the refresh rate. BTW my system is comming up with the same error if I set the refresh rate inside xml file. So I'm forced not to set the refresh rate. :wacko:

But both errors should not cause your main problem.

no 3:

2007-05-31 11:28:56, Info						 [windeploy.exe] ------------------------------------------------
2007-05-31 11:28:56, Info [windeploy.exe] WinDeploy.exe launched with command-line []...
2007-05-31 11:28:56, Info [windeploy.exe] Setup has not completed, adding pending reboot.
2007-05-31 11:28:56, Info [windeploy.exe] UnattendSearchExplicitPath: Found unattend file at [C:\Windows\Panther\unattend.xml]; examining for applicability.
2007-05-31 11:28:56, Info [windeploy.exe] UnattendSearchExplicitPath: [C:\Windows\Panther\unattend.xml] does not meet criteria to be used for this unattend pass.
2007-05-31 11:28:58, Info [windeploy.exe] Found no unattend file.
2007-05-31 11:28:58, Info [windeploy.exe] Found generalization state [0x4], setup.exe completion flag [False] --> launching setup.exe.
2007-05-31 11:28:58, Info [windeploy.exe] Launching [C:\Windows\system32\oobe\setup.exe]...
2007-05-31 11:33:20, Info [windeploy.exe] Process exited with exit code [0x0]
2007-05-31 11:33:20, Info [windeploy.exe] Found completion flag [True], reboot requested flag [True] --> rebooting computer before proceeding with deployment...
2007-05-31 11:33:20, Info [windeploy.exe] Making sure that SystemSetupInProgress is cleared.
2007-05-31 11:33:20, Info [windeploy.exe] An immediate reboot or shutdown was requested/required... rebooting / shutting down computer
2007-05-31 11:33:20, Info [windeploy.exe] Flushing registry to disk...
2007-05-31 11:33:21, Info [windeploy.exe] Flush took 672 ms.
2007-05-31 11:33:21, Info [windeploy.exe] WinDeploy.exe exiting with code [0x0]
2007-05-31 11:35:09, Info [windeploy.exe] ------------------------------------------------

This section differs from my result. It follows the application installation section. I don't have the Flush here. My system just reboots and than goes on executing specialize pass of unattend.xml. But your specialize pass is not executed - so CopyProfile can't run - and system boots right to oobe pass.

I suspect one of your installation cmds causing a delay which is causing the flush. I could imagine that one of your cmds is still running while setup is trying to execute sysprep.exe /generalize. Could you please verfiy that.

Regards,

Martin

EDIT:

The Flush could be caused by some hardware, which is not installed during setup, too. Do you may use some hardware, which Vista does not detect/install the drivers for? Than remove it for test or if you can't remove install the drivers during setup.

If this still does not help out you should recreate both xml files "manually" using WSIM.

Edited by FireGeier
Link to comment
Share on other sites

no 1:

2007-05-31 11:22:35, Info						 [setupugc.exe] Finished executing [cmd /c %AppsRoot%\Install\"Software Files"\"7-Zip 4.46 (beta)"\"7-Zip 4.46 (alpha).cmd"] synchronously
2007-05-31 11:22:35, Info [setupugc.exe] Process returned with exit code 0x1

Seems to me that this cmd is not executed - might be caused by the brackets.

This was my error... the directory is named 7-Zip 4.46 (alpha) but the autounattend is looking for 7-Zip 4.46 (beta)! woops :whistle:

Anyways going to try removing all RunSynchronousCommand's except the registry tweaks file... to see if it is any of the installs that are "holding" it up.

Cheers for being so patient! :hello:

EDIT:

ok, i've tested it now.. still doesnt work...

Here are the error logs,

Edited by zedox
Link to comment
Share on other sites

Hello zedox!

OK... we need to check now, if your registry tweaks are applied at all. So please remove the following lines from your Autounattend.xml:

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

Setup will stop in audit mode now and the second unattend.xml will not be executed. So you can check, if the tweaks are applied before copying the profile - you may need to do a reboot after setup has finished.

If the tweaks are not applied, it means that there is something wrong with the path to your .reg file. If they would be applied, than please let me know.

BTW, do you use an original Ultimate version or was it captured before or edited using vlite?

Regards,

Martin

Edited by FireGeier
Link to comment
Share on other sites

Afternoon Firegeier!

I have reg tweaks in all of the cmd files that are ran... the installs seem to work in them so I don't think its a problem with the paths!

Umm, I am using a "vlited" Vista Ultimate, however I have tested on an Original disc and it didnt work. :(

Will try removing that section and see what happens! Hopefully we'll figure this out!

Link to comment
Share on other sites

I think I've found it... and it makes no sense...

Now the setup command line within this batch file works, but the reg commands dont...

<RunSynchronousCommand wcm:action="add">	
<Order>20</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"7-Zip 4.46 (alpha)"\"7-Zip 4.46 (alpha).cmd"</Path>
<Description>Installing 7-zip 4.46 (alpha)</Description>
</RunSynchronousCommand>

when changed to this, it works!...

<RunSynchronousCommand wcm:action="add">	
<Order>20</Order>
<Path>cmd /c "%AppsRoot%\Install\Software Files\7-Zip 4.46 (alpha)\7-Zip 4.46 (alpha).cmd"</Path>
<Description>Installing 7-zip 4.46 (alpha)</Description>
</RunSynchronousCommand>

Running tests now to see if it will all work in one single autounattend.xml

Woop!

Edited by zedox
Link to comment
Share on other sites

yyeeee I know, but the setups ran fine so couldn't (and still cant) see why the reg tweaks in the SAME file dont apply!! hmmm, well still testing my scritps. To be fair, the post you pointed out said I shouldn't have spaces in the paths... but I still do :P

Thanks for all your help, looks like we've cracked it! :D

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...