argon007 Posted September 14, 2004 Posted September 14, 2004 I tried it on the VMWARE but no restarting, I wanna restarting the computer automatically when it is finished the install.Any ideas?ECHO Restarting the computer....ECHO Please wait....start /wait shutdown.exe -t10 -r -fECHO.
dekaranger Posted September 14, 2004 Posted September 14, 2004 I tried the auto reboot thing once, but I put it in the wrong place and my computer rebooted before everything was installed, so I just took it out. Check out the unattended guide, it should help you.
SiMoNsAyS Posted September 14, 2004 Posted September 14, 2004 create a new file "restart.cmd" and place there this@echo offcmdow @ /HIDshutdown.exe -r -f -t 5 -c "Windows Se Prepara Para Reiniciarse En 5 Segundos..."exitbut wait a moment... do u want to restart until setup it's finished??i use that cmd at the end of runonce but probably at the time you want to run the code, shutdown.exe it isn't copied yet.also if you run that code until runonce you'll brake the installation progress and it will restart from t-39
MHz Posted September 14, 2004 Posted September 14, 2004 I tried it on the VMWARE but no restarting, I wanna restarting the computer automatically when it is finished the install.Any ideas?ECHO Restarting the computer....ECHO Please wait....start /wait shutdown.exe -t10 -r -fECHO. Remove the start /wait as it is not required. You may need to increase the timeout to 60+ , so you will login for theme setup.An alternative, is to put a self-detruct cmdfile in the startup folder. I use this method for removing shortcuts, run an autoit file to close some windows that open, then deletes that file. Then it executes shutdown.exe, anytime suits. The cmdfile then deletes itself. Works well.
argon007 Posted September 14, 2004 Author Posted September 14, 2004 Thank you for answering, but i put it in install.cmd, should I put the other batch file and put it in [GuiRunOnce] section in winnt.sif?
MHz Posted September 14, 2004 Posted September 14, 2004 You are using GuiRunOnce. So insert it in your winnt.sif under [GUIRunOnce].You should be able to run shutdown.exe from the end of your install.cmd file without start /wait and without echo commands. As you can insert your message in the shutdown command.shutdown -r -t 60 -c "Reboot required, please be patient" -fDo not understand, why you need another command file?
MHz Posted September 14, 2004 Posted September 14, 2004 If you do create another cmd file. For example, cleanup shortcuts etc, then insert shutdown command last in it, then put that in winnt.sif, as last entry in [GuiRunOnce].
argon007 Posted September 14, 2004 Author Posted September 14, 2004 Thank you for answering, I will try it.
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