- cd into the directory of your choice and clone the repository
- Open the project with Visual Studio (WiX toolset neeeds to be installed)
- Build the project
- Build the installer (supports x86 and x64)
- Once built, it will automatically create a folder named 'Installers', which is where the .msi files will be located.
- The installer for this project was created with WiX Toolset v3.11.2.
- The code is easy to reuse to create an installer for other projects because it works with variables (preprocessor and localization) instead of hard-coded values.
For example:
$(var.MyProject.ProjectName)
will query the correct project name at build time even if I change the name of the referenced project after the reference is added. Read more.
Most of the changes have to be made inside the 'local.wxl' and the .wixproj file.