For the risk of beating a dead horse let me try to explain: Fundamentally, I want to be able to write custom actions for WiX in .NET. As we all know WiX at present time cannot call into .NET assemblies.
So we set out to create a simple shim in C++ which has the job of loading a .NET CLR and invoking a method of our choosing. This C++ component is a standard WiX C++ custom action linked against wcautil.lib and dutil.lib. This works just fine on 32-bit. Trying to build the same WiX project presents a problem because this C++ custom action is 32-bit and I can't find the way to recompile it to 64-bit due to the fact that wcautil.lib and dutil.lib are only 32-bit. For most scenarios, however, leaving the C++ shim in 32-bit world is not a problem - a 32-bit .NET CLR gets loaded and our .NET code executes just fine. The ONLY problematic situation is if we try to manipulate registry from these .NET custom actions because, running on WOW64, we get redirected to a wrong hive. I see two solutions to this situation: 1. Make WiX .lib files 64-bit and recompile our shim. or 2. Explicitly pass appropriate flag when using registry classes from .NET so that automatic redirection does not happen. Hope this makes it clearer. Bob Arnson-6 wrote: > > Sanin wrote: >> Although my CLR loader, which is actually a C++ custom action for WiX, is >> 32-bit IT WILL be able to load the 64-bit CLR into the installer process >> and >> kick off .NET custom actions, which in turn may write files and registry >> keys without redirection, right? >> > > Sorry, I don't know the particulars of what you're trying to do. > > -- > sig://boB > http://joyofsetup.com/ > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/Recompiling-WiX-C%2B%2B-libs-for-64-bit-tp16261155p16351027.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users