RegDBDeleteValue
InstallShield 2024 » InstallScript Language Reference
Project:
The RegDBDeleteValue function deletes a value from a specific key in the registry. InstallShield assumes that the key specified in szSubKey is a subkey of HKEY_CLASSES_ROOT. You must use RegDBSetDefaultRoot to specify another root key.
RegDBDeleteKey is a general registry-related function, designed to work with all registry keys, including those handled by the special registry-related functions. For more information on special registry-related functions, see Special Registry-Related Functions.
Note:This function supports the 64-bit parts of the registry by using the REGDB_OPTION_WOW64_64KEY option. For more information, see REGDB_OPTIONS.
Syntax
RegDBDeleteValue ( szSubKey, szValue );
Parameters
Parameter |
Description |
szSubKey |
Specifies the name of the registry key that contains the value name to delete. Separate different levels in the subkey with a double backslash (\\). |
szValue |
Specifies the name of the value you want to delete. |
Return Values
Return Value |
Description |
0 |
Indicates that the function successfully deleted the value. |
< 0 |
Indicates that the function was unable to delete the value. |
Additional Information
• | By default, any text that is surrounded by angle brackets—for example, "<my registry entry text>"—in this function’s string arguments is interpreted as a text substitution and is processed accordingly. To disable text substitution processing for the string arguments of registry functions, call Disable with the REGISTRYFUNCTIONS_USETEXTSUBS argument. |
• | RegDBDeleteValue does not write anything to the uninstall log file; thus, calling this function does not have any effect how the application is uninstalled. |
See Also