PDA

View Full Version : User cancel in CustomBeans



HeikoOtt
03-27-2006, 10:51 AM
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

HeikoOtt
03-28-2006, 04: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