You can modify the target machine registry as necessary for your application installation by establishing the new registry keys and values in your Microsoft® Visual Studio® Installer project. Specifically, you can use the Visual Studio Installer Registry editor to manipulate registry keys and values, to set user, program, or machine data in the registry, and to add or change default registry settings.
After your installation package (.msi) file installs your components and files on the target machine, it writes the associated registry keys and values to the system registry. You establish the keys and values your .msi file writes to the system registry by setting them up in the Registry editor.
For more information, see Manipulating the Target Machine Registry.