oren
Posts: 11
Joined: Mon Sep 03, 2012 5:24 pm

Install won't fail after .NET Installer Class error

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
oren
Posts: 11
Joined: Mon Sep 03, 2012 5:24 pm

Re: Install won't fail after .NET Installer Class error

PROBLEM SOLVED!

Sorry for the inconvenience but during my posting and now, I've recreated the .dll and AI project from scratch (followed the same steps) and everything seams to work perfectly.

Regards,
Oren
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install won't fail after .NET Installer Class error

Hi Oren,

I'm glad you got this working. Just let us know if any problem appears.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”