Creating a Registry Key
AdminStudio 2021 R2 SP1 | 22.01 | Tuner
To specify a registry key that will be created on the target system:
| 1. | Select Registry from the checklist. The Registry View opens. | 
| 2. | In the Destination Computer Registry View, select the key to which you want to add a value. All existing values for that key in the Destination Computer Registry Data pane are displayed. | 
| 3. | To create a subkey, right-click on a registry hive (such as HKEY_CURRENT_USER) or an existing key, point to New on the shortcut menu, and select Key. | 
A new key is created with the name “NewKeyn” (where n is a successive number).
| 4. | Enter a meaningful name now to rename the key. If you want to change the name later, right-click on the key and select Rename. | 
| 5. | Right-click on the new key and select whether the key is to be created on installation, deleted on uninstallation, or both. | 
Choose one of the following:
| 
                                                         Option  | 
                                                    
                                                         Description  | 
                                                
| 
                                                         Create Key at Install  | 
                                                    
                                                         Creates the new registry key during installation if the key does not exist on the target machine.  | 
                                                
| 
                                                         Delete Key at Uninstall  | 
                                                    
                                                         Deletes the registry key during uninstallation, regardless of whether they key existed prior to the MSI’s installation. This means that the key, and all its contents and sub-keys, will be removed regardless of whether other software information that is unrelated to this MSI exists. This can have a severe impact on other programs; only select this option if you are sure that the only software affected is the base MSI.  | 
                                                
| 
                                                         Both Create and Delete  | 
                                                    
                                                         Both of the above scenarios will occur.  | 
                                                
Your new key is created with an empty default string value. To modify the value name and data, see Creating a Registry Value.
| 6. | To remove the key, right-click on it and select Delete. |