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:sam.stras...@microsoft.com] 
Sent: Thursday, August 12, 2010 5:45 PM
To: wix-users@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
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to