BoardBabe Posted February 23, 2005 Share Posted February 23, 2005 Windows does not reboot after WPI is done installing. I call reboot.exe as follows at the end of WPI.cmd. Is this the right way to do it?REM Special registry tweak neededregedit /S "%WPIPATH%\common\wpi.reg"REM Play AudioCD /D %CDROM%\WPI\common\music\ start %CDROM%\WPI\common\music\UAP.exe REM Make WPI driectory the current directoryfor /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO %%i:cd "%WPIPATH%"REM Start WPI and wait for its endstart /wait WPI.htaREM call any cleanup code here, or after this script.tskill UAPshutdown.exe -r -f -t 5 -c "Reboot in 5 sec..."exit:end Link to comment Share on other sites More sharing options...
bart of borg Posted February 23, 2005 Share Posted February 23, 2005 Yup....Nothing wrong with that...... Link to comment Share on other sites More sharing options...
BoardBabe Posted February 24, 2005 Author Share Posted February 24, 2005 Strange, cause it does'nt reboot nor kill audio. So it seems it does not run those two last commands.... Link to comment Share on other sites More sharing options...
idbirch2 Posted February 26, 2005 Share Posted February 26, 2005 I'm having a similar problem and its only started since adding WPI to my unattended disc. I have a similar install order to the one you listed with a couple of differences. After WPI has ended I run all the cleanup commands, then call shutdown and last of all delete the %systemdrive%\Install folder. Heres the last chunk of my WPI.cmd:REGEDIT /S %systemdrive%\Install\regtweaks.regECHO.ECHO Restarting the PC in 2 minutes...shutdown.exe -r -f -t 150 -c "Installation of Windows XP Media Center 2005 and extra software is now complete. Windows will shut down and restart in 2 minutes, 30 seconds to complete the installation."RD /S /Q "%systemdrive%\Install"exit The shutdown command is called just fine but then is seems to hang and will only close and complete properly is I hit Ctrl-Alt-Del and kill cmd.exe. Of course, because the timer has started it reboots anyway and all is well but I then end up with the Windows Classic theme. Whats going on? Link to comment Share on other sites More sharing options...
BoardBabe Posted February 26, 2005 Author Share Posted February 26, 2005 It was just me beeing a complete id***. I called the cleanup.cmd at the end of the WPI script that deletes WPI.cm. DOH! Link to comment Share on other sites More sharing options...
lilweirddude Posted February 27, 2005 Share Posted February 27, 2005 i can run reboot just fine but i run wpi.hta with a seperate cleanup.cmd Link to comment Share on other sites More sharing options...
bart of borg Posted February 27, 2005 Share Posted February 27, 2005 I run clean up.cmd from guirunonce - after wpi is complete. Link to comment Share on other sites More sharing options...
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