The role of Light.exe

If you've added a .wxl file to your WiX project in Visual Studio, or maybe several .wxl files—perhaps en-us.wxl for English and es-es.wxl for Spanish—building the project will create an installer for each one. They'll be stored in the bin folder under separate subfolders. This is without declaring which languages you want to build for. By default, Visual Studio detects all of the languages you've added and creates an MSI for each one.

The commands used to build the MSIs are the same that you learned about in Chapter 9, Working from the Command Line. First, Visual Studio calls Candle to compile the .wxs source code files into .wixobj object files. Then, it makes a distinct call to Light for each .wxl file, passing the -loc ...

Get WiX 3.6: A Developer's Guide to Windows Installer XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.