Alternative to Call DLL Function for 64 bit?

Got a problem you cannot solve? Try here.
jsmith
Posts: 178
Joined: Tue Nov 04, 2008 10:47 am

Alternative to Call DLL Function for 64 bit?

Postby jsmith » Fri Jul 23, 2010 8:00 am

I just ran into IA's limitation where one cannot call a 64 bit DLL on 64 bit windows when running in 64 bit installation mode. From the help:

Commands and plug-ins that load executable code into memory will not work with 64 bit executables, even when setup is running under 64 bit installation mode. Such commands and plug-ins include Register Library and Call DLL Function. You may use the various alternatives to such commands when running in 64 bit installation mode.


What would be one of the various alternatives to the Call DLL Function command that I could use in 64 bit installation mode on 64 bit windows to call into my 64 bit C++ DLL?

Thanks!
using InstallAware 9 R2 (Build Moya.sp3.070910)

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Alternative to Call DLL Function for 64 bit?

Postby mills » Fri Jul 23, 2010 7:58 pm

I hope this will get you moving in the right direction:

http://www.dnjonline.com/article.aspx?i ... access3264
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

jsmith
Posts: 178
Joined: Tue Nov 04, 2008 10:47 am

Re: Alternative to Call DLL Function for 64 bit?

Postby jsmith » Mon Aug 09, 2010 12:03 pm

Thanks, Andy. By posting this link, are you saying that the only way for me to call into my DLL from within InstallAware on a 64-bit computer is for me to build my software for 32 bit platforms and install 32 bit versions of my binaries for the installer to consume? I'm building my software as 64 bit binaries for use on 64 bit platforms. Is there no way for me to call into my 64 bit binaries on 64 bit platforms from within InstallAware?
using InstallAware 9 R2 (Build Moya.sp3.070910)

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Alternative to Call DLL Function for 64 bit?

Postby mills » Mon Aug 09, 2010 9:05 pm

Ah, I see where you're coming from...

One idea is to:

Create 64-bit executable(s) to call your DLL(s).
This method poses a problem when you want your DLL to return values back to IA, especially when trying to handle lists.
To work-around this, you can have your executable(s) write to file the data that is desired and after the Run Program command is called, read the data from the resulting file(s).
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

jsmith
Posts: 178
Joined: Tue Nov 04, 2008 10:47 am

Re: Alternative to Call DLL Function for 64 bit?

Postby jsmith » Thu Aug 12, 2010 9:01 am

Thanks, Andy. I converted my custom actions DLL into an EXE to work around this limitation. Do you know if IA will support calling into 64 bit DLLs any time soon?
using InstallAware 9 R2 (Build Moya.sp3.070910)

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Alternative to Call DLL Function for 64 bit?

Postby mills » Thu Aug 12, 2010 9:28 pm

We plan to provide 64-bit DLL support, but it's not certain when we'll have an implementation.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

jsmith
Posts: 178
Joined: Tue Nov 04, 2008 10:47 am

Re: Alternative to Call DLL Function for 64 bit?

Postby jsmith » Fri Aug 13, 2010 6:01 am

OK, thanks Andy.
using InstallAware 9 R2 (Build Moya.sp3.070910)


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 98 guests