Website Building » Wix » How Do I Create a Windows Installer MSI .NET Core WiX?

How Do I Create a Windows Installer MSI .NET Core WiX?

Last updated on September 30, 2022 @ 11:17 am

Creating a Windows installer for your .NET Core app with WiX is simple and straightforward. 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. Give your project a name and click “OK”.

GREAT NEWS:

Exciting update! We've collaborated with Wix to offer WBI users with a free plan for all website creation needs - Explore the details here.

PRO TIP: This article describes how to create a Windows Installer MSI for a .NET Core WiX project. It is important to note that this is not a recommended approach for creating Windows Installers, and that there are significant risks involved in doing so. These risks include, but are not limited to:

-The potential for data loss or corruption during the installation process
-Incompatibility with future versions of .NET Core or WiX
-Security vulnerabilities associated with running untrusted code on the user’s system

Users should exercise caution when following the steps described in this article, and only do so if they are comfortable with the risks involved.

Once the WiX project has been created, you’ll need to add your app files to it. To do this, right-click on the project in Solution Explorer and select “Add > Existing Item”. Browse to your app’s files and add them to the project.

After you’ve added your app files, you’re ready to build the project. Just go to Build > Build Solution and the Windows installer will be created for you.

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.