Clarification: I am using WiX 3.5 tool set to build this right now.
-----Original Message----- From: Uma Harano [mailto:uhar...@esri.com] Sent: Thursday, October 03, 2013 3:38 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] .NET support question for custom actions Hi, I have a Visual Studio solution that uses DTF to create Custom Actions for my setup. I am using WiX 3.6. The custom actions need to work on machines that have .NET Framework 3.5 sp1 or .NET 4.5. My CustomAction.config file has this information: <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" /> <supportedRuntime version="v2.0.50727"/> When I run the setup that includes these custom actions on a Windows 8.1 machine that has only .NET 4.5, everything works. But when I run the same msi on a Server 2008 R2 machine that has only .NET 3.5 SP1, the setup crashes. This is the info from the log: Invoking remote custom action. DLL: C:\Users\uma2526\AppData\Local\Temp\MSIC72C.tmp, Entrypoint: GetSiteCount SFXCA: Extracting custom action to temporary directory: C:\Users\uma2526\AppData\Local\Temp\MSIC72C.tmp-\ SFXCA: Failed to get requested CLR info. Error code 0x80131700 SFXCA: Ensure that the proper version of the .NET Framework is installed, or that there is a matching supportedRuntime element in CustomAction.config. If you are binding to .NET 4 or greater add useLegacyV2RuntimeActivationPolicy=true to the <startup> element. CustomAction DotNetGetWebsiteCount returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox) How can I get my msi program to work on both scenarios? Thanks! Uma- ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users