MSI安装包

发布于 2024-10-03 00:30:08 字数 413 浏览 0 评论 0原文

我正在为我的 Web 应用程序创建 MSI 安装包,所有项目都针对 .NET 3.5。 (在 Visual Studio 2010 中)

此外,我在生成 MSI 包时禁用了先决条件安装。

但是,当尝试在没有 .NET 4 的计算机上安装时,它会询问我是否要安装 .NET 框架。

有什么想法吗?一定有一个我缺少的设置。

更新:

我确实收到此警告,在构建部署包时,将查看以下内容:

警告:项目中 .NET Framework 的目标版本与 .NET Framework 启动条件版本“.NET Framework 4 Client Profile”不匹配。更新 .NET Framework 启动条件的版本,以匹配高级编译选项对话框 (VB) 或应用程序页面(C#、F#)中 .NET Framework 的目标版本。

I'm creating my MSI install package for my Web App and all projects are targeted for .NET 3.5. (in Visual Studio 2010)

Also, I have disabled prerequisite installs when generating the MSI package.

However, when attempting to install on a machine without .NET 4, it asks me if I wanted to install the .NET framework.

Any ideas why? There must be a setting that I am missing.

UPDATE:

I did get this warning, when building the deployment package, will look into this:

WARNING: The target version of the .NET Framework in the project does not match the .NET Framework launch condition version '.NET Framework 4 Client Profile'. Update the version of the .NET Framework launch condition to match the target version of the.NET Framework in the Advanced Compile Options Dialog Box (VB) or the Application Page (C#, F#).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

所谓喜欢 2024-10-10 00:30:08

修好了。

显然,在安装程序项目中,请确保还刷新依赖项,并且如果您查看“Microsoft .NET Framework”的属性,请确保将其更改为 3.5。显然,它不会为您更改为 3.5,因此您必须在此处明确设置它。

Fixed it.

Apparently in the installer project, make sure you also refresh your dependencies and also if you view the properties of "Microsoft .NET Framework", make sure to change it to 3.5. Apparently, it does not change to 3.5 for you, so you'll have to explicitly set it here.

じ违心 2024-10-10 00:30:08

MSI 安装程序会自动创建自安装程序包所需的参考和最低要求。确定您的项目中没有依赖于 .NET 4 的组件吗?

MSI installers automatically create the needed references and minimum requirements for the self-installer package. Are sure there is no component within your projects that depends on .NET 4?

我只土不豪 2024-10-10 00:30:08

在安装程序项目中,您可以设置安装要求。您应该检查该项目是否默认添加 .NET 4。

In the installer project you can set installation requirements. You should check that the project hasn't added .NET 4 by default.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文