Pascal Scripting: RegKeyExists

Prototype:

function RegKeyExists(const RootKey: Integer; const SubKeyName: String): Boolean;

Description:

Returns True if the specified registry key exists.

Example:
begin
  if RegKeyExists(HKEY_AUTO, 'Software\Jordan Russell\Inno Setup') then
  begin
    // The key exists
  end;
end;