先决条件按钮已禁用 - MSI 安装程序 [英] Prerequisites button disabled - MSI installer

本文介绍了先决条件按钮已禁用 - MSI 安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个 .msi 安装程序.我想进一步添加先决条件(例如 .Net),但是当我转到设置项目属性时,先决条件按钮被禁用.如何启用它?

I have created an .msi installer. I want to further add prerequisites (such as .Net) but when I go to Setup Project properties, the Prerequisites button is disabled. How do I enable it?

其他细节:

  • 我使用的是 VS 2015、SQL Server 2008 R2、.Net 4.5.2、C#、WinForms、Win10 专业版 x64
  • 我的设置项目与主项目在同一个解决方案中

推荐答案

Visual Studio 项目的先决条件

在对话框顶部的Configuration 中,您是否尝试选择ReleaseDebug?这应该启用 Prerequisites... 按钮.

Prerequisities in Visual Studio Projects

In Configuration at the top of the dialog, did you try to select either Release or Debug? That should enable the Prerequisites... button.

我的一个小问题:当大多数用户由他们的部署团队(公司)或通过 Windows 更新(家庭和小型办公用户)?

One pet-peeve of mine: is it really necessary to include the .NET runtime as a prerequisite when most users have it installed by their deployment team (corporations) or via Windows Update (home and small office users)?

如果有运行时的安全更新,老实说,旧的嵌入式运行时只是一种麻烦.企业打​​包人员花费大量时间删除运行时和企业部署的先决条件,其中所有运行时组件都以企业标准格式单独打包.也许考虑为您的安装包制作一个特殊的企业大规模部署"版本?仅包含组件的 zip 以及有关如何部署它们的一页 PDF 将不胜感激.

If there are security updates for the runtime, your old, embedded runtime is just a nuisance to be honest. Corporate packagers spend a great deal of time removing runtimes and prerequisites for corporate deployment where all runtime components are packaged separately in the corporate standard format. Perhaps consider making a special corporate "large scale deployment" version of your setup bundle? Just a zip with components will be very appreciated, along with a one page PDF on how to deploy them.

对于 .NET 框架,如果未找到运行时,您可以添加启动条件中止安装,并告诉用户通过 Windows Update 或来自他们的系统管理员部署团队.

For the .NET framework you could just add a launch condition to abort the installation if the runtime is not found, and tell the user to get the runtime via Windows Update or from their system administrator or deployment team.

只是一个想法我想与您分享.先决条件确实会使设置变得臃肿 - 特别是当它们几乎从不需要像 .NET 框架那样时.将来,我们肯定会直接从在线存储库中提取必备软件包,并且不会在我们的主要设置中嵌入任何内容(并且可能会因这种方法而遇到新的安全问题).

Just a thought I wanted to share with you. Prerequisites can really bloat a setup - especially when they are almost never needed like the .NET framework. In the future we will certainly pull prerequisite packages straight from online repositories and not embed anything in our main setups (and probably struggle with new security issues from that approach).

  • What version of the .NET Framework is included in what version of the OS?
  • Selectively disable versions of the .NET Framework (.NET versions overwrite each other)

安装项目相当有限.如果您发现自己需要更多功能,您可能需要查看WiX 工具包.

Setup projects are rather limited. If you find yourself needing more features, you might want to check out the WiX toolkit.

这是以前关于 WiX 和其他似乎对人们有帮助的部署工具的答案:​​MSI 与 nuget 包:哪个更适合持续交付?

Here is a previous answer on WiX and other deployment tools that seems to have been helpful for people: MSI vs nuget packages: which are is better for continuous delivery?

这篇关于先决条件按钮已禁用 - MSI 安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆