Chapter 10. Accessing the Windows Registry

Applications often need to save configuration data about themselves. This might include the install directory path, the location of a remote server, or whether or not certain functionality is turned on. Companies often choose to store this information in the Windows Registry. To that end, Windows Installer lets you read and write to the Registry at install time.

In this chapter, we'll discuss the following topics:

  • Reading data stored in the Registry
  • Writing to the Registry
  • Performing miscellaneous tasks in the Registry such as setting user permissions for registry keys

Reading from the Registry

To read data stored in the Registry, you'll use the RegistrySearch element. If the value you're looking for exists, ...

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.