3

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

Ghyath Serhal
  • 7,466
  • 6
  • 44
  • 60

2 Answers2

1

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.

Christopher Painter
  • 54,556
  • 6
  • 63
  • 100