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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Is the app being deployed via SMS or another deployment program?
Answered 11/25/2008 by: case2k5
Orange Belt

Please log in to comment
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>
Answered 11/25/2008 by: AngelD
Red Belt

Please log in to comment
0
why not use a vbscript to reboot after the application is done installation, like case2k5 said how are you deploying it.
Answered 11/25/2008 by: linstead
Blue Belt

Please log in to comment
0
The question was regarding rebooting when the Finish button is pressed so deployment solution may not be valid for this request.
Answered 11/25/2008 by: AngelD
Red Belt

Please log in to comment
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?
Answered 11/26/2008 by: stevematt41
Senior Yellow Belt

Please log in to comment
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.
Answered 11/26/2008 by: Jamie B
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity