【问题标题】:Programmatically change IIS7's ApplicationHost.config on Windows 2008 64-bit在 Windows 2008 64 位上以编程方式更改 IIS7 的 ApplicationHost.config
【发布时间】:2009-11-26 16:34:09
【问题描述】:

我需要我的 32 位 InstallShield 安装程序来更改 ApplicationHost.config(IIS7 的一部分)。我想将 ipSecurity configSection 的 overrideModeDefaults 值从“拒绝”设置为“允许”。

这在 Windows 2008 32 位中可以正常工作,但在 Windows 2008 64 位中则不行。问题是安装程序只在 systemWOW64 中查找文件,但它实际上在 system32 中。

我是否可以通过 32 位安装程序以编程方式编辑此文件?我可以运行脚本,甚至可以使用我的 32 位配置工具在安装后进行。

【问题讨论】:

    标签: iis-7 64-bit windows-server-2008


    【解决方案1】:

    我想我已经找到了自己的答案。事实证明,您可以使用 %windir%\sysnative 访问 32 位应用程序中的 system32 目录。

    【讨论】:

      猜你喜欢
      • 2014-11-25
      • 1970-01-01
      • 2010-10-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-11
      • 2019-07-16
      • 1970-01-01
      相关资源
      最近更新 更多