Using FirewallException api in Wix to apply setting to all network profiles in Win7

依然范特西╮ 提交于 2019-12-11 16:31:37

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/3666581/using-firewallexception-api-in-wix-to-apply-setting-to-all-network-profiles-in-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!