dscsekhar
Posts: 11
Joined: Mon Jul 20, 2009 7:34 am

UI Custom Action DLL with dependencies

Hi,

I have a situation where I have to validate a license key (custom approach). The need to do this on the Wizard page itself and if valid only then proceed to next page. Since, the UI Custom Actions can take only unmanaged assemblies I created a C++ class to test it. It worked.

All my License Validation code is present in Managed code (C#). Is there a way to call the .Net assembly directly from Installer? If it is not possible, then the approach would be to write a C++ library and invoke the Managed code from there. This approach would make the C++ dll depend on the Managed assembly, Which means multiple libraries to support the Custom Action.

Is this possible? Please help.

Thanks,
Chandra
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: UI Custom Action DLL with dependencies

Hi Chandra,

Unfortunately Windows Installer doesn't support managed code custom actions. If you decide to call the managed code from a C++ DLL you add the custom action dependencies as temporary files.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”