MessageBox in JScript - 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!

romainpi
Posts: 2
Joined: Thu Oct 09, 2008 10:58 am

MessageBox in JScript

Hello there,

Could anybody help me out, im trying to make a very simple alert box in Javascript, inside a Custom Action, can't seem to be able to make it work.

I tried the following:
alert("Hello");
window.alert("Hello");
WScript.Echo("Hello");
Echo("Hello");

None of these work... Has anybody got a clue? Obviously it works out of the box in VBScript with MsgBox("Hello").

Thanks in advance! 8)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: MessageBox in JScript

Hi,

Please note that Windows Installer already uses the WScript host, therefore you don't have to use it in your code.

Please note that there is a similar forum thread which contains some sample code:
http://www.advancedinstaller.com/forums ... f=2&t=7652

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”