在WIX安装程序中创建应用程序池 [英] Creating Application pool in WIX Installer

查看:56
本文介绍了在WIX安装程序中创建应用程序池的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WIX创建具有自定义应用程序池设置的网站.安装后,我的新网站正在使用默认应用程序池",而不是使用我在安装过程中创建的网站.我可以找到虚拟目录指向新创建的应用程序池的方法,但是 iis:WebSite 没有设置应用程序池的属性.

I'm creating website with custom application pool settings using WIX. After installation my new website is using Default Application Pool instead of using the one that I'm creating during installation. I could find ways for virtual directory to point to newly created app pool but seems iis:WebSite does not have attribute for setting app pool.

这是我的代码:

<iis:WebSite Id="MyWebSite" Description='MyWebsiteDesc' SiteId='*' Directory='MyWebFolder'>
  <iis:WebAddress Id="AllUnassigned" Port="80" />
</iis:WebSite>

<util:User Id="MyAppPoolUser" 
           CreateUser="no" 
           Name="[APPPOOL_USER]" 
           Password="[APPPOOL_PASS]" 
           Domain="." />

<iis:WebAppPool Id="MyAppPool" 
                Name="[WEB_APP_NAME]" 
                Identity="other" 
                User="MyAppPoolUser" 
                ManagedRuntimeVersion="v4.0" 
                ManagedPipelineMode="Integrated"  />

推荐答案

使用 IIS:WebVirtualDir/IIS:WebApplication 指向您的AppPool.

Use IIS:WebVirtualDir/IIS:WebApplication to point to your AppPool.

希望,这可能会对您有所帮助.

Hope, this might help you.

这篇关于在WIX安装程序中创建应用程序池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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