如何 CI-CD 一个 windows 安装程序?我希望部署将 .msi 放在特定位置

How to CI-CD a windows installer? I want the deployment to place the .msi in a specific location

我想在 Azure DevOps 中为具有安装程序的 Winform 应用程序创建 CI-CD 管道。我想让我的CD在每次签到后把.msi / .exe放到指定位置/drop文件夹里,里面有最新的。

对于这种情况,WiX Toolset 是 tailor-made。将 .wixproj 添加到您的解决方案,编写安装代码,它就可以在 Azure DevOps 中运行。它甚至可以在托管的 Azure DevOps 构建中运行,因为 WiX 工具集是其映像的一部分。

WiX 工具集功能强大,您可以在 the tutorial 中阅读更多相关信息。

我使用了 Advanced Installer 打包工具,这很容易与 Azure DevOps 持续交付集成。这是一篇 step-by-step 小文章,描述了如何配置安装程序持续交付:

Advanced Installer for Azure DevOps (VSTS)

此外,您可以使用他们的 Advanced Installer extension for Visual Studio 轻松地将 Advanced Installer 与您的 Visual Studio 解决方案集成。