DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


DeleteRegValue

Declaration: DeleteRegValue (RootKey: TRegRootKey; SubKey, ValueID: string): boolean;
The function DeleteRegValue deletes a particular Windows registry value. The parameter RootKey defines the root key and the parameter SubKey specifies the key (including its path) used within the branch of the root key. The parameter ValueID specifies the value to be deleted.

The function returns TRUE if the value has been deleted successfully.

Warning: Be careful, this function is potentially dangerous and can cause damage to your installation if applied to a critical value.

Example: The statement
DeleteRegValue (hkeyCurrentUser, '/Software/MyProduct/Customization', 'BgndColor');
deletes the registry value BgndColor in the key HKEY_CURRENT_USER/Software/MyProduct/Customization.