View Full Version : How to load 64 Bit DLL using InstallScript API in InstallShield 2009.

07-24-2008, 06:31 AM

I am Using InstallShield 2009 - Premier Edition.

I am creating an installer package for 64 Bit Enviroment and for this I want to use 64 Bit DLL's and its exported functions in my InstallScript project. I try to use "UseDLL" function but it get fails for 64 Bit DLL (it is working fine for 32 bit DLL's).

I just want to know is there any API (such as UseDLL) or any other method through which i can call 64 bit DLL functions in my installScript projects.

I tried using a 64 bit executable which i use with LaunchAppAndWait, which in turns loads and runs functions from my 64-bit DLL. But this is less flexible as i need the return value from DLL function and other values too which i need to use further down in my installscript project. For this i need to write return values and other stuff to one common .ini or xml file and read these value from installScript project. I need a better way than this solution.

Waiting for prompt reply.

Umesh Bansal.

07-24-2008, 04:00 PM
A 32-bit application cannot load a 64-bit DLL, so there is only one final class of methods you haven't already hit. In addition to the exit codes, and shared data stores (files, registry, etc.), there's out of process COM servers. It should theoretically be possible for a 32-bit application to load and communicate with a 64-bit outproc COM server. However in the context of an installation, it can be a deal stopper to have to deal with its registration and unregistration, so it's hard to really recommend this.

07-24-2008, 10:58 PM
Thanks Michael for your propmt reply.
Can You ellaborate a little further on this line

"so there is only one final class of methods you haven't already hit"

07-28-2008, 10:13 AM
The final approach was the out of process COM server. It has a lot of downsides as well.