【问题标题】:How can I check in Inno Setup if MSXML 4.0 is installed?如果安装了 MSXML 4.0,我如何检查 Inno Setup?
【发布时间】:2022-01-24 01:22:46
【问题描述】:

我需要做的是检查是否安装了 Microsoft XML Parser 4.0 SP3 (MSXML) х64,如果没有安装它。

这适用于默认情况下可能未安装 MSXML 的旧系统。

如何在 Inno Setup 中做到这一点?

【问题讨论】:

    标签: inno-setup msxml


    【解决方案1】:

    基于How determine if MSXML6 is installed in a system using Delphi?,很简单:

    try
      CreateOleObject('Msxml2.DOMDocument.4.0')
      MsgBox('Installed', mbInformation, MB_OK);
    except
      MsgBox('not installed', mbInformation, MB_OK);
    end;
    

    尽管基于MSXML on Wikipedia,但没有任何版本的 Windows 可以运行不内置 MSXML 6.0 的最新版本的 Inno Setup。所以我认为你根本不需要测试它,直接去Msxml2.DOMDocument.6.0


    您的后续问题:How can Microsoft XML Parser 4.0 be installed from Inno Setup?

    【讨论】:

      猜你喜欢
      • 2022-01-24
      • 2011-05-05
      • 1970-01-01
      • 2022-10-22
      • 1970-01-01
      • 1970-01-01
      • 2011-07-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多