/build/static/layout/Breadcrumb_cap_w.png

How do I make a PC reboot automatically after uninstalling the MSI?

Hi All,

I need help. [:o] How do I make a PC reboot automatically after uninstalling the MSI? I don’t want the users prompted to click YES or No. I’m running IS 11.5 and I’ve tried many different options, please advise.



My standard actions were in-between "After PublishProduct” and before “InstallFinalize”

Here is what I’ve tried to no avail. [:@].
1. ScheduleReboot + Not REMOVE="ALL" = reboot after install, login fine, & no reboot after uninstall
2. ScheduleReboot + REMOVE<"ALL" = reboot after install, login fine, & no reboot after uninstall
3. ScheduleReboot + REMOVE<>"ALL" = reboot after install, login fine, & no reboot after uninstall
4. ScheduleReboot + REMOVE>"ALL" = no reboot after install, & no reboot after uninstall
5. ScheduleReboot + (REMOVE<>"ALL") = reboot after install, login fine, & no reboot after uninstall
6. ScheduleReboot + (Not AFTERREBOOT) = reboot after install, login fine, & prompts to reboot after uninstall
7. ScheduleReboot + Not AFTERREBOOT = reboot after install, login fine, & prompts to reboot after uninstall
8. ScheduleReboot + AFTERREBOOT = no reboot after install, & no prompts to reboot after uninstall
9. ForceReboot + Not AFTERREBOOT = reboot after install, login fine, & reboot after uninstall, login not fine & runs Win Installer could not open error
10. ForceReboot + Not (REMOVE="ALL") = reboot after install, login fine, & no reboot after uninstall
11. ForceReboot + Not REMOVE="ALL" = reboot after install, login fine, & no reboot after uninstall
12. ForceReboot + REMOVE="ALL" = no reboot after install, & prompts to reboot after uninstall
13. ForceReboot + REMOVE>"ALL" = no reboot after install, & no reboot after uninstall
14. ForceReboot + REMOVE<>"ALL" = reboot after install, login fine, & no reboot after uninstall
15. ForceReboot + REMOVE<>ALL = no reboot after install, prompt to reboot after uninstall, login fine
16. ForceReboot + REMOVE>ALL = no reboot after install, prompt to reboot after uninstall, login fine

Thanks,
Rob

0 Comments   [ + ] Show comments

Answers (7)

Posted by: MSIPackager 17 years ago
3rd Degree Black Belt
0
Try the REBOOTPROMPT property.

Cheers,
Rob.
Posted by: Trooper23 17 years ago
Orange Belt
0
Hey Rob,

Thanks, I tried that also but it reboots after install. I deploy MSI’s via Novell NAL and I can make the PC reboot after install no biggy. But we just need it to reboot after uninstall only and yes the suppress would work there. Would you know what Standard Action that Property goes with?

Thanks,
Rob
Posted by: MSIPackager 17 years ago
3rd Degree Black Belt
0
Hey,

Can't you use the ScheduleReboot action with a condition of REMOVE="ALL" along with the REBOOTPROMPT property to get a reboot on uninstall only with no prompt..?

Cheers,
Rob.
Posted by: spartacus 17 years ago
Black Belt
0
First, set the REBOOTPROMPT property to "Suppress", then create a custom action VB script containing a single line :

[font="Courier New"]session.mode(6) = TRUE 'set the msiRunModeRebootAtEnd flag to True

Add the condition REMOVE~="ALL" to the custom action and then it will only be run on an uninstallation.

Regards,

Spartacus
Posted by: Trooper23 17 years ago
Orange Belt
0
Hi Rob,

I'm still being prompted to reboot after uninstall. Any other ideas?
thanks,
Rob
Posted by: Trooper23 17 years ago
Orange Belt
0
Hi Spartacus,

Same thing, I'm still being prompted to reboot after uninstall. Any other ideas? What should the Return Processing and In-Script Execution be? I was using Deferred Execution in System Context.

thanks,
Rob
Posted by: MSIPackager 17 years ago
3rd Degree Black Belt
0
I don't get why the REBOOTPROMPT property isn't working.

Have you got a UI with the install / uninstall?

If you set it with no UI (msiexec /qn etc etc) then it will reboot without prompting (see here) but if you need a UI then I guess this is not an option...

Good luck,
Rob.
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