Theimon Posted October 28, 2004 Share Posted October 28, 2004 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. Link to comment Share on other sites More sharing options...
titou2k Posted October 28, 2004 Share Posted October 28, 2004 shutdown.exe -r -f -t xxxx = time in second before reboot-r = reboot-f = force application to close without warning Link to comment Share on other sites More sharing options...
Dynaletik Posted October 28, 2004 Share Posted October 28, 2004 Just put the following commandline into your RunOnceEx.cmdREG ADD %KEY%\085 /VE /D "Restart" /fREG ADD %KEY%\085 /V 1 /D "%systemdrive%\apps\cleanup.cmd" /fIn the cmd file that is started with this just put the following linescmdow @ /HIDshutdown.exe -r -f -t 30 -c "Windows XP will restart in 30 seconds..."EXITI would use this method if i wouldn't use WPI 2.9.3. Link to comment Share on other sites More sharing options...
Theimon Posted October 28, 2004 Author Share Posted October 28, 2004 Great! Thanks for your help guys 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