This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to call a .NET dll function in InstallScript?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2009
04:10 PM
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
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
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2009
05:54 PM
Perhaps start with the help for "DotNetCoCreateObject".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 08, 2009
02:21 PM
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
http://community.acresso.com/archive/index.php?t-177907.html
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 08, 2009
04:05 PM
Could you post an outline of your call or calls to DotNetCoCreateObject?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 08, 2009
04:12 PM
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...
http://community.installshield.com/showthread.php?t=175009
The problem was the same, using a Static class 🙂
thanks again...
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)