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
- :
- MsgBox inside Custom Action
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
‎Jun 11, 2008
01:55 AM
MsgBox inside Custom Action
Can we have the MsgBox inside the VBScript CA?
Is it advisible?
Is it advisible?
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
10:20 AM
Yes you can. We suggest them all the time as a quick debugging tool, for instance to verify that the CA is being called when you expect it to be. But as for whether it's advisable, that depends on when, how, and why you're using it. Using it for quick debugging purposes are great, although for deeper debugging you'll probably prefer MSI logging. Using it to ask a question of the user during the UI sequence is okay, although it's probably better to use an MSI dialog. Using it during the execute sequence for anything other than debugging is almost always a bad idea, as the execute sequence is supposed to be silent.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
10:53 PM
Thanks Michael,
I am not using the MsgBox for debugging purpose.
Actually, we need to show a pop up msg to the user during installation when winword is opened.
I was using an Error Custom Action for this purpose. But, this CA contains only Ok button.
I am asked to show 2 buttons with 'Retry' and 'Cancel'. so when the user clicks 'retry' the script may again run until all instances of winword is closed. When cancel is clicked the installation is aborted.
I am not sure whether Installshield supports this kind of in-built msg boxes.
That s y i am asking whether i can show a pop up msg box with vbscript and perform my action.
Is this advisible?
I am not using the MsgBox for debugging purpose.
Actually, we need to show a pop up msg to the user during installation when winword is opened.
I was using an Error Custom Action for this purpose. But, this CA contains only Ok button.
I am asked to show 2 buttons with 'Retry' and 'Cancel'. so when the user clicks 'retry' the script may again run until all instances of winword is closed. When cancel is clicked the installation is aborted.
I am not sure whether Installshield supports this kind of in-built msg boxes.
That s y i am asking whether i can show a pop up msg box with vbscript and perform my action.
Is this advisible?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
10:55 PM
BTW, this msg was posted by my colleague 'TheResearch' on my behalf.
Thanks.
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
10:57 PM
script ca's aren't really that great of a choice to tell you the truth. Beyond that, I don't really have a good enough mental picture of exactly what you are trying to do to give you additional advice.
If you do want vbscript, checkout
http://www.w3schools.com/VBScript/func_msgbox.asp
You can tell it which buttons to display and you can check the return code and act on it. Also keep in mind that you can also author custom dialogs in MSI and do the same thing without custom actions.
If you do want vbscript, checkout
http://www.w3schools.com/VBScript/func_msgbox.asp
You can tell it which buttons to display and you can check the return code and act on it. Also keep in mind that you can also author custom dialogs in MSI and do the same thing without custom actions.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 11, 2008
11:24 PM
Thanks Chris,
I have the VBScript funtion in hand and its working fine. Just wanted to know whether displaying a msgbox in a release product is advisible.
Or, instead of using a msgbox inside a VBscript CA can i use a 'Custom Dialog' which does the same work(displays the msg). That is, can i call a Cusom Dialog from a Vbscript CA and proceed based on the user selection??
Is this possible? Also, advise me if i am thinking in the right direction.
Thanks.
I have the VBScript funtion in hand and its working fine. Just wanted to know whether displaying a msgbox in a release product is advisible.
Or, instead of using a msgbox inside a VBscript CA can i use a 'Custom Dialog' which does the same work(displays the msg). That is, can i call a Cusom Dialog from a Vbscript CA and proceed based on the user selection??
Is this possible? Also, advise me if i am thinking in the right direction.
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 12, 2008
12:38 AM
How do i call a Custom Dialog from a VB Script Custom action??
Thanks
Thanks