RegistryDelete PowerScript function
Description
Deletes a key or a value for a key in the Windows system registry.
Syntax
1 |
<span>RegistryDelete</span> ( <span>key</span>, <span>valuename</span> ) |
Argument |
Description |
---|---|
key |
A string whose value is the key in the To uniquely identify a key, specify the list of parent keys |
valuename |
A string containing the name of a value |
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs.
Usage
For more information about entries in the system registry,
see RegistrySet.
Examples
This statement deletes the value name Title and
its associated value from the registry. The key is not deleted:
1 |
<span>RegistryDelete</span>( & |
1 |
"HKEY_LOCAL_MACHINESoftwareMyApp.SettingsFonts", & |
1 |
"Title") |