cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
deepakzworld
Level 4

How to call a .NET dll function in InstallScript?

Hi,
I have been trying to call a .NET dll function from inside InstallScript.
InstallShield Help gives a way to call dll functions inside InstallScript but there is not reference to the class to which the function belongs. As such, I think its reffering to a C or C++ dll when explaning this section.
In .NET, the function has to reside inside a class, and if I don't specify the class name before the function, the runtime won't be able to resolve. If I do, the InstallShield compiler gives me an error. Maybe I am not using the right syntax, but am not able to find any helpful information online.
Any help is greatly appreciated.

Thanks in advance
Labels (1)
0 Kudos
(4) Replies
RobertDickau
Flexera Alumni

Perhaps start with the help for "DotNetCoCreateObject".
0 Kudos
deepakzworld
Level 4

Thanks for getting me started Robert, but the call to DotNetCoCreateObject is throwing an exception. I can't find any reason why it would do that. Also, this thread mentions exactly the same problem I am experiencing with the error number being the same too:
http://community.acresso.com/archive/index.php?t-177907.html
0 Kudos
RobertDickau
Flexera Alumni

Could you post an outline of your call or calls to DotNetCoCreateObject?
0 Kudos
deepakzworld
Level 4

Thanks for your help, but I was able to figure it out reading this thread:
http://community.installshield.com/showthread.php?t=175009

The problem was the same, using a Static class 🙂

thanks again...
0 Kudos