skylinefighterx
Posts: 17
Joined: Wed Apr 25, 2012 12:25 am

Java Supported in vbs?

Hi,
In my advanced installer vbs script, I am trying to run java -jar, but it keeps on saying 'java' is not recognized error. I am running it from the wshell script run command.

When I run the same vbscript outside of advanced installer it works find. For some reason java is not found when advanced installer runs its vbscript. Does Advanced Installer have a different type of space where it runs vbs? How would I get java -jar to work in vbs running through AI,

thanks
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Java Supported in vbs?

Hello,

I'm not sure why you encountered this behavior.
Can you please take a look on the Why does my VBScript custom action fail to run? FAQs and see if this is you case too?

Also, you can try to create a search operation in the Search page which will search the path of Java.exe and use this property inside your VBScript.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”