Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wpi.cmd Reboot When Done?

Featured Replies

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 needed
regedit /S "%WPIPATH%\common\wpi.reg"

REM Play Audio
CD /D %CDROM%\WPI\common\music\
start %CDROM%\WPI\common\music\UAP.exe

REM Make WPI driectory the current directory
for /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO %%i:
cd "%WPIPATH%"

REM Start WPI and wait for its end
start /wait WPI.hta

REM call any cleanup code here, or after this script.
tskill UAP
shutdown.exe -r -f -t 5 -c "Reboot in 5 sec..."
exit

:end

  • Author

Strange, cause it does'nt reboot nor kill audio. So it seems it does not run those two last commands....

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

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

  • Author

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!

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.