Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying WiX: A Developer's Guide to Windows Installer XML
  • Table Of Contents Toc
WiX: A Developer's Guide to Windows Installer XML

WiX: A Developer's Guide to Windows Installer XML

4.5 (17)
close
close
WiX: A Developer's Guide to Windows Installer XML

WiX: A Developer's Guide to Windows Installer XML

4.5 (17)

Overview of this book

WiX is an open source project and a toolset that builds Windows installation packages from XML source code. WiX, which is used internally by Microsoft and by many companies around the World, simplifies many of the installation tasks that used to be shrouded in mystery. The tool set provides a command-line environment that you can integrate into your old-style build processes or you can use the newer technology from inside integrated development environments to build your setup packages. You'll find that you understand your installer better, can create it in less time, and save money in the process. No one really wants to devote a lifetime to understanding how to create a hassle-free installer for any software. This hands-on guide takes the mystery out of Windows Installer by showing how simple XML elements can be leveraged to create a sophisticated install package. By relying on Microsoft standards, you'll be able to use features like Property elements to customize your application's entry in Add/Remove Programs, the Shortcut element to create Start menu shortcuts, and other specialized elements for building upgrade and patch support and more. This book will show you the fundamental ingredients needed to build a professional-grade installer using Windows Installer XML. The initial chapters will introduce you to the set of required elements necessary to build a simple installer. We'll then explore those basic elements in more detail and see how best to use them in the real world.In the ensuing chapters, you'll move on to learn about adding conditions that alter what the user can install, then how to add actions to the install sequence and how to author a user interface. We'll move on to advanced topics such as editing data in the Windows Registry, installing a Windows service, and building your project from the command line. Finally, you'll learn to localize your package for different languages and detect older versions during upgrades. Each chapter uses to-the-point examples to illustrate the best way to use the language.
Table of Contents (18 chapters)
close
close
WiX: A Developer's Guide to Windows Installer XML
Credits
About the Author
About the Reviewer
Preface
4
Improving Control with Launch Conditions and Installed States
7
Using UI Controls

Creating a multi-language MSI


In addition to being able to create multiple separate MSIs for each language, it's also possible to create a single MSI that shows a different language depending on the end user's language settings. The process is automatic for the user. They don't need to choose the language.

Note

Note that the procedure you'll learn here isn't supported by Microsoft, but is widely used.

To get started, build separate MSIs for each language. For a simple example, add a project reference to the WixUIExtension, add a UIRef element to your markup to reference one of the standard dialog sets, and set the Cultures to Build in Visual Studio to es-es;en-us;de-de. This will build Spanish, English, and German installers using the .wxl files that are embedded in that extension.

Visual Studio, by default, sends the output of each localized MSI to its own folder.

Each folder contains an MSI for a different language. To merge these installers into one, you'll need to verify that your main .wxs...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
WiX: A Developer's Guide to Windows Installer XML
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon