MsgBox - but 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!

canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

MsgBox - but in JScript?

Hello everyone.

Can anyone tell me how to popup a message box in "Windows Installer" using JScript, similar to VBScript's "MsgBox"?


With best regards

Clemens Anhuth
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: MsgBox - but in JScript?

Hello everyone,

I found it:

var shell = new ActiveXObject("WScript.Shell");
shell.Popup("text");

2008-10-09:
Also see Popup Method.

Note the undocumented nType value 4096: Adding that to nType makes the Dialog "stay on top" - meaning that it cannot pushed or put into the background. This is something you probably want to use to avoid that your dialog/popup is hidden behind another window (for example the installer window).



With best regards

Clemens Anhuth


Keywords: popup popups dialog dialogs
Last edited by canhuth on Fri Oct 10, 2008 8:46 am, edited 1 time in total.
romainpi
Posts: 2
Joined: Thu Oct 09, 2008 10:58 am

Re: MsgBox - but in JScript?

Yeah couldn't find that thread, I guess I searched for Javascript and MessageBox or Message Box... Now that text is in the thread whoever searches these words will find them here ;)

Return to “Common Problems”