MessageBox
Updated: 22 May 2010 | 4 comments
This issue has been solved. See solution.
Hi guys.
I need to display the message at the very beginning of the install in case if there is some third party application is installed, then to ask user if he want to go back and uninstall this or just cancel this error mesage and comtinue.
I was trying to run VScript from Embedded Code after the CostInitialize in User Interface, but it always returm me an error 1720
vbscript:
session.property("YOURPROPERTY") = msgbox "Your question here", 4100, "Your messagebox title here"
discussion Filed Under:
Comments
Code needs brackets
Try:
session.property("YOURPROPERTY") = msgbox ("Your question here", 4100, "Your messagebox title here")
Brackets are required around the msgbox command arguments when you are setting a variable to the return value. Grab a copy of the script56.chm help file which comes with the WSH download and have it on your quicklaunch bar. It has lots of code samples that will help you solve these sorts of issues.
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Thank you . It helped to
Thank you . It helped to display the message box, but now when I press Yes or No it pops up same error 1720
Have you provided the entire script?
Have you provided the entire script? If no, please publish the entire script
If yes, try this alternative:
Dim A
A = msgbox( "Your question here", 4100, "Your messagebox title here")
session.property("YOURPROPERTY") = A
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Hi EdT thank you it worked
Hi EdT thank you it worked the way you said. the only change I had to do is adding "" around A:
session.property("YOURPROPERTY") = "A"
Would you like to reply?
Login or Register to post your comment.