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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access