Installing WIX
MSI console app detects the WIX SDK installation to create MSI. The WIX SDK can be installed using following two methods.
Install WIX Using Installer
- Download the WIX installer .exe file from https://wixtoolset.org/docs/wix3/
- Run the setup
- Press Install
- Once installation finished go to Control Panel
- Start the Control Panel, then navigate to System. For Windows 2008 and above, click on Advanced System Settings.
- Under the Advanced tab, click Environment Variables.
- Check an environment variable WIX is created and it's value is the installation path of the WIX SDK.
- If WIX environment variable is not there then WIX installation did not went fine. In that case, either install WIX SDK again using setup or do the manual install using SDK .zip
Install WIX Using Binaries
- Download .zip binaries of WIX SDK from https://wixtoolset.org/docs/wix3/
- As Administrator, unzip the wix311-binaries.zip file to C:\Program Files\wix.
- Start the Control Panel, then navigate to System. For Windows 2008 and above, click on Advanced System Settings.
- Under the Advanced tab, click Environment Variables.
- Find the Path variable under System variables, and edit the Path variable to append
C:\Program Files\wix
. Use a semicolon as the separator. - Click OK until you are back to the Control Panel. On some later versions of Windows, you may have to log out and log back in again for the PATH environment variables to take effect.
- To check that the above procedures have worked, start a command prompt window and type:
>candle
Its usage will be displayed. If there are any errors then either the software has not been installed or the environment variables have not been set.
Troubleshooting
If your error dialog states "...application failed to initialize properly..."
then this indicates that the .NET framework has not been installed. This will need to be installed for WIX to work.