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
- :
- Re: User cancel in CustomBeans
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
Mar 27, 2006
09:51 AM
User cancel in CustomBeans
Hi,
I have the problem that the cancel of a custom ProductAction bean is shown as a regular exception with the remark to look at the installers log file.
If build-in actions are cancelled, the installer shows a "Cancelled by user"-message.
In the custom bean, I check for isCanceled and throw a ProductException( ProductException.PRODUCT_ACTION_INSTALL_FAILED, "..." ). I think this is as it is documented - however, I can not see how I can bring up a sensfull message at the end...
Has anyone had a similar problem or workarround for this.
Thanks in advance!
Heiko
I have the problem that the cancel of a custom ProductAction bean is shown as a regular exception with the remark to look at the installers log file.
If build-in actions are cancelled, the installer shows a "Cancelled by user"-message.
In the custom bean, I check for isCanceled and throw a ProductException( ProductException.PRODUCT_ACTION_INSTALL_FAILED, "..." ). I think this is as it is documented - however, I can not see how I can bring up a sensfull message at the end...
Has anyone had a similar problem or workarround for this.
Thanks in advance!
Heiko
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 28, 2006
03:41 AM
Since I didn't find a solution for this and got no feedback so far, I used the following workarround:
In the "isCanceled" code of the custom bean throw the ProductException as specified. In addition set a database variable "InstallationCanceldByUser" and evaluate this variable in the PostInstallSummary dialog... :
Not nice - but it works for me right now.
Heiko
In the "isCanceled" code of the custom bean throw the ProductException as specified. In addition set a database variable "InstallationCanceldByUser" and evaluate this variable in the PostInstallSummary dialog... :
Not nice - but it works for me right now.
Heiko
![](/skins/images/5FB1DCEA872798BEE7CD361DEA8CBE31/responsive_peak/images/icon_anonymous_message.png)