Jump to content

Can anyone tell me why this hangs?


Recommended Posts

I have an automated install of windows 7 that runs correctly except for the fact that it hangs when it gets to checking video performance.

<?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>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>Florida Tech - Computer Science</Organization>
<AcceptEula>true</AcceptEula>
</UserData>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows 7 PROFESSIONAL</Value>
</MetaData>
</InstallFrom>
<InstallToAvailablePartition>false</InstallToAvailablePartition>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
</component>
</settings>

<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">
<ProductKey>key</ProductKey>
<TimeZone>Eastern Standard Time</TimeZone>
</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">
<AutoLogon>
<Password>
<Value>password</Value>
</Password>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Username>Administrator</Username>
</AutoLogon>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>false</SkipUserOOBE>
</OOBE>
<UserAccounts>
<AdministratorPassword>
<Value>password</Value>
</AdministratorPassword>
</UserAccounts>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>cscript %systemroot%\System32\slmgr.vbs -ato</CommandLine>
<Description>Activate Windows</Description>
<Order>1</Order>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /q /c 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:valueadd\wpi\wpi.exe start %i:valueadd\wpi\wpi.exe</CommandLine>
<Description>Windows Post Install Wizard</Description>
<Order>2</Order>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:C:/Users/wmayes/Documents/work/iso/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

thanks

Link to comment
Share on other sites


By "hangs" are you implying that it takes a long time to complete this phase, or do you really mean "freezes" and does not get past this step? Also, when it "hangs" does the animation stop moving?

I left it for a day to complete and it still didn't move forward. Animation was still going.

Link to comment
Share on other sites

grabby, I do not really understand how the 'FOR' command works, but I see some fundamental differences in your implementation

cmd /q /c 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:valueadd\wpi\wpi.exe start %i:valueadd\wpi\wpi.exe

and Kelsenellenelvian's:

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:

Start %cdrom%\WPI\wpi.exe

del %0

I think you need the \ after %i:, so maybe the search never is successful. I read in Help and Support that a single % is needed when run from the command prompt and a double if from a batch file. I guess you are alright there. I have no idea what the 'del %0' is about. Enjoy, John.

Link to comment
Share on other sites

I have no idea what the 'del %0' is about. Enjoy, John.

%0 is the batch file itself, so that line is used for cleanup. It is not required, but some people like to delete their scripts after they run.

Edited by MrJinje
Link to comment
Share on other sites

%0 is the batch file itself, so that line is used for cleanup. It is not required, but some people like to delete their scripts after they run.

MrJinje, thanks, now I know. Enjoy, John.

Link to comment
Share on other sites

Since you mention freezing during performance check. Please try to re-install into a .VHD file so that the performance check is skipped. (boot from VHD does not run performance check - disabled by M$)

There is a sticky in the "Windows 7" forum on how to do this. This will determine if the performance check or something else freezing up.

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