grabby Posted April 26, 2010 Posted April 26, 2010 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
Tripredacus Posted April 26, 2010 Posted April 26, 2010 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?
grabby Posted April 26, 2010 Author Posted April 26, 2010 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.
johnhc Posted April 27, 2010 Posted April 27, 2010 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.exeand 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.exedel %0I 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.
Tripredacus Posted April 28, 2010 Posted April 28, 2010 Also, it seems like your code got malformed by the forum. Attach your unattend.xml as a file to your post, make sure to edit out the product key.
MrJinje Posted April 28, 2010 Posted April 28, 2010 (edited) 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 April 28, 2010 by MrJinje
johnhc Posted April 28, 2010 Posted April 28, 2010 %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.
cluberti Posted April 29, 2010 Posted April 29, 2010 It might be best (long term) to put that into a cmd file rather than calling the command line directly, that way you can at least add some debugging to it.
MrJinje Posted April 29, 2010 Posted April 29, 2010 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now