Inno Setup CreateOleObject('IISNamespace') throws exception on Windows Server 2012

喜欢而已 提交于 2019-12-01 09:29:20
complete_stranger

I had the same issue on a Windows Server 2008 R2 Enterprise with Service Pack 1.

procedure TForm1.Button1Click(Sender: TObject);
var
  iis: OleVariant;
begin
  iis := CreateOleObject('IISNamespace');
end;

The solution for me was a missing IIS feature. One has to install the IIS 6 thingy.

(germany version, don't know english)

  • IIS 6-Verwaltungskompatibilität
    • IIS 6-Metabasiskompatibilität
    • IIS 6-WMI-Kompatibilität
    • IIS 6-Scriptingtools
    • IIS 6-Verwaltungskonsole

I am not sure but "IIS 6-Scriptingtools" should be enough.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!