如何在我的电脑上安装IE版本?
我已经找到解决问题的方法,这样我就不必再检查当前安装的 IE 的版本了。感谢您的回答。 :)
最佳答案
uses
Registry;
function GetIEVersion : string;
var
Reg: TRegistry;
begin
Reg := TRegistry.Create;
try
Reg.RootKey := HKEY_LOCAL_MACHINE;
Reg.OpenKeyReadOnly('Software\Microsoft\Internet Explorer');
try
Result := Reg.ReadString('Version');
except
Result := '';
end;
Reg.CloseKey;
finally
Reg.Free;
end;
end;
此函数应返回当前安装的 IE 版本号。
https://stackoverflow.com/questions/3253284/