/build/static/layout/Breadcrumb_cap_w.png

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.

0 Comments   [ + ] Show comments

Answers (6)

Posted by: case2k5 16 years ago
Orange Belt
0
Is the app being deployed via SMS or another deployment program?
Posted by: AngelD 16 years ago
Red Belt
0
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>
Posted by: linstead 16 years ago
Blue Belt
0
why not use a vbscript to reboot after the application is done installation, like case2k5 said how are you deploying it.
Posted by: AngelD 16 years ago
Red Belt
0
The question was regarding rebooting when the Finish button is pressed so deployment solution may not be valid for this request.
Posted by: stevematt41 16 years ago
Senior Yellow Belt
0
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?
Posted by: Jamie B 16 years ago
Orange Senior Belt
0
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ