Hello,
I'm creating a project using Advanced Installer 11.4.1 Enterprise edition.
I've created the new project with an attached .dll that is set to run as custom action (.NET Installer Class action).
The action is the last before the 'Finish Execution'.
In 'Execution Time' I've selected 'After the system has been successfully modified (commit).
In 'Execution Options' I've selected both 'Wait for custom action to finish...' and' Fail installation if custom...'
Everything is working without any problems if all parameters are entered properly and nothing is missing during installation.
My problem is that when something is missing when running the .NET custom action, the action throws an exception (InvalidOperationException) but the installation process won't fail and finishes successfully.
I don't know why and I need the installation to fail when the custom actions throws an exception.
I'd appreciate your assistance in solving this issue.
Regards,
Oren