InstallShield 2016 » InstallScript Language Reference
Project • For InstallScript MSI and Basic MSI projects, it is recommended that you use the Registry view in InstallShield instead of creating registry keys and values through InstallScript code. Handling all of your registry changes in this way allows for a clean uninstallation through the Windows Installer service.
RegDBDeleteItem is a special registry-related function designed to work with certain predefined registry keys. The RegDBDeleteItem function deletes values under the per application paths key or the application uninstallation key, depending on the value of nItem. Calling RegDBDeleteItem with either the REGDB_APPPATH or the REGDB_APPPATH_DEFAULT option results in the deletion of the per application paths key.
Note • The InstallScript engine currently does not support writing or reading Add or Remove Programs information for a product in the 64-bit part of the registry. Therefore, using the REGDB_OPTION_WOW64_64KEY option with the REGDB_OPTIONS system variable is not supported for this registry function. Enabling the REGDB_OPTION_WOW64_64KEY option has no effect on where registry entries are created by this function.
Syntax
RegDBDeleteItem( nItem );
Parameters
Parameter |
Description |
|||||||||||||||||||||||||||||||||||||||||||||
nItem |
Specifies the item to delete. Pass one of the following predefined constants in this parameter:
|
|||||||||||||||||||||||||||||||||||||||||||||
nItem (cont.) |
|
|||||||||||||||||||||||||||||||||||||||||||||
nItem (cont.) |
Important • Do not use REGDB_WINCURRVER_REGOWNER or REGDB_WINCURRVER_REGORGANIZATION with this function. Windows sets these values, and they should not be deleted by an installation. |
Return Values
Return Value |
Description |
0 |
Indicates that the function successfully set the value. |
< 0 |
Indicates that the function failed. |
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. |
• | RegDBDeleteItem 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
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |