如何使用 Wix 工具集为 ASP.NET Core 应用程序创建 MSI 安装程序 [英] How to create MSI installer for ASP.NET Core application using Wix Toolset

查看:24
本文介绍了如何使用 Wix 工具集为 ASP.NET Core 应用程序创建 MSI 安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要见解/建议才能朝着正确的方向前进,我想这不是一件容易的事.要求是:

I need insights/suggestions for going in right direction and I guess it won't be an easy task. The requirements are:

  1. 如果尚未安装,请安装 .Net core 2.0.
  2. 如果尚未安装,请为 IIS 安装 Windows Hosting 包.
  3. 如果尚未安装 SQL Server Express,请安装.
  4. 将 asp.net core 2.0 应用程序的已发布文件和文件夹放到 Inetpub/wwwroot 中,并在 IIS 中进行必要的设置,例如将应用程序池设置为无托管代码和端口等.相应地更新 appsettings.json 文件中的连接字符串.

您的见解和指导是高度学徒.谢谢你

Your insights and guidance are highly apprenticed . Thank You

推荐答案

首先专注于为 ASP.NET 应用程序创建运行良好的 msi 安装程序 - 第 4 点 - 也许只使用自托管应用程序.这将显着简化部署,因为不必引导先决条件之一(.NET Core) - 您删除待办事项列表的第 1 点.我知道此时您应该能够将 ASP.NET 应用程序安装到 IIS 中.

First concentrate on creating well working msi installer for ASP.NET application only - point 4 - and perhaps just use self hosting app. This would significantly simplify deployment as one of he prerequisites (.NET Core) does not have to be bootstrapped - you remove point 1 of todo list. I understand that at this point you should be capable to install you ASP.NET app into IIS.

可能对这部分有用的教程和文章是:

Tutorials and articles which may be useful for this part are:

为 ASP.NET Web 应用程序创建 WiX 安装程序

为 Windows Installer 打包一个独立的 .NET Core 应用

如何创建 Windows Installer MSI - .Net Core Wix - 视频

接下来的步骤将是学习如何安装先决条件,但我确信一旦您的 ASP.NET 安装程序能够正常运行待办事项列表中的所有其他项目,就不需要进一步的外部建议了.

The next steps would be to learn how to install prerequisites but I am sure once you will get your ASP.NET installer working all other items from todo list will not require further external advice.

您应该知道,WiX 工具集和 msi 安装技术都有陡峭但不是很长的学习曲线.

You should be aware that both WiX toolset and msi installation technology have steep but not very long learning curve.

这篇关于如何使用 Wix 工具集为 ASP.NET Core 应用程序创建 MSI 安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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