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.
The Key path (string value)
The machine indicator (Boolean value)
KeyExists( <key path> );
if (KeyExists( "HKLM\\Software\\Microsoft\\Plus!", SOURCE))
ApplyKey( "HKLM\\Software\\Microsoft\\Plus!");
|
Copyright © 2013 CA.
All rights reserved.
|
|