sbaebler
Posts: 18
Joined: Wed Oct 08, 2008 10:15 am

Check return code of Custom Action but proceed on error

When using Custom Actions, Advanced Installer offers 4 options:

Synchronous and Asynchronous call of the actions and check or ignore return code in both cases.

When check return code is chosen, the installer notifies the user if an error occured during that custom action and aborts the installation. If the custom action is sucessful, the installation is finished normally.

Sometimes it might be useful to tell the user that a custom action has not succeeded but still finish the installer.

We have a product that has two custom actions that sometimes fail due to a special configuration of the users system. He then can not install the product. The two custom actions are only affecting one special part of the prodcut that many customers do not use, so it would be much better if they could install it anyway but are aware that there occured an error with that certain component.

The feature request is thus to extend the Custom Actions return code behaviour of Advanced Installer by an option a la "Notify on error but proceed".
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Check return code of Custom Action but proceed on error

Hi,

Unfortunately this is not supported by Windows Installer. However, it can be easily handled from within your custom action. Inside your custom action you can show a message to the user when an error occurs and always return zero. This way the user is informed about the error and the install continues.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbaebler
Posts: 18
Joined: Wed Oct 08, 2008 10:15 am

Re: Check return code of Custom Action but proceed on error

Oh, too bad it's not supported by Windows Installer.

But thank you for the hint. I'll implement it that way.

Return to “Feature Requests”