Inline Script Execution (Java Script) failed - 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!

projectmaster
Posts: 11
Joined: Wed Jan 06, 2010 12:56 pm

Inline Script Execution (Java Script) failed

Dear Support Team,

We have a problem with executing Java Script.

We added a custom action to the InstallExecuteSequense > Install. The Inline Script

Code: Select all

alert("Test"); 
causes a error message while executing the exe-File.
Error message is: "Unexpected Error, Error-Code: 2826. arguments: FatalError, BottomLine, to the right"

However, vbs-script works.

Unfortunately we can´t find a precise describtion for integrating and creating custom scripts on your page. I would be very helpful if you could supply a manual concretising script usage for java script.

Thanks for your help in advance.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Inline Script Execution (Java Script) failed

Hello,

Please note that Windows Installer was never intended to communicate with JScript as it does with VBScript through the Session Object. This means you can not pass data to and from your JScripts. Nonetheless you can still run JScript custom actions using wscript as a custom action.

For wscript's command line options, run:

Code: Select all

wscript /?
You can launch a jscript for example using a "Launch File or Open URL" custom action with the following in the Command Line field:

Code: Select all

wscript.exe <your full path to jscript>
Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”