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
- :
- Re: Display a message box on dialog initialization
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
Jul 11, 2010
07:39 AM
Display a message box on dialog initialization
Hello,
I have a basic msi project. Here is my requirement:
I verify the state of certain services using a custom action just before the finish dialog is displayed. Once i have verified this, i would like to display a message box informing the user that few of the services are stopped.
However i would like to display this message box the moment the Install Finish dialog is displayed ie. upon InstallFinish dialog initialization. Is there a way to do this in a basic msi project?
Any help would be very much appreciated.
Regards,
Kiran Hegde
I have a basic msi project. Here is my requirement:
I verify the state of certain services using a custom action just before the finish dialog is displayed. Once i have verified this, i would like to display a message box informing the user that few of the services are stopped.
However i would like to display this message box the moment the Install Finish dialog is displayed ie. upon InstallFinish dialog initialization. Is there a way to do this in a basic msi project?
Any help would be very much appreciated.
Regards,
Kiran Hegde
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 12, 2010
11:17 AM
Hi Kiran,
The easiest thing to do would be to show your message box when the user hits the Finish button on the SetupCompleteSuccess dialog (final success dialog). If this does not meet your requirements, and instead you have to have a message box displayed immediately when SetupCompleteSuccess dialog is displayed, then you can look into trying a more advanced technique:
Create the custom action that displays the message box and give it a sequence number of -1 in the InstallUISequence table. This will cause MSI to run your custom action upon successful installation instead of displaying the SetupCompleteSuccess dialog. So you will have to launch the dialog from your custom action using MsiDoAction or equivalent API call. This approach does complicate your install, and it may be considered against best practice, but it does seem to work without issues.
-Ajay
The easiest thing to do would be to show your message box when the user hits the Finish button on the SetupCompleteSuccess dialog (final success dialog). If this does not meet your requirements, and instead you have to have a message box displayed immediately when SetupCompleteSuccess dialog is displayed, then you can look into trying a more advanced technique:
Create the custom action that displays the message box and give it a sequence number of -1 in the InstallUISequence table. This will cause MSI to run your custom action upon successful installation instead of displaying the SetupCompleteSuccess dialog. So you will have to launch the dialog from your custom action using MsiDoAction or equivalent API call. This approach does complicate your install, and it may be considered against best practice, but it does seem to work without issues.
-Ajay
