Usage of the sections [RegistryCleanupIfEmpty] and [RegistryCleanupForce]
- Usage of the section [RegistryCleanupIfEmpty]
Suppose a program named AppName writes its settings in the following two registry keys:
- HKCU\Software\AppName_1\settings_1
- HKCU\Software\AppName_2\settings_2
Furthermore after saving of these both registry keys by the launcher the registry keys HKCU\Software\AppName_1 and HKCU\Software\AppName_2 will be left empty.
Is it in this case correct, that I use the following code, where the key names are consecutive integers?
[RegistryCleanupIfEmpty]