|
ShowMessage Method |
Top Previous Next |
|
Displays a message dialog. [VBScript] res = Installer.ShowMessage(Text, Title, Flags)
[JScript] res = Installer.ShowMessage(Text, Title, Flags); Parameters Text The message text. Title The message window title. Flags Numeric expression that is the sum of values specifying the number and type of buttons to display and the icon style to use. See Remarks section for values. Use numeric constants or their symbolic equivalents in VBScript. Remarks This method displays the message dialog, waits for the user to click a button, and returns a value indicating which button was clicked. The return value is numeric and may be one of the following values:
The Flags parameter should contain the combination of the following values:
Refer to the documentation of a MessageBox function for more details. Installer variables are supported in the following parameters: Text and Title. To emit the value of installer variable MyVar, use the following form: ${MyVar}. Uninstall support This action does not support uninstallation. Example (VBScript) res = Installer.ShowMessage("Do you wish to visit the ${ProductName} web site?", _ "Finishing installation", vbYesNo+vbExclamation) If res = vbYes Then Installer.RunProgram "http://www.awinstall.com/moreinfo.html", "", False End If Example (JScript) res = Installer.ShowMessage("Do you wish to visit the ${ProductName} web site?", "Finishing installation", 4 + 48); if (res == 6) Installer.RunProgram("http://www.awinstall.com/moreinfo.html", "", false); |