Calling .NET DLLs

For all your non-technical questions.
marlonguerios
Posts: 7
Joined: Wed Jun 14, 2006 2:36 am

Calling .NET DLLs

Postby marlonguerios » Tue Jun 20, 2006 4:03 am

Hello,

I'm evaluatig InstallAware and we are about to buy it.

I would like to know whether it is possible to call .NET DLL developed in C#. I have two DLL that I need to call to validate the userkey and to encrypt the password provided by the user. It is not working though.

If there is a way to do that, please tell me how I could accomplish it.

Thanks in advance,

Marlon

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Tue Jun 20, 2006 4:50 am

Hi Marlon!

If your .NET DLLs can be called by standard Win32 applications, InstallAware can call them too, using the Call DLL Function command. Just make sure your DLL supports stdcall.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

marlonguerios
Posts: 7
Joined: Wed Jun 14, 2006 2:36 am

Postby marlonguerios » Tue Jun 20, 2006 10:54 am

Thank you.

skibbs
Posts: 56
Joined: Thu Apr 27, 2006 5:06 pm
Location: Redmond, WA
Contact:

Re: Calling .NET DLLs

Postby skibbs » Wed Jul 05, 2006 5:03 pm

marlonguerios wrote:Hello,

I'm evaluatig InstallAware and we are about to buy it.

I would like to know whether it is possible to call .NET DLL developed in C#. I have two DLL that I need to call to validate the userkey and to encrypt the password provided by the user. It is not working though.

If there is a way to do that, please tell me how I could accomplish it.

Thanks in advance,

Marlon


You can wrap them in a .NET COM wrapper, then create a Win32 C++ DLL that uses COM interop to load the .NET COM wrapper and voila you have access to your existing .NET libraries from IA.

marlonguerios
Posts: 7
Joined: Wed Jun 14, 2006 2:36 am

Re: Calling .NET DLLs

Postby marlonguerios » Thu Jul 06, 2006 7:20 am

skibbs wrote:
marlonguerios wrote:Hello,

I'm evaluatig InstallAware and we are about to buy it.

I would like to know whether it is possible to call .NET DLL developed in C#. I have two DLL that I need to call to validate the userkey and to encrypt the password provided by the user. It is not working though.

If there is a way to do that, please tell me how I could accomplish it.

Thanks in advance,

Marlon


You can wrap them in a .NET COM wrapper, then create a Win32 C++ DLL that uses COM interop to load the .NET COM wrapper and voila you have access to your existing .NET libraries from IA.


Hello,

Do you have any example of that? Actually I have redeveloped my c# dll in c++ but I am getting a little different behavior. So, if you I can use the original dll, it would better.

Thanks,

Marlon


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 54 guests