简体   繁体   English

如何使用Wix Toolset为ASP.NET Core应用程序创建MSI安装程序

[英]How to create MSI installer for ASP.NET Core application using Wix Toolset

I need insights/suggestions for going in right direction and I guess it won't be an easy task. 我需要有正确方向的见解/建议,我想这不是一件容易的事。 The requirements are: 要求是:

  1. Install .Net core 2.0 if not installed already. 如果尚未安装,请安装.Net core 2.0。
  2. Install Windows Hosting bundle for IIS if not installed already. 如果尚未安装,请安装IIS的Windows主机包。
  3. Install SQL Server Express if not installed already. 如果尚未安装,请安装SQL Server Express。
  4. Drop the published files and folders of asp.net core 2.0 application in Inetpub/wwwroot and do the necessary settings in IIS like setting up application pool to No Managed Code and port etc. Update the connection string in appsettings.json file accordingly. 在Inetpub / wwwroot中删除已发布的asp.net core 2.0应用程序文件和文件夹,并在IIS中进行必要的设置,例如将应用程序池设置为No Managed Code和port等。相应地更新appsettings.json文件中的连接字符串。

Your insights and guidance are highly apprenticed . 您的见解和指导是高度学徒的。 Thank You 谢谢

First concentrate on creating well working msi installer for ASP.NET application only - point 4 - and perhaps just use self hosting app. 首先专注于为ASP.NET应用程序创建运行良好的msi安装程序 - 第4点 - 并且可能只是使用自托管应用程序。 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. 这将显着简化部署,因为其中一个先决条件(.NET Core)不必进行自举 - 您删除了todo列表的第1点。 I understand that at this point you should be capable to install you ASP.NET app into IIS. 据我所知,此时您应该能够将ASP.NET应用程序安装到IIS中。

Tutorials and articles which may be useful for this part are: 可能对此部分有用的教程和文章是:

Creating a WiX installer for ASP.NET Web Applications 为ASP.NET Web应用程序创建WiX安装程序

Packaging a self-contained .NET Core app for Windows Installer 打包Windows Installer的自包含.NET Core应用程序

How To Create Windows Installer MSI - .Net Core Wix - video 如何创建Windows Installer MSI - .Net Core Wix - 视频

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. 接下来的步骤是学习如何安装先决条件,但我相信一旦你的ASP.NET安装程序工作,todo列表中的所有其他项目将不需要进一步的外部建议。

You should be aware that both WiX toolset and msi installation technology have steep but not very long learning curve. 您应该知道,WiX工具集和msi安装技术都有陡峭但不是很长的学习曲线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM