开发者

Programmatically change IIS7's ApplicationHost.config on Windows 2008 64-bit

I need my 32-bit InstallShield installer to make a change to ApplicationHost.config (Part of IIS7). I want to set the value of overrideModeDefaults from "Deny" to "Allow" for the ipSecurity configSection.

This works fine in Windows 2008 32-bit, but not in Windows 2008 64-bit. The problem is that the installer only looks in systemWOW64 for the file, but it is actually in system32.

Is there a way for me to edit this file programmatically from my 32-bit installer? I'm okay with running a script or even doing it post-instal开发者_Python百科l with my 32-bit configuration tool.


I think I've found my own answer. Turns out you can use %windir%\sysnative to access the system32 directory in a 32-bit application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜