我正在寻找一种方法来确定用户是否已经安装了 IIS 版本。如果他不这样做,我将继续运行我的 IIS 安装脚本。
我知道我做的异常处理条款:
try
IIS := CreateOleObject('IISNamespace');
except
RaiseException(ExceptionType, ‘IIS not installed. Setup will now install IIS on your machine. ’#13#13'(Error ‘’’+ExceptionParam+’’’ occured)’);
end;
但由于某种原因,我的编译器版本似乎无法识别 RaiseException。我也试过包括
uses
SysUtils;
但编译器甚至无法识别 SysUtils。是否有类似注册表项的东西,我可以查看以确定是否已安装 IIS?
任何帮助将非常感激。