必备组件按钮已禁用-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,Win 10专业版x64
  • 我的设置项目与主项目在相同的解决方案中
  • I'm using VS 2015, SQL Server 2008 R2, .Net 4.5.2, C#, WinForms, Win 10 Pro x64
  • My setup project is in the same solution as the main project

推荐答案

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 Update(家庭和小型办公室用户)?

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 Framework这样几乎不需要它们的情况下.将来,我们肯定会直接从在线存储库中提取必备软件包,并且不会在我们的主要设置中嵌入任何内容(并且可能会遇到这种方法带来的新安全问题).

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和其他部署工具的先前答案,似乎对人们有所帮助:

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天全站免登陆