delphi - 用Delphi如何获取当前安装的IE版本?

如何在我的电脑上安装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/

相关文章:

iphone - 如何确保浮点值始终是 0.25 的倍数?

.net - 来自非托管代码的 System.AccessViolationException?

objective-c - 如何使用可为空的 int 或 NSInteger 指针?

macos - 如何为 Mac OS X 制作可启动 DVD?

vim - 如何指定文件的缩进?

iphone - CFBundleExecutable 错误

php - 使用php过滤掉数组中的重复值

ios-simulator - class_getClassMethod 通常返回 nil(似乎只适

python - 获取当前日期作为方法的默认参数

c# - 使用 Web 应用程序管理定时事件的首选方法是什么?