Jump to content

Restart before first dekstop loads


Recommended Posts

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


cmdow.exe @ /HID
@ECHO OFF
::VMWare Tools drivers
start /wait %systemdrive%\Install\VMWareTools.exe
::Apply registry tweaks
regedit /S %systemdrive%\Install\Tweaks.reg
::Vista clean-up
start /wait %systemdrive%\Install\Cleanup.cmd
::Run WPI
start %systemdrive%\Install\WPI.cmd

Here is the script executed in First Logon that calls WPI:

WPI.cmd


cmdow.exe @ /HID
@ECHO OFF
::Runing Windows Post Installer
::Locate CD-Rom Drive and assign it a variable
for %%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 WPI
start %CDROM%\WPI\wpi.hta
exit

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

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


cmdow.exe @ /HID
@ECHO OFF
::Rename administrator account and set admin options
CMD /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 tweaks
regedit /S %systemdrive%\Install\Tweaks.reg
::Vista clean-up
start /wait %systemdrive%\Install\Cleanup.cmd
::Vista Ultimate Sound Schemes
start /wait %systemdrive%\Install\VistaUltimateSoundSchemes.exe

Found 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 by radigast
Link to comment
Share on other sites

  • 2 weeks later...

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.

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