91
edits
Changes
Fix firewall rules on upgrade
This package controls configuration with <code>nscp.exe settings --path ''path to key'' -key ''key name'' --set ''value''</code> instead of copying an INI file.
Note that when upgrading from 0.3.8, firewall rules will need to be switched to point to the new <code>nscp.exe</code> instead of <code>nsclient++.exe</code>. This package definition does not do handles that yetwith <code>netsh advfirewall</code>.
<source lang="xml">
<install cmd="netsh advfirewall firewall set rule name="NSClient++ Monitoring Agent" profile="any" new remoteip="%myips%"" />
<!-- Handle upgrades from e.g. 0.3.8, where the binary was nsclient++.exe and the firewall rules will be wrong -->
<install cmd="netsh advfirewall firewall set rule name="NSClient++ Monitoring Agent" profile="any" new program="%PROGRAMFILES%\NSclient++\nscp.exe"" />
<!-- Example: Set your password-->