Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Schedule Reboot from Rollback Custom Action


1 reply to this topic

simdoc

simdoc
  • Full Members
  • 4 posts

Posted 24 January 2012 - 18:51

I've seen this asked before on the web, but never answered. How can you schedule a reboot during a rollback custom action (type 3329).

I can schedule reboots during deferred custom actions using tricks like creating temporary files then executing MsiSetMode(hInstall, MSIRUNMODE_REBOOTATEND
) in an immediate custom action after InstallFinalize. How can something similar be done for a rollback?

Unfortunately, I have to reboot as the installation has installed a 3rd party filter driver that must also be started during install to allow for configuration. If the rollback is started after the installation of this driver, the reboot will be required.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 January 2012 - 15:16

So installing and starting the driver doesn't require a reboot, but removing it does?