Pascal Scripting: RegKeyExists

Inno Setup

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_CURRENT_USER, 'Software\Jordan Russell\Inno Setup') then
  begin
    // The key exists
  end;
end;