Autor Beitrag
RedArcus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34

Win Vista; Windows7; Win10
D5 Prof; Delphi XE5; Delphi Tokyo
BeitragVerfasst: Do 06.11.08 11:32 
Hallo,
habe eine Frage bezüglich Prüfen ob ein Schlüssel vorhanden ist.

Folgende Funktion funktioniert einwandfrei auf einem lokalen System, oder im Netz. Jedoch auf einem Terminal-Server nicht, obwohl der Schlüssel dort auch vorhanden ist.

function IsExcelInstalled: Boolean;
var
Reg: TRegistry;
begin
Reg := TRegistry.Create;
try
Reg.RootKey := HKEY_CLASSES_ROOT;
Result := Reg.KeyExists('Excel.Application');
finally
Reg.Free;
end;
end;

Vielen Dank

Gruß