Exception in Attached Custom Action - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Marcel
Posts: 7
Joined: Mon Feb 08, 2010 12:40 pm

Exception in Attached Custom Action

Hello,

After the installUISequence-MigrateFeatureStates i have an Attached Custom action,
which does a function call in a dll.
Within that function, certain things are checked and it IS possible that an exception is thrown.
However, i handle the exceptions by setting a property value in the installer and return an Error_Success.
The problem however is that after the funtion returns, the installation stops working where i even can't
use the cancel button to abort the installation.

Any ideas on why this happens ?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Exception in Attached Custom Action

Hi,

Can you please send us the aip file you are using and a verbose log created while the installation fails
to support at advancedinstaller dot com so we can investigate the problem?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Marcel
Posts: 7
Joined: Mon Feb 08, 2010 12:40 pm

Re: Exception in Attached Custom Action

I did some further investigations and found out the function never returns to the installer.
In the log it just shows as Doing Action: MyAction and it simply stops.
I think it has something to do with the functionality used in that dll.
I was trying to use the function to check if i could make a connection to a Firebird Database.
The fbclient library is embedded as a resource within the dll which i extract to make sure i can use it (works fine if i can actually connect).
However, if there is no firebird database server installed trying to connect will throw an exception which i simply handle by not
re-raising it but returning ERROR_SUCCES after i've set a property in the installer.
So i think the problem lies in the dll not being able to be unloaded.
Still trying to find a way to make it actually work.
Marcel
Posts: 7
Joined: Mon Feb 08, 2010 12:40 pm

Re: Exception in Attached Custom Action

Found a solution to get it working.. and for the cause i think i can simply blame CodeGear Delphi 2009 and their db components.
I had to switch back to Delphi 7 using IBObjects (which has their own implementation of the Firebird Client Library) and it ran
without any problems.
I think it has something to do with the unloading of the dll (I asume the custom action uses a freelibrary to unload it).
Thanks anyway for the fast response.

Return to “Common Problems”