Installshield DLL函数调用失败:ISRT._DotNetCoCreateObject

问题描述:在安装时需输入一串字符,要调用C#封装好的DLL进行处理。使用InstallScript调用DLL方法一直失败,提示错误如下图。

 

 

 

工具:Installshield 2015

      Visual Studio 2017

  

解决方案:

C#代码部分

TestClass.cs,定义三个方法。命名空间为LibTest,类名为TestClass。

 

 

AssemblyInfo.cs,将ComVisible设为true;

 

 

 

将生成的LibTest.dll放到SUPPORTDIR里。

 

 

 

InstallSctript脚本

 

 

 

posted on 2018-07-05 11:29  小佣  阅读(972)  评论(0编辑  收藏  举报