- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- UseDLL fails to load dll
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
UseDLL fails to load dll
Hi,
I have IS 2022 InstallScript MSI project.
In install script setup.rul I try to use UseDLL but it fails to load the dll. The dll does not have any dependencies.
I also tried with a dll that does have dependencies and they are all in the same folder.
As seen below, I even hard-coded the path and dll name in UseDLL directly to rule out any issues.
I also added c:\testfolder to the system level path env variable to make sure there are no loading issues.
Kindly help.
nResult = UseDLL ("C:\\testfolder\\test.dll");
if (nResult = 0) then
MessageBox ("UseDLL successful \n\n.dll file loaded.", INFORMATION);
else
MessageBox ("UseDLL failed.\n\nCouldn't load .dll file.", INFORMATION);
//abort;
endif;
thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
folks appreciate any help with this...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
wanted to add that I am trying to load dll that is 64bit.
I tried to load also a 32 bit dll but that also failed.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
update:
I am able to load 32bit dll.
However, what I want is to load a 64bit dll. Can someone kindly confirm if it is a known with InstallShield not being able to load 64bit dll?
Please suggest as to how I can load 64bit dll.
![](/skins/images/D9FA736EB4A3B1F611B7252033EE15BA/responsive_peak/images/icon_anonymous_message.png)