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

 

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

 

工具:Installshield 2015

      Visual Studio 2017

  

解决方案:

C#代码部分

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

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

 

AssemblyInfo.cs,将ComVisible设为true;

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

 

 

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

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

 

 

InstallSctript脚本

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

 

 

相关文章:

  • 2021-06-27
  • 2022-12-23
  • 2021-11-21
  • 2021-10-08
  • 2021-07-28
  • 2022-01-04
  • 2022-12-23
  • 2021-12-27
猜你喜欢
  • 2021-04-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-01-03
  • 2021-05-06
  • 2022-12-23
相关资源
相似解决方案