...herausfinden, ob Word installiert ist?

Autor: Thomas Stutz

Kategorie: System

uses
Registry;

function IsWordInstalled: Boolean;
var
Reg: TRegistry;
s: string;
begin
Reg := TRegistry.Create;
try
Reg.RootKey := HKEY_CLASSES_ROOT;
Result := Reg.KeyExists('Word.Application');
finally
Reg.Free;
end;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
if
IsWordInstalled then
ShowMessage('MS Word is installed.');
end;

 

printed from
www.swissdelphicenter.ch
developers knowledge base