Summary

In this chapter, we discussed how to read from and write to the Windows Registry at install time. Reading makes use of AppSearch functionality that occurs early on in the UI sequence. The value is stored in a property that you can then use elsewhere in your markup.

Writing is done with RegistryKey and RegistryValue elements, the former being used for writing multiple values and the latter for writing a single value. You have the option of setting permissions on these values and specifying whether or not to replace existing data. In the next chapter, we'll cover how to install, start, stop, and uninstall Windows services.

Get WiX: 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.