Summary
Will show you how to prevent reboot dialog from appearing.
Synopsis
During an InstallScript installation, the reboot finish dialog may appear instead of the default finish dialog. This knowledge base article will show you why this is the case and how you can prevent the reboot dialog from appearing.
Discussion
There is an InstallScript boolean variable BATCH_INSTALL which is used to determine if a reboot is needed or not. It's initally set to FALSE, but during the course of data transfer the InstallScript engine will set this to TRUE if it encounters a situation where a reboot is needed (...locked file, etc).
Now the logic in our various UIAfter() events will check on this BATCH_INSTALL variable and display either a standard finish dialog or a reboot dialog. So you can force the standard finish dialog to always appear by simply setting BATCH_INSTALL to FALSE.
NOTE: This will result in your install/uninstall not being fully completed. The Windows Installer service is probably prompting for a reboot because there are files that are locked and it will remove upon reboot.
Workaround
To prevent the reboot dialog from appearing during an installation, go to the OnFirstUIAfter() event and set BATCH_INSTALL to FALSE...BATCH_INSTALL=FALSE:
...after the 'begin' statement. Doing this will force the existing logic to display the default finish dialog.
To do the same during an uninstall/maintenance, make sure you add the OnMaintUIAfter() event and make the changes in this event. For an update, make sure you add the OnUpdateUIAfter() event.
Additional Information
You can look at the InstallScript Language Reference in the help documents for more information on Event Handlers.
Related Articles
Preventing Applications from Appearing in Add/Remove Programs 3Number of Views Preventing Dialogs from Being Called in an Installation 3Number of Views Adobe aggregation completes successfully but data does not appear in Snow License Manager 50Number of Views Displaying a File Browse Dialog in an InstallScript Project 3Number of Views Make a Copy of an Existing InstallScript Dialog 3Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago