[Registry]
Root:
HKCU; Subkey: "Software\My Company"; Flags: uninsdeletekeyifempty
Root:
HKCU; Subkey: "Software\My Company\My Program"; Flags: uninsdeletekey
uninsclearvalue
When the program is uninstalled, set the value's data to a null string (type REG_SZ). This flag cannot be combined with the uninsdeletekey flag.
uninsdeletekey
When the program is uninstalled, delete the entire key, including all values and subkeys in it. It obviously wouldn't be a good idea to use this on a key that is used by Windows itself. You should only use this on keys private to your application.
To prevent disasters, this flag is ignored during installation if Subkey is blank or contains only backslashes.
uninsdeletekeyifempty
When the program is uninstalled, delete the key if it has no values or subkeys left in it. This flag can be combined with uninsdeletevalue.
To prevent disasters, this flag is ignored during installation if Subkey is blank or contains only backslashes.
uninsdeletevalue
Delete the value when the program is uninstalled. This flag can be combined with uninsdeletekeyifempty.