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.