cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
HeikoOtt
Level 4

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
Labels (1)
0 Kudos
(1) Reply
HeikoOtt
Level 4

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
0 Kudos