Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.
  2. Install Windows Hosting bundle for IIS if not installed already.
  3. Install SQL Server Express if not installed already.
  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.

Your insights and guidance are highly apprenticed . Thank You

like image 550
Raj Avatar asked Oct 22 '17 20:10

Raj


People also ask

How do I create a Windows Installer MSI .NET core WiX?

You just need to create a new WiX project, add your app files, and then build the project. That's it! To create a new WiX project, open Visual Studio and go to File > New > Project. In the New Project dialog, select the “WiX Toolset” template from the list of available templates.

How do I create an MSI using WiX toolset?

Adding a WiX setup project In Visual Studio, open your solution, and add a WiX project to it: go to the Visual Studio main menu and click File -> Add -> New Project to open the Add New Project dialog. Choose the Setup Project item in the Windows Installer XML node, specify the project name and click OK.


1 Answers

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:

Creating a WiX installer for ASP.NET Web Applications

Packaging a self-contained .NET Core app for Windows Installer

How To Create Windows Installer MSI - .Net Core Wix - video

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.

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

like image 193
Jacek Blaszczynski Avatar answered Sep 19 '22 12:09

Jacek Blaszczynski