Discussion:
[WiX-users] DTF managed custom action with supportedRuntime=v4.0
Sam Strasser
2010-08-13 00:44:45 UTC
Permalink
I am running my setup on a machine with .NET 4 but not .NET 3.5. The setup is running a managed custom action created using DTF, but the custom action is not run. Instead, I get this error:
SFXCA: Extracting custom action to temporary directory: C:\Windows\Installer\MSI7DA3.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.

I have what I think is the right setup in my .config file:
<supportedRuntime version="v2.0.50727"/>
<supportedRuntime version="v4.0"/>

Is this scenario supported? What am I doing wrong?

Thanks in advance,
Sam
Jason Ginchereau
2010-08-13 17:05:56 UTC
Permalink
2.0-targeted applications do not activate with .NET 4.0 by default -- that was a deliberate compatibility policy decision made by.NET 4.0, for better or worse. You'll need to add useLegacyV2RuntimeActivationPolicy=true attribute to the <startup> element in your CustomAction.config. For more information, see http://msdn.microsoft.com/en-us/library/bbx34a2h.aspx


-----Original Message-----
From: Sam Strasser [mailto:***@microsoft.com]
Sent: Thursday, August 12, 2010 5:45 PM
To: wix-***@lists.sourceforge.net
Subject: [WiX-users] DTF managed custom action with supportedRuntime=v4.0

I am running my setup on a machine with .NET 4 but not .NET 3.5. The setup is running a managed custom action created using DTF, but the custom action is not run. Instead, I get this error:
SFXCA: Extracting custom action to temporary directory: C:\Windows\Installer\MSI7DA3.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.

I have what I think is the right setup in my .config file:
<supportedRuntime version="v2.0.50727"/>
<supportedRuntime version="v4.0"/>

Is this scenario supported? What am I doing wrong?

Thanks in advance,
Sam

Loading...