Jump to content

reboot after runonceex-install: what command?


Recommended Posts

Posted

So I finally got my Unattended Install going (I think), I bump into this minor but necessary little thing.

When the runonceex.cmd is done installing all wanted programs, I want it to restart the computer. Otherwise some programs won't function (properly or at all). I've been searching the forum but I can't find an answer. What's the entry in runonceex to get it to reboot?

TIA.


Posted

Just put the following commandline into your RunOnceEx.cmd

REG ADD %KEY%\085 /VE /D "Restart" /f
REG ADD %KEY%\085 /V 1 /D "%systemdrive%\apps\cleanup.cmd" /f

In the cmd file that is started with this just put the following lines

cmdow @ /HID
shutdown.exe -r -f -t 30 -c "Windows XP will restart in 30 seconds..."
EXIT

I would use this method if i wouldn't use WPI 2.9.3.

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