如何获取 Wix 安装包中的默认 IIS 目录?

发布于 2024-09-15 13:03:25 字数 384 浏览 4 评论 0原文

我想将 Wix 中的默认安装位置设置为默认 IIS 目录,

通常为 C:\inetpub\wwwroot\

在 XML 中我

<Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="ProgramFilesFolder">
                <Directory Id="INSTALLLOCATION" Name="myProduct">

假设我可以将 ProgramFilesFolder 目录和 TARGETDIR 更改为与 IIS 属性匹配的目录。 (如果默认位置在计算机上移动)

那会是什么?

I Would like to set my default install location in Wix to go the default IIS directory

usually C:\inetpub\wwwroot\

in the XML i have

<Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="ProgramFilesFolder">
                <Directory Id="INSTALLLOCATION" Name="myProduct">

I Assume i can change either the ProgramFilesFolder directory the the TARGETDIR to one that matches with an IIS property. (in case the default location is moved on a machine)

What would that be?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

Hello爱情风 2024-09-22 13:03:25

您可以使用注册表搜索来查找该位置:

<Property Id="INSTALLLOCATION"> 
    <RegistrySearch Id="FindInetPubFolder" Root="HKLM" Key="SOFTWARE\Microsoft\InetStp" Name="PathWWWRoot" Type="directory" /> 
</Property>

但我要提醒您,我通常不会这样做。我倾向于创建新网站或新虚拟目录,并使用 ProgramFiles\Company\Product\WebSites\WebSite 作为放置文件的位置。这样可以更安全地与盒子上可能存在的任何其他网站集成。

You can use a registry search to find the location:

<Property Id="INSTALLLOCATION"> 
    <RegistrySearch Id="FindInetPubFolder" Root="HKLM" Key="SOFTWARE\Microsoft\InetStp" Name="PathWWWRoot" Type="directory" /> 
</Property>

But I would caution you that I don't typically do this. I tend to either create new websites or new virtual directories and use use ProgramFiles\Company\Product\WebSites\WebSite as where I put my files. This allows safer integration with whatever other web sites that might also exist on the box.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文