DeleteValueFromRegistry

From RAD Studio
Jump to: navigation, search

Go Up to Local GetIt Packages Actions Data Index


Removes a value from the Windows registry.

This action considers the system architecture, as AddValueToRegistry does.

Parameters

  • Parameter 1: Registry path. Macros are allowed. The registry path format follows: RootKeyPath + Path. Where RootKeyPath could be:
    • HKEY_CLASSES_ROOT
    • HKEY_LOCAL_MACHINE
    • HKEY_USERS
    • HKEY_PERFORMANCE_DATA
    • HKEY_CURRENT_CONFIG
    • HKEY_DYN_DATA
    • HKEY_CURRENT_USER
  • Parameter 2: Value name to remove.
  • Parameter 3: Optional. Type of value. Specifies whether GetIt should expand macros from parameter 2 (value name). The default value is False.

Examples

  • Example 1:
DeleteValueFromRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Embarcadero\BDS\17.0", "Test");
  • Example 2:
DeleteValueFromRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Embarcadero\BDS\ $(PRODUCTVERSION) ", "Test");
  • Example 3
DeleteValueFromRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Embarcadero\BDS\ $(PRODUCTVERSION) ", "$(BDS)", "True");

See Also