Visual Studio MSI 安装程序:Asp.net 核心作为 Window 服务

Visual Studio MSI Installer: Asp.net Core as a Window Service

我正在尝试为 asp.net 核心创建 MSI 安装程序作为 windows服务。

我使用以下链接成功创建了 window 托管 asp.net 核心应用程序的服务

1) https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-2.2

2)https://dzone.com/articles/running-aspnet-core-application-as-windows-service

但我想创建一个 MSI 文件(Visual Studio 安装程序),它将由最终用户安装。 我将无法使用第三方安装程序,即 Wix、Advance Installer 等

任何人都可以 guide/help 我如何在安装时创建 MSI 文件它将自动启动 window 服务 或者我看错方向了?

WiX: Visual Studio 安装程序项目有很多限制,您真的应该尝试免费的 WiX 或其他商业工具。 See list of major tools here。该概述中有指向 Visual Studio 安装程序项目限制列表的链接。