profquail
Posts: 10
Joined: Fri May 20, 2011 8:57 pm

Function Name for .NET Custom Action?

Hi AI Team,

I've created a custom installer action in .NET which derives from the System.Configuration.Install.Installer class and has the System.ComponentModel.RunInstallerAttribute set to true (all of which is stated in the AI User Guide). However, I'm not sure what to put in the "Function Name" textbox on the Custom Action Properties page; it defaults to "LaunchDotNetCustomAction", but when I build the installer and run it, the installer shows a dialog saying there was a problem with the DLL.

Any help would be much appreciated -- the rest of our installer works great, I'm just stuck on this very last part.

Cheers,
Jack

EDIT : I should've mentioned -- my "Source Path" (in the dialog) is set to the .NET DLL I'm calling. Does that need to point to some other native DLL that exports the LaunchDotNetCustomAction function?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Function Name for .NET Custom Action?

Hi Jack,

When creating a .NET Installer class action you need to use the default values for Source Path (<AI_CUSTACTS>dotNetCustAct.dll) and Function Name (LaunchDotNetCustomAction). This is an Advanced Installer DLL which handles your custom action.

You are prompted for your DLL when creating the action. After that, you can modify the action parameters (including your DLL path) through the "..." button in "Action Data" field.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
profquail
Posts: 10
Joined: Fri May 20, 2011 8:57 pm

Re: Function Name for .NET Custom Action?

Thanks Cosmin, it works now!

Return to “Common Problems”