Previous Topic: IsLikeNTNext Topic: LANGUAGES


KeyExists

KeyExists

Verifies that a registry key exists on the source machine or on the destination machine. It can take two parameters. The first parameter is the registry key path and is string value. The second parameter indicates whether to look on the source machine or the destination machine. The second parameter is optional and is a Boolean value. If the second parameter is True, the interpreter looks on the source machine for the specified key. If the parameter is False or omitted, the interpreter looks on the destination machine.

Note: The Boolean parameter can only be used during General and Apply functions. The Boolean parameter causes a syntax error or runtime error if used otherwise.

First parameter:

The Key path (string value)

Second parameter:

The machine indicator (Boolean value)

Usage:
KeyExists( <key path> );
Example:
if (KeyExists( "HKLM\\Software\\Microsoft\\Plus!", SOURCE))
    ApplyKey( "HKLM\\Software\\Microsoft\\Plus!");