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
- :
- Displaying a message box
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
Apr 24, 2013
09:22 PM
Displaying a message box
Hello all,
I would like to show a message box with an "OK" for the user to dismiss during setup.
I had tried add a vbScript to do so:
1. Created a file and named script.vbs
2. The file has one line - MessageBox ("The text I need", WARNING);
3. Added a Custom action Before the Welcome screen and named it Exfn_MessageBox
4. Set the File Name to where my .vb file is
When the installation reached the point where the script should it run it showed an error message saying "Error 1720. There is a problem with this Windows installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action Exfn_MessageBox script error -2146827264, Micros..."
What have I done wrong? Is there a better way to create a message box?
Thanks,
Asaf
I would like to show a message box with an "OK" for the user to dismiss during setup.
I had tried add a vbScript to do so:
1. Created a file and named script.vbs
2. The file has one line - MessageBox ("The text I need", WARNING);
3. Added a Custom action Before the Welcome screen and named it Exfn_MessageBox
4. Set the File Name to where my .vb file is
When the installation reached the point where the script should it run it showed an error message saying "Error 1720. There is a problem with this Windows installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action Exfn_MessageBox script error -2146827264, Micros..."
What have I done wrong? Is there a better way to create a message box?
Thanks,
Asaf
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 25, 2013
05:36 PM
Make sure that you have no syntax errors in your VBScript. You can verify it by running your script manually outside your installation. I am able to run a VBScript that contains the following line from a custom action in a setup built using InstallShield Express.
MsgBox "Hello"
MsgBox "Hello"
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)