开发者

Call a dll function from InstallAware or InstallShield

开发者 https://www.devze.com 2023-02-04 02:19 出处:网络
Does any body know how can i call a dll function from InstallS开发者_运维技巧hield or InstallAware.The user guide:

Does any body know how can i call a dll function from InstallS开发者_运维技巧hield or InstallAware.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消