tslewis
Posts: 65
Joined: Wed Mar 13, 2013 7:06 am

javascript custom action issues and wish list

I am using VS2012 as my IDE to debug and edit javascript for a custom action to be used to remove files after installation

I have found several issues with javascript and the VS2012 IDE with Advanced Installer

1) Advanced Installer fails when it points directly to the javascript file produced and used by VS2012. Why is this? I have to copy and paste the javascript to notepad and save to another file for Advanced Installer to run the javascript. I want to use VS2012 for intellisense, code snippets and general usability for JavaScript.
2) Advanced installer does not appear to like the trim operator on a javascript string object. This is a big limitation. My code will bum out if I use this operator.
3) Please can you provide syntax or example to allow a javascript custom action to be debugged in VS2012. Similar to the DEBUG and attach to process example for debugging using a custom action defined from the installer class.

I have attached an example AIP file and javascript to illustrate issue 2

cheers
Attachments
Setup.aip
(13.95 KiB) Downloaded 372 times
test.js
(1.38 KiB) Downloaded 428 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: javascript custom action issues and wish list

Hello,
1) Advanced Installer fails when it points directly to the javascript file produced and used by VS2012. Why is this? I have to copy and paste the javascript to notepad and save to another file for Advanced Installer to run the javascript. I want to use VS2012 for intellisense, code snippets and general usability for JavaScript.
2) Advanced installer does not appear to like the trim operator on a javascript string object. This is a big limitation. My code will bum out if I use this operator.
I'm not sure why this happens. Can you try to manually run the related script and see if it runs ok?
3) Please can you provide syntax or example to allow a javascript custom action to be debugged in VS2012. Similar to the DEBUG and attach to process example for debugging using a custom action defined from the installer class.
I'm afraid we don't have an example regarding this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”