在 Wix 中使用 FirewallException api 将设置应用于 Win7 中的所有网络配置文件 [英] Using FirewallException api in Wix to apply setting to all network profiles in Win7

查看:22
本文介绍了在 Wix 中使用 FirewallException api 将设置应用于 Win7 中的所有网络配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

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

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"/>

推荐答案

您的代码未通过,但您可以使用 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.

这篇关于在 Wix 中使用 FirewallException api 将设置应用于 Win7 中的所有网络配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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