Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to call a function from .NET DLL in installer?


2 replies to this topic

rameshr

rameshr
  • Members
  • 3 posts

Posted 03 October 2005 - 12:49

Hi All,

I'm new to install shield and currently am using install shield 10.5. I wrote some cryprography function in C# dll. I'v to implement the C# function in install shield script. This is very urgent. I'v used useDLL() function but it shows error. Then i convert the C# dll to Type library, but i don't have idea about the type library implementation in Installshield script. I searched lot of forums but i didn't get clear idea. I'm in deadline please give me a solution and secure me.

Thanks

Ramesh.R sad.gif

HahtokariMika

HahtokariMika
  • Full Members
  • 16 posts

Posted 04 October 2005 - 11:16

Bob Baker, Practical windows installer solutions. ISBN 0-9715708-3-3

there is good description how to use own dll:s with custom actions.

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 04 October 2005 - 16:24

Can't you rewrite the check in a Win32 DLL? That is supported.

If you do want a C# (or .NET) solution, make sure you've installed the .NET framework first. Also, make sure that your DLL is registered on the target system. Then you can use CreateObject() to instantiate an object implemented by your DLL.

I don't recommend that direction.