正在设置“ASP.NET Impersonation"可以将 WiX 3.x 与 IISExtension 一起使用吗? [英] Is setting "ASP.NET Impersonation" possible using WiX 3.x with IISExtension?

查看:16
本文介绍了正在设置“ASP.NET Impersonation"可以将 WiX 3.x 与 IISExtension 一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 .wxs 文件中有这个组件:

I have this component in my .wxs file:

  <Component Id="Component.IisConfiguration" Guid="[COMPONENT_GUID_IISSITE]">
    <iis:WebAppPool Id="IIS.AppPool" Name="[WEB_APP_POOL_NAME]" Identity="networkService" ManagedRuntimeVersion="v4.0" />
    <iis:WebSite Id="IIS.WebSite" Description="[WEB_APP_NAME]" SiteId="[WEB_APP_SITEID]" Directory="TARGETDIR" >          
      <iis:WebApplication Id="IIS.WebSite.Application" Name="[WEB_APP_POOL_NAME]" WebAppPool="IIS.AppPool" />
      <iis:WebAddress Id="IIS.WebSite.WebAddress.Port" Port="[WEB_APP_ADDRESS_PORT]" />
      <iis:WebDirProperties Id="IIS.WebSite.Authentication" WindowsAuthentication="yes"  />
    </iis:WebSite>
  </Component>

是否可以在任何地方设置ASP.NET Impersonation"?

Is it possible to set "ASP.NET Impersonation" anywhere ?

推荐答案

似乎没有现成的开关.您可以使用自定义操作调用:

It seems there's no out-of-the-box switch for this. You can have a custom action which calls:

appcmd set config /commit:WEBROOT/section:identity /impersonate:true

有关详细信息,请参阅这篇文章.

See this article for more information.

另一方面,您始终可以在应用程序级别设置此设置,并使用标准 XmlConfig 元素为此修改 web.config 文件.

On the other hand, you can always set this setting on the application level, and use the standard XmlConfig element to modify the web.config file for this.

这篇关于正在设置“ASP.NET Impersonation"可以将 WiX 3.x 与 IISExtension 一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆