开发者

.NET 4.0 Custom Action fails

We have a custom action in our installer. We upgraded our projects to the .NET 4.0 framework, and when it applies the custom act开发者_高级运维ion, the installer throws a 1001 error that says the version of the framework is invalid.

The custom action uses the value from a radio-button window earlier in the installer (i.e. takes CustomActionData). In my project containing the main exe, I have class that inherits from Installer, has the attribute [RunInstaller(true)] set, and overrides the Install function.

The installer works just fine compiled in VS 2010 for .NET 3.5. I'm running Windows 7 64-bit.

Is there any way we can upgrade our installer/custom action to work with .NET 4.0?


You need to have minimum of .Net Framework 4.0 client profile installed.

As your other projects are on 4.0 framework you should move the installer to 4.0 too.

Download .Net Framework 4.0 Client profile

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜