Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

MessageBox

Updated: 22 May 2010 | 4 comments
Rivin's picture
0 0 Votes
Login to vote
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

EdT's picture
26
Nov
2009
0 Votes 0
Login to vote

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.

Rivin's picture
26
Nov
2009
0 Votes 0
Login to vote

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

EdT's picture
27
Nov
2009
0 Votes 0
Login to vote

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.

Rivin's picture
27
Nov
2009
0 Votes 0
Login to vote

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"