如何允许用户使用 WiX 选择要安装的现有 IIS 网站?
有谁知道 WiX 安装程序的完整、可下载/可复制示例,该示例允许用户在安装 Web 应用程序时选择现有网站?
我正在努力让这个工作正常进行,在看到这似乎是一项重要的工作之后,我想先运行一个示例,以便我有一个工作项目作为我自己工作的基础。
只是为了确认...允许用户选择要安装的站点真的与上述站点建议的工作量一样吗?我错过了一个技巧吗?
Does anyone know of a complete, downloadable/copyable example of a WiX installer that allows the user to select an existing website when installing a web application?
I'm trying to get this working and, after seeing that it seems to be a significant piece of work, I'd like to get an example running first so that I have a working project to base my own work on.
I found this (code is pasted as images) and this (can't get it running).
Just to confirm... Is it really as much work as the sites above suggest to allow a user to select the site to install to? Am I missing a trick?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现这篇 博客文章 执行以下操作C# 中的自定义操作,并具有完整的可下载示例。很容易遵循。
I found this blog post that does the custom action in C# and has a complete downloadable sample. Pretty easy to follow.
是的,在 WiX 中完成这项工作需要相当多的工作。我通常不会给用户这么多选择。如果这对您很重要,您可能只想将其作为安装后配置步骤来执行。
Yes, that would be quite a bit of work to do it in WiX. I don't typically give a user this much choice. You might just want to do it as an after install configuration step if it's important to you.