Einzelnen Beitrag anzeigen

Jens01

Registriert seit: 14. Apr 2009
670 Beiträge
 
#9

AW: Mit InnoSetup COM-Exe registrieren?

  Alt 25. Apr 2012, 16:22
Ich hoffe ich verstehs richtig.
Es gibt doch diese Flags, die man einfach hinter die Einträge schreibt:

Code:
[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.
Achtung: Bin kein Informatiker sondern komme vom Bau.
  Mit Zitat antworten Zitat