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

查看:134
本文介绍了如何使用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天全站免登陆