使用高级安装程序扩展创建 WCF MSI 安装包

Create WCF MSI Install Package with Advanced Installer Extension

我被要求处理 Visual Studio 2013 年创建的 WCF 项目。我没有安装 VS 2013,所以我使用 VS2019。我必须创建一个安装程序以允许 QA 安装该服务。我发现并阅读了有关 VS2019 Advanced Installer Extension 的信息。我创建了 MSI 文件。在我的测试期间,它成功地完成了安装过程并将文件复制到适当的目录。但是安装后服务window下并没有出现该服务。我单击 "Add Project Output" 并添加了一个主要输出并选择了与项目相关的所有其他依赖项。那并没有解决问题。我在网上看到可以创建自定义操作,但是没有关于如何创建自定义操作的明确说明或步骤。有没有人能够使用 Advanced Installer Extension 创建和安装 WCF 服务?我错过了什么吗?

A​​dvanced Installer 为安装服务提供预定义支持,无需执行自定义操作。详情请查看How to install a service文章。

默认情况下,VS 扩展将创建一个简单类型 的项目。要访问 Services 功能,您需要将项目从 project options.

升级到 Professional

由于您提到了自定义操作方法,如果您需要在安装程序中集成 C# 自定义操作,请查看 How to integrate and debug custom actions artticle. You can debug your C# custom actions by attaching on the installation process from Visual Studio. Or, if you prefer Powershell custom action 方法。