Website Building » Wix » How Do I Create a Project in WiX?

How Do I Create a Project in WiX?

Last updated on October 1, 2022 @ 12:37 am

When you create a new project in WiX, you’ll be given the option to select a template. For most users, the best template to choose is the “Empty project” template.

This will give you a basic WiX project with no components. You can then add your own components and resources to this project.

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.

Once you have chosen a template, you will be presented with a list of files that are included in the project. These files are the core WiX files that are necessary for creating a Windows Installer package. You can add additional files to the project, but these core files must remain in the project.

PRO TIP: Do not attempt to create a WiX project unless you are an experienced developer. This process is complicated and can result in errors that are difficult to debug.

The next step is to add your own files to the project. These can be anything from application files to DLLs or other resources that are needed by your application.

To add a file, simply right-click on the file in Windows Explorer and select “Add toproject”. WiX will automatically add the file to the appropriate component.

Once you have added all of the necessary files to the project, you can then begin authoring the installer UI and logic. This is done using XML and WiX’s proprietary scripting language, Votive. Votive makes it easy to author complex installers without having to write a lot of code.

After you have authored the UI and logic for your installer, you can then compile the project to create an MSI package. This process is simple and only requires a few clicks in Visual Studio. After compiling, you can then test your MSI package to ensure that it installs correctly on Target systems.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.