radigast Posted May 24, 2008 Posted May 24, 2008 (edited) First, let me say that I HATE!! doing this Vista unattended installation. What a pain in the *ss. So many quirks and stupid bugs.....Alright. I am attempting to call WPI out of a first logon command, and the computer restarts just after the desktop is configured. Both my first logon commands and setupcomplete.cmd executed successfully, but WPI doesn't start at all because the computer restarts before the desktop loads for the first time.Here is the .cmd file called during the first logon command run:FirstLogon.cmdcmdow.exe @ /HID@ECHO OFF::VMWare Tools driversstart /wait %systemdrive%\Install\VMWareTools.exe::Apply registry tweaksregedit /S %systemdrive%\Install\Tweaks.reg::Vista clean-upstart /wait %systemdrive%\Install\Cleanup.cmd::Run WPIstart %systemdrive%\Install\WPI.cmdHere is the script executed in First Logon that calls WPI:WPI.cmdcmdow.exe @ /HID@ECHO OFF::Runing Windows Post Installer::Locate CD-Rom Drive and assign it a variablefor %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\install.wim set CDROM=%%i:::Run WPIstart %CDROM%\WPI\wpi.htaexitAccording to the logfile (setupact.log), the First Logon Commands are successful and the OOBE pass successfully completed with no restart requested.[shell Unattend] LogonCommands: Set command '%systemdrive%\Install\FirstLogon.cmd' ...[shell Unattend] Exiting 'oobeSystem' pass with status 0x00000000[oobeldr.exe] [Action Queue] : process exit code = 0[oobeldr.exe] [Action Queue] : Unattend action returned operation complete.[oobeldr.exe] [Action Queue] : ProcessActionQueue finish (hr = 0x0)[oobeldr.exe] Successfully completed execution of GC queueI KNOW that my .cmd file was successfully read because VMWare tools, which is called by the first line of the script, installs perfectly.In the next pass, my setupcomplete.cmd is succesfully found and executed.Setupcomplete.cmdcmdow.exe @ /HID@ECHO OFF::Rename administrator account and set admin optionsCMD /C secedit /configure /db %systemroot%\security\database\unattend.sdb /cfg %systemroot%\security\templates\unattend.inf /log %systemroot%\security\logs\unattend.log /overwrite /quiet::Apply registry tweaksregedit /S %systemdrive%\Install\Tweaks.reg::Vista clean-upstart /wait %systemdrive%\Install\Cleanup.cmd::Vista Ultimate Sound Schemesstart /wait %systemdrive%\Install\VistaUltimateSoundSchemes.exeFound script at [C:\Windows\Setup\Scripts\SetupComplete.cmd]; executing with UI hidden...[windeploy.exe] RunUserProvidedScript: Successfully executed script; (returned with exit code 0x0)I know this is properly read because I have a Windows Vista Ultimate sound pack that is called and successfully installed from this script.BUT...as said...WPI never begins because right after the "Windows is configuring your desktop" screen. The computer restarts. Why?Here is my autounattend.xml:Autounattend.xml<?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="specialize"> <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"> <Display> <ColorDepth>32</ColorDepth> <HorizontalResolution>1024</HorizontalResolution> <VerticalResolution>768</VerticalResolution> </Display> <WindowsFeatures> <ShowInternetExplorer>true</ShowInternetExplorer> <ShowMediaCenter>false</ShowMediaCenter> <ShowWindowsMail>false</ShowWindowsMail> <ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer> </WindowsFeatures> <RegisteredOwner>Radigast</RegisteredOwner> <RegisteredOrganization>MicroShaft</RegisteredOrganization> <ComputerName>Winblowz</ComputerName> <TimeZone>SE Asia Standard Time</TimeZone> </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> </settings> <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>0409:00000409</InputLocale> <UserLocale>en-US</UserLocale> <UILanguage>en-US</UILanguage> <SystemLocale>en-US</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> <Organization>MicroShaft</Organization> <FullName>Radigast</FullName> <AcceptEula>true</AcceptEula> <ProductKey> <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key> </ProductKey> </UserData> </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"> <UserAccounts> <AdministratorPassword> <Value>Some password</Value> </AdministratorPassword> </UserAccounts> <AutoLogon> <Enabled>true</Enabled> <LogonCount>3</LogonCount> <Username>Some user</Username> <Password> <Value>Some password</Value> <PlainText>true</PlainText> </Password> </AutoLogon> <OEMInformation> <Logo>c:\windows\system32\oem\sager_120x120.bmp</Logo> <Manufacturer>Sager Midern Computer, Inc.</Manufacturer> <SupportHours>8:30am to 5:30pm PST</SupportHours> <SupportPhone>1-626-964-4849</SupportPhone> <SupportURL>http://www.sagernotebook.com</SupportURL> <Model>Notebook Computer</Model> </OEMInformation> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Home</NetworkLocation> <ProtectYourPC>3</ProtectYourPC> <SkipMachineOOBE>true</SkipMachineOOBE> <SkipUserOOBE>true</SkipUserOOBE> </OOBE> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>%systemdrive%\Install\FirstLogon.cmd</CommandLine> <Order>1</Order> <Description>Customize Settings/Install Programs/Cleanup Windows</Description> </SynchronousCommand> </FirstLogonCommands> </component> <component name="Microsoft-Windows-PerfCenterCPL" 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"> <WindowsExperienceIndexOemInfo> <Logo>c:\windows\system32\oem\Sager-130x50.bmp</Logo> </WindowsExperienceIndexOemInfo> </component> </settings> <cpi:offlineImage cpi:source="wim:c:/vista/x86/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" /></unattend>Again, why does the computer restart just after "Windows load my desktop for the firs time"? Any help would be GREATLY appreciated! Edited May 24, 2008 by radigast
snowtox Posted June 3, 2008 Posted June 3, 2008 hey radigast can you also post your cleanup.cmd please?would be helpful for me find the problem...
radigast Posted June 4, 2008 Author Posted June 4, 2008 Thanks for your willingness...but I found the problem. I was installing VMWare tools silent installer as one of my First Logon commands. However, the "/norestart" switch was not included in the silent install, so after installing like a good boy, the computer restarted. Anyhow, I just added the appropriate switch and all is good.
MAVERICKS CHOICE Posted June 4, 2008 Posted June 4, 2008 Glad to see ya got it sorted with the multitude of variables in UA very difficult to diagnose over the net.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now