cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
cjursch
Level 3

DLL Language

What language does a DLL have to be written in to be callable from InstallShield script using UseDLL?
Labels (1)
0 Kudos
(5) Replies
RobertDickau
Flexera Alumni

I think UseDLL wants a C-callable DLL, which suggests a C or C++ DLL. For .NET libraries there's CoCreateObjectDotNet, and it takes some doing, but (classic) Visual Basic DLLs can be called after CoCreateObject.
0 Kudos
Gvarma
Level 7

RobertDickau wrote:
I think UseDLL wants a C-callable DLL, which suggests a C or C++ DLL. For .NET libraries there's CoCreateObjectDotNet, and it takes some doing, but (classic) Visual Basic DLLs can be called after CoCreateObject.


IS CoCreateObjectDotNet object available in IS 12.0?
0 Kudos
RobertDickau
Flexera Alumni

I believe CoCreateObjectDotNet was introduced in InstallShield 11.5.
0 Kudos
Gvarma
Level 7

RobertDickau wrote:
I believe CoCreateObjectDotNet was introduced in InstallShield 11.5.


Can I write just a standard VB6 DLL and be able to call its functions within Installscript MSI project?

TIA
0 Kudos
RobertDickau
Flexera Alumni

I believe VB6 DLLs use COM, and so in InstallScript you'll need to go through CoCreateObject.
0 Kudos