Jump to content

Recommended Posts

Posted

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

ECHO.


Posted

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.

Posted

create a new file "restart.cmd" and place there this

@echo off
cmdow @ /HID
shutdown.exe -r -f -t 5 -c "Windows Se Prepara Para Reiniciarse En 5 Segundos..."
exit

but 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

Posted
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 -f

ECHO.

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.

;)

Posted

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?

Posted

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" -f

Do not understand, why you need another command file?

Posted

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

:)

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