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

  1. Download the WIX installer .exe file from https://wixtoolset.org/docs/wix3/
  2. Run the setup
  3. Press Install
  4. Once installation finished go to Control Panel
  5. Start the Control Panel, then navigate to System.  For Windows 2008 and above, click on Advanced System Settings.
  6. Under the Advanced tab, click Environment Variables.
  7. Check an environment variable WIX is created and it's value is the installation path of the WIX SDK.
  8. 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

  1. Download .zip binaries of WIX SDK from https://wixtoolset.org/docs/wix3/
  2. As Administrator, unzip the wix311-binaries.zip file to C:\Program Files\wix.
  3. Start the Control Panel, then navigate to System.  For Windows 2008 and above, click on Advanced System Settings.
  4. Under the Advanced tab, click Environment Variables.
  5. Find the Path variable under System variables, and edit the Path variable to append C:\Program Files\wix .  Use a semicolon as the separator. 



  6. 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.
  7. 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.