Call a dll function from InstallAware or InstallShield

不打扰是莪最后的温柔 提交于 2019-12-12 12:29:20

问题


Does any body know how can i call a dll function from InstallShield or InstallAware.


回答1:


The user guide: http://kb.flexerasoftware.com/doc/DocumentRepository/Installation/InstallShield/InstallShield%202011%20Professional/01_Public/Product_Manual/InstallShield2011UserGuide.pdf

Has a section with examples from page 694 onwards.




回答2:


One must first know more about the DLL. Is it a WinPE ( native ) dll with exported functions? Is it a COM server? Or perhaps it is a .NET assembly with or without ComVisible types.

A better answer can be provided if there is more information.

For InstallShield:

One way to consume a .NET ComVisible class is to write an InstallScript custom action and use the DotNetCoCreateObject() function.

Another approach would be to define a managed custom action. Here is an tutorial.

But my favorite approach is to write a DTF custom action to encapsulate your assembly.



来源:https://stackoverflow.com/questions/4656559/call-a-dll-function-from-installaware-or-installshield

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!