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.
Is there an easy way to call a .NET dll?
Started by
anarres
, Apr 13 2004 15:17
5 replies to this topic
Posted 13 April 2004 - 15:17
Hi, I need to call an encrypting function in the .NET framework and was wondering if there was an easy way to do this.
Since the app we are installing requires the .NET framework I can be sure it is on the machine already, and if I could call it from a custom action it would make my life much easier.
I know I can wrap it in my own dll and use that as a support file, but I would much rather not have to do this at all. I only need to call 1 function in the .NET framework and it seems overkill to have to write a straight wrapper dll.
Thanks!
Since the app we are installing requires the .NET framework I can be sure it is on the machine already, and if I could call it from a custom action it would make my life much easier.
I know I can wrap it in my own dll and use that as a support file, but I would much rather not have to do this at all. I only need to call 1 function in the .NET framework and it seems overkill to have to write a straight wrapper dll.
Thanks!
Posted 13 April 2004 - 19:32
MSI can call installer classes in a .NET assembly
Stefan Krüger
InstallSite.org twitter facebook
Posted 14 April 2004 - 11:13
Thanks Stefan!
All I need now is how. Do you mean adding it as a normal custom action that calls a dll? Will Installshield automatically find the .NET dll?
I will try this, I have looked in the help and can't find anything talking about calling .NET classes. When you say it can call "installer" classes I don't understand...
All I need now is how. Do you mean adding it as a normal custom action that calls a dll? Will Installshield automatically find the .NET dll?
I will try this, I have looked in the help and can't find anything talking about calling .NET classes. When you say it can call "installer" classes I don't understand...
Edited by anarres, 14 April 2004 - 11:15.
Posted 15 April 2004 - 20:59
Which InstallShield version are you using? I think this was added in Developer 8 (or 7 maybe?)
Stefan Krüger
InstallSite.org twitter facebook
Posted 16 April 2004 - 14:15
If your assembly includes a Installer class derived from System.Configuration.Install.Installer you can set the ".NET Installer Class" option to yes in the component properties.
Stefan Krüger
InstallSite.org twitter facebook