Force reboot after press on the Finish Button
Hello,
How can i force a reboot with C:\Windows\system32\shutdown.exe when i press the Finish button on my installation.
I used Wise package Studio 7.
Thank you.
How can i force a reboot with C:\Windows\system32\shutdown.exe when i press the Finish button on my installation.
I used Wise package Studio 7.
Thank you.
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
AngelD
15 years ago
Have a look at KB Article 35500
https://kb.altiris.com/article.asp?article=35500&p=1
In Step 2; replace the command line with:
[SystemFolder]shutdown.exe <any argument of choice>
https://kb.altiris.com/article.asp?article=35500&p=1
In Step 2; replace the command line with:
[SystemFolder]shutdown.exe <any argument of choice>
Posted by:
linstead
15 years ago
Posted by:
AngelD
15 years ago
Posted by:
stevematt41
15 years ago
Why not run : Shutdown.exe -r -f -t 10
This will force a restart (with a 10 second countdown to allow the MSI to finish) and run it as a custom action in the Execute Deferred script just before the InstallFinalise. Also include a "If NOT Installed" condition around the command if you only want it to run on installation.
Another way is to add an event from the Exit Dialogs Finish button? Create a DoAction to execute a custom action?
Or even easier what about setting the Reboot Option in the Administrator Options in Installation Expert view? This sets the property REBOOT = Force and will prompt for a restart at the end of the installation?
This will force a restart (with a 10 second countdown to allow the MSI to finish) and run it as a custom action in the Execute Deferred script just before the InstallFinalise. Also include a "If NOT Installed" condition around the command if you only want it to run on installation.
Another way is to add an event from the Exit Dialogs Finish button? Create a DoAction to execute a custom action?
Or even easier what about setting the Reboot Option in the Administrator Options in Installation Expert view? This sets the property REBOOT = Force and will prompt for a restart at the end of the installation?
Posted by:
Jamie B
15 years ago
Alternatively a more graceful approach might be to utilise the ScheduleReboot action. Look it up in the SDK. You may need to modify the default condition on the action.
Setting the property REBOOT=Force will achieve the same result.
These coupled with setting the property REBOOTPROMPT=S will perform the reboot without interaction otherwise the user will be prompted to reboot.
Setting the property REBOOT=Force will achieve the same result.
These coupled with setting the property REBOOTPROMPT=S will perform the reboot without interaction otherwise the user will be prompted to reboot.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.