VBScript Inline problem (6.7) - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

VBScript Inline problem (6.7)

()Hi AI Support,

Below a sample VBScript Inline which is not working :

MsgBox(Session.property("ProductName"), 4144, Session.property("ProductName") + " " + Session.property("ProductName"))

Can you tell me where is the problem ?

Thanks,

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: VBScript Inline problem (6.7)

Hi Phil,

Please note that the parameters of the MsgBox function should not be surrounded by parentheses. Therefore, a correct command would be:

Code: Select all

MsgBox Session.property("ProductName"), 4144, Session.property("ProductName") + " " + Session.property("ProductName")
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Re: VBScript Inline problem (6.7)

Thanks Cosmin ! It works !

Return to “Common Problems”