estebanf
Posts: 5
Joined: Thu Sep 15, 2011 6:46 pm

Custom Actions - Call function from Standard 64-bit DLL

Hi,

I'm having troubles to call a function from a dll builded using c#, when I run the installer it fails with "Function 'MyFunction' not found in DLL".
- How should I build the project?, should It be static, public private, what about the function signature?, public, private etc..
- In Edit function dialog, how should i set the name according to c calling convention?
- Do you have a working example on this?

Thanks!

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

Re: Custom Actions - Call function from Standard 64-bit DLL

Hi Esteban,
when I run the installer it fails with "Function 'MyFunction' not found in DLL"
For managed code you can try using a .NET installer class. Perhaps this tutorial will help: http://devcity.net/Articles/339/1/article.aspx
How should I build the project?, should It be static, public private, what about the function signature?, public, private
It doesn't matter as long as it generates a standard DLL which supports the standard calling convention or C calling convention.
In Edit function dialog, how should i set the name according to c calling convention?
If you don't know, then your DLL doesn't support C calling convention.
Do you have a working example on this?
No, I'm afraid we don't have samples for this.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
estebanf
Posts: 5
Joined: Thu Sep 15, 2011 6:46 pm

Re: Custom Actions - Call function from Standard 64-bit DLL

Ok, thank you for this information, it worked now.

Return to “Common Problems”