Mike Dice wrote:

I have an x86 based installer that is installing x86 binaries on x86 machines. I'd like to now modify the installer so that it can install 64 bit versions of the same binaries on x64 machines. The installer, which I inherited from somebody, uses utilities from wcautil.lib. I see that the wcautil lib file that comes with wix is for x86 binaries. If I want to build an x64 version of my installer utility, it would seem that I need the x64 version of wcautil.lib. Does that exist?


No. We've never found a need for x64 custom action DLLs. But see below.

Another solution I can think of is to never build an x64 installer utility and only build the x86 utility dll. That would need to be loaded by the x86 msi process though wouldn't it? If I have an msi package and I run it on an x64 machine doesn't the x64 msiexec load it and thus I'd have a binary incompatibility between msiexec and my x86 utility dll? Just trying to figure out how to resolve that problem.

MSI checks the source of a custom action and runs it in a sandbox of the appropriate bitness. That's why, for example, there's a 64-bit CA bit but it applies only to script custom actions -- in every other case, MSI can check the source of the CA itself (DLL, EXE) and determine whether it's 64-bit or 32-bit.

That said, a 32-bit CA DLL by default can't muck around in 64-bit portions of the file system or registry. 64-bit CAs would solve the problem but it's even easier to disable redirection for the 32-bit code. We have an open bug on some of the WiX custom actions and that's the path we're following, when enough of the right people get enough free cycles.

--
sig://boB
http://joyofsetup.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to