I tried to use your solution in Wix 3.0: Add this attribute and
supportedruntime in customaction.config.
Rebuild the custom action in dotnet framework 2.0 and wix package.
Copy it into a WinXP + .Net 4 machine and run.
The custom action still can not be run. :(

Could you please give me more advices?

Thanks
-Jamebo

2010/6/30 Jason Ginchereau <jason...@microsoft.com>

> 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: LoveShrek [mailto:lovesh...@gmail.com]
> Sent: Tuesday, June 29, 2010 7:50 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] How to run Managed Custom Action (Wix 3.0) in dotNet
> 4.0 only machine?
>
> Hi,
>
> I am using Wix 3.0 and developed a managed custom action which dotnet
> framework version is 2.0.
> Now, I faced a problem. This custom action can not be run in dot net 4.0
> only machine, say WinXP SP2 + dotNet 4.0.
> (For a managed EXE application, I can add app.config to indicate the
> supportedruntime with 2.0 and 4.0. But for Wix 3.0, I do not know how to
> solve it.) I do not want to upgrade Wix 3.0 to 3.5.
> Is there solution for this issue?
>
> Thanks
> -Jamebo
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint What will you do first with EVO,
> the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to