ReadRegistryKey()

Syntax:

ReadRegistryKey( RegistryPath, Key )

Return:

The data contained within the Key. For example, if the RegistryPath entered was for Illuminatus Opus Pro and the specified registry key was "Version", the return value would be the current version installed on your computer.

If the key does not exist the return string is empty.

Parameters:

RegistryPath – This is the path where the registry file is stored. This parameter is required and must be surrounded by quote marks.

Note:
Type regedit in the Run option in the Start programs at the bottom of the Windows desktop to list the registry keys on your system.

Key – Enter the name of the registry key. The Return Value will be the value of this key. This parameter is required and must be surrounded by quote marks.

Remarks:

The ReadRegistryKey function is used to return the value of a particular registry key contained in the computers registry. This function is often used to dynamically detect the presence of a particular application on an end users computer system. For example, you can check what version of a product is currently installed on a users system – based on this information you can then request they update their version or provide links to latest versions of the software. This is particularly useful if your publication relies on external software to work, such as a PDF reader so people can read your PDF documents.

Note:
This function will work when you publish as a standalone or web publication.

image\Script_Button.jpgExamples

 

see also:GetINIFileData