RegDBSetVersion

InstallShield 2020 ยป 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.

The RegDBSetVersion function places the value of the system variable IFX_PRODUCT_VERSION as the data for the Version value under the application uninstallation registry key, creating the registry value if it does not already exist. If IFX_PRODUCT_VERSION is not in packed DWORD format, the function fails.

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

RegDBSetVersion ( );

Parameters

None.

Return Values

RegDBSetVersion Return Values

Return Value

Description

>= ISERR_SUCCESS

The function successfully placed the data in the registry value.

< ISERR_SUCCESS

The function failed to place data in the registry.

Additional Information

RegDBSetVersion is called by the default code for the OnMoveData event handler function.

See Also