Shooting from way outside of the court here, but could the order of the 
supportedRuntime elements matter? I've always seen them in the opposite order.
 
> From: chr...@iswix.com
> To: wix-users@lists.sourceforge.net; wix-users@lists.sourceforge.net
> Date: Thu, 3 Oct 2013 16:17:00 -0700
> Subject: Re: [WiX-users] .NET support question for custom actions
> 
> I've never had a problem with this. I typically compile for .NET 2.0 and 
> set the customaction.config to allow for CLR 2.0 or 4.0 and allow legacy 
> activation.  This gives me the broadest compatibility
> 
> Is there a .NET 3.5 feature you really need in your custom action?  
> 
> ----------------------------------------
>  From: "Uma Harano" <uhar...@esri.com>
> Sent: Thursday, October 03, 2013 5:51 PM
> To: "General discussion for Windows Installer XML toolset." 
> wix-users@lists.sourceforge.net.  
> Subject: Re: [WiX-users] .NET support question for custom actions
> 
> 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
> 
> 
> ------------------------------------------------------------------------------
> 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

Reply via email to