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

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.

Labels (1)
0 Kudos
(3) Replies
agshah
Level 7

folks appreciate any help with this...

0 Kudos

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.

0 Kudos

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.

0 Kudos