在WIX安装程序中创建应用程序池

编程入门 行业动态 更新时间:2024-10-27 20:38:59
本文介绍了在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安装程序中创建应用程序池

本文发布于:2023-11-24 11:43:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625060.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:安装程序   应用程序   WIX

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!