在 Wix 中使用 FirewallException api 将设置应用到 Win7 中的所有网络配置文件

发布于 2024-09-18 04:52:31 字数 345 浏览 6 评论 0原文

我制作的 wix 安装程序使用 FirewallException api 将软件包的某些组件注册到 Windows 防火墙,以尝试阻止防火墙弹出窗口。

似乎在Windows7中,它仅注册用户运行安装程序时当前处于活动状态的网络配置文件(即工作/家庭/私人)。当用户更改网络配置文件并运行我们的应用程序时,他们会看到防火墙弹出窗口。

我们可以使用防火墙例外将设置应用于所有网络配置文件吗?我当前使用的语法是:

<fire:FirewallException Id="XXXX" Name="Program Name" Scope="any" File="WixFileRef"/>

An installer with wix I've made uses the FirewallException api to register some components of the package with the Windows firewall, in order to try and prevent firewall popups.

It seems that in Windows7, it only registers with exception for the network profile (ie Work/Home/Private) that is currently active when the user runs the installer. When the user changes network profile, and runs our application, they are presented with firewall popups.

Can we use the firewall exception to apply the settings to all Network Profiles? The syntax I'm currently using is:

<fire:FirewallException Id="XXXX" Name="Program Name" Scope="any" File="WixFileRef"/>

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

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

发布评论

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

评论(1

梅倚清风 2024-09-25 04:52:31

您的代码未通过,但您可以使用 Profile 属性控制使用的配置文件。它在 WiX v3.5 及更高版本中可用。

Your code didn't come through but you can control the profile(s) used using the Profile attribute. It's available in WiX v3.5 and later.

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