RegDBDisConnectRegistry

InstallShield 2015 » 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 RegDBDisConnectRegistry function closes a connection to a remote registry that you established by calling RegDBConnectRegistry.

After calling RegDBDisConnectRegistry, all calls to the InstallScript registry-related functions affect the local system’s registry. 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

RegDBDisConnectRegistry ( nReserved );

Parameters

RegDBDisConnectRegistry Parameters

Parameter

Description

nReserved

Pass zero in this parameter. No other value is allowed.

Return Values

RegDBDisConnectRegistry Return Values

Return Value

Description

0

Indicates that this function successfully closed a connection to the registry on the remote system.

< 0

Indicates that this function failed to close the registry connection.

See Also