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

Can I Load 64-bit DLL Files in InstallScript?

Can I Load 64-bit DLL Files in InstallScript?

Summary

No, the InstallScript engine is only a 32-bit engine and so it is not able to directly load 64-bit dll's into memory.

Question

Can I load 64-bit dll files in InstallScript?

Answer

No, the InstallScript engine is only a 32-bit engine and so it is not able to directly load 64-bit dll's into memory. So if you try and use the UseDLL() function on a 64-bit dll file, you will encounter an error at runtime.

Unfortunately, there is no convenient way around this limitation. Depending on what you need to access in your 64-bit dll, you could create a stub 64-bit executable that can load the 64-bit dll into memory and then intermediate between the 32-bit InstallScript installer context and the 64-bit DLL context (...if simple cross-communication is necessary, it can be peformed via command line arguments and/or small INI or XML etc. files).


Additional Information

If you create the 64-bit stub exe, you can use the LaunchApplication() function to run it from InstallScript....LaunchApplication

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Aug 08, 2011 02:08 AM
Updated by: