This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Detect if the system has been rebooted
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 24, 2008
05:26 AM
Detect if the system has been rebooted
I am developing an InstallScript MSI project. To complete the installation, the system should be rebooted, but the user can choose to reboot it at this moment or later. But before the application can be reinstalling or uninstalling, the system should be rebooted if it wasn't rebooted since the last time. How can I detect if the system has been rebooted after the installation?
Thank you for your ideas.
Thank you for your ideas.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 24, 2008
11:33 PM
I m not sure how do we find whether the system has rebooted. May be the experts can guide you, if there is a direct solution.
But as a work around, u can add a dummy entry in the 'Run Once' registry during installation of your application.
Once the system is rebooted, the run once registry entry will be executed and then deleted.
So, during Repair or uninstall, u can check whether this entry is available and then u can decide to continue or abort the repair or uninstall based on this condition.
Hope this helps.
But as a work around, u can add a dummy entry in the 'Run Once' registry during installation of your application.
Once the system is rebooted, the run once registry entry will be executed and then deleted.
So, during Repair or uninstall, u can check whether this entry is available and then u can decide to continue or abort the repair or uninstall based on this condition.
Hope this helps.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)