cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Pilgrim

How to write java code in install shield

Hello Team,

I am new to install shield and have a very limited knowledge on this topic.
If my question is repetitive then apologies in advance.

Can anyone help me to trigger java code from install shield ?
or
Can we include java code into install shield ?

Let me know i would be grateful for the help 🙂

Regards,
CR
Labels (1)
Tags (2)
0 Kudos
1 Reply
Highlighted
Pilgrim

Re: How to write java code in install shield

Generally, languages that the installer engine doesn't natively support (and InstallShield doesn't provide a solution to support) require you to either use script or a SystemSearch/EXE custom action to find the command line interpreter (probably javaw.exe, yes?) and pass in the path to the file to execute.

This solution prevents you from accessing the MSI API, which lets you do things like read/set property values, write to the log file, etc. If you're just starting this is probably not that onerous of a limitation.

If this is a dealbreaker, there's the enticing possibility of finding (or writing) an ActiveScript bridge to Java, which would let you host the Java engine under Msiexec.exe. But that's expert level stuff, and I've never found any pre-existing ActiveScript bridge that did anything but crash when loading under Msiexec.exe. (There's a couple of exceptions: VBScript and Javascript, both of which are natively supported already...)
0 Kudos