In an InstallScript-based installation, people often wonder how to enable or disable the status dialog that is displayed during the file transfer phase of an installation. It’s actually quite easy.
In the default InstallScript event handlers OnFirstUIBefore, OnFirstUIAfter, OnMaintUIBefore and OnMaintUIAfter, there are calls to the Enable() and Disable() functions which control the display of the status dialog.
The screenshot below is of the end of the OnFirstUIBefore handler and the beginning of the OnFirstUIAfter handler.
Enable/Disable Status Dialog in OnFirstUIBefore and OnFirstUIAfter
Notice how the STATUSEX parameter is passed to the function calls. This signals to use the standard Setup Status dialog.
The same things happen in the default maintenance event handlers. The screenshot below is of the end of the OnMaintUIBefore handler and the beginning of the OnMaintUIAfter handler.
Enable/Disable Status Dialog in OnMaintUIBefore and OnMaintUIAfter
Notice the same thing is happening here.
There are also different types of status dialogs that can be displayed based on the parameter passed to Enable() and Disable(). Here are the possibilities:
- STATUS – this is a normal progress indicator (status bar).
- STATUSBBRD – this is a progress dialog that includes a billboard.
- STATUSDLG – this is a dialog-style progress indicator.
- STATUSEX – this is the standard Setup Status dialog.
- STATUSOLD – this is the old style progress indicator which does not have a Cancel button.