Registry Functions

InstallShield 2019 ยป InstallScript Language Reference

The following functions allow you to access the registry, read, create and delete registry keys, and establish registry-related parameters for uninstallation.

Registry Functions

Function

Description

CreateInstallationInfo

Creates an application information key and a per application paths key for the program you are installing.

CreateRegistrySet

Creates one or all of the sets of registry entries specified in the Resources pane's Registry Entries folder.

DeinstallSetReference

This function is obsolete.

If you want to check whether a file is locked during uninstallation, write script code that calls the Is function with the FILE_LOCKED constant for the nIsFlag parameter and that responds as needed.

DeinstallStart

This function is obsolete.

InstallationInfo

This function is obsolete. Use the CreateInstallationInfo function instead.

MaintenanceStart

Enables uninstallation functionality by creating the <PRODUCT_GUID> registry keys.

RegDBConnectRegistry

Opens a connection to a remote registry.

RegDBCopyKeys

Copies the registry keys and values under the key specified by szSourceKey to the key specified by szTargetKey.

RegDBCopyValues

Copies the registry values under the key specified by szSourceKey to the key specified by szTargetKey.

RegDBCreateKeyEx

Creates a key in the registry. Also enables you to associate a class object with a registry key (advanced users only).

RegDBDeleteItem

Deletes values under the per application paths key or the application uninstallation key, depending on the value of nItem.

RegDBDeleteKey

Deletes the specified key from the registry.

RegDBDeleteValue

Deletes a value from a specified registry key.

RegDBDisConnectRegistry

Closes the connection to a remote registry.

RegDBGetAppInfo

Retrieves a value from under the application information key.

RegDBGetDefaultRoot

Returns the root key that is used by the general registry-related functions.

RegDBGetItem

Retrieves values under the per-application paths key or the application uninstallation key.

RegDBGetKeyValueEx

Retrieves a value from under a key in the registry.

RegDBGetUninstCmdLine

Gets the registered command line for the uninstallation that is specified by szUninstallKey and returns the command line in svUninstCmdLine.

RegDBKeyExist

Checks that a registry key exists.

RegDBQueryKey

Queries a key for its subkeys and value names.

RegDBQueryKeyCount

Returns the number of subkeys or values under a specified key.

RegDBQueryStringMultiStringCount

Returns the number of strings contained in the multistring value specified by a certain value under a specified key.

RegDBSetAppInfo

Sets a value under the application information key.

RegDBSetDefaultRoot

Sets the root key.

RegDBSetItem

Assign values under the per application paths key or the application uninstallation key.

RegDBSetKeyValueEx

Sets registry entries.

SetInstallationInfo

Specifies company and product information for use by CreateInstallationInfo.

SetObjectPermissions

Sets permissions for a file, a folder, or a registry key.

See Also