This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to write java code in install shield
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 22, 2017
04:09 AM
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
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
- Tags:
- install shield
- java
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 05, 2017
12:34 PM
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...)
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...)
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)