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
- :
- Display dialog panel based on Java Custom Action return value
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
May 20, 2013
06:43 PM
Display dialog panel based on Java Custom Action return value
Hi all,
I am stucking on this problem for 2 days now, please help.
I have installshield 2012 professional version and I am able to invoke my Java application (custom action) from installshield.
My Java application throws Exception if the operation fails. And if so I want the installer display a dialog with the exception message I thrown to the user and return to the installer panel where they are.
However as soon as the custom action throws exception (Which means the application didn't end with code 0) installshield consider the installation process fails.
I've tried many ways such as creating a temp file or registry key but the condition builder for dialog behavior only look into the properties managed by "Property Manager". And when I go to "Property manager" view it seems only accept hard coded value or existing local value. I am seeking for setting the property value from my Java application but I don't know how.
Please help.
Really appreciate.
I am stucking on this problem for 2 days now, please help.
I have installshield 2012 professional version and I am able to invoke my Java application (custom action) from installshield.
My Java application throws Exception if the operation fails. And if so I want the installer display a dialog with the exception message I thrown to the user and return to the installer panel where they are.
However as soon as the custom action throws exception (Which means the application didn't end with code 0) installshield consider the installation process fails.
I've tried many ways such as creating a temp file or registry key but the condition builder for dialog behavior only look into the properties managed by "Property Manager". And when I go to "Property manager" view it seems only accept hard coded value or existing local value. I am seeking for setting the property value from my Java application but I don't know how.
Please help.
Really appreciate.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 21, 2013
03:28 AM
It is the behavior of Microsoft Windows Installer. Excerpt from Custom Action Type 2, Custom actions that are executable files must return a value of 0 for success. The installer interprets any other return value as failure.
If your executable custom action writes to temp file/registry to communicate back to the installation, you will need a separate custom action after the executable custom action to read it and set property accordingly, before you can use the property to conditionally display a dialog.
DLL and script custom actions are easier when it comes to setting value of property. You may want to consider changing your custom action type.
If your executable custom action writes to temp file/registry to communicate back to the installation, you will need a separate custom action after the executable custom action to read it and set property accordingly, before you can use the property to conditionally display a dialog.
DLL and script custom actions are easier when it comes to setting value of property. You may want to consider changing your custom action type.