Stop managing the service manually, let the MSI installer handle it

tags/wpkg-zabbix_agent-3.4.3-0.beta1
Daniel Berteaud 9 years ago
parent 03b186d64a
commit 90c53e2840
  1. 26
      packages/zabbix_agent.xml

@ -2,7 +2,7 @@
<packages> <packages>
<package id="zabbix_agent" <package id="zabbix_agent"
name="Agent de supervision Zabbix" name="Agent de supervision Zabbix"
revision="19" revision="20"
priority="10"> priority="10">
<variable name="PKG_VERSION" value="3.0.1" /> <variable name="PKG_VERSION" value="3.0.1" />
@ -14,34 +14,10 @@
<install cmd='msiexec /qn /i "%MSI%" SERVER=%ZBX_SERVER_IP% RMTCMD=0' /> <install cmd='msiexec /qn /i "%MSI%" SERVER=%ZBX_SERVER_IP% RMTCMD=0' />
<install cmd='netsh advfirewall firewall add rule name="Zabbix Agent" dir=in action=allow protocol=TCP localport=10050 enable=yes remoteip=%ZBX_SERVER_IP%' /> <install cmd='netsh advfirewall firewall add rule name="Zabbix Agent" dir=in action=allow protocol=TCP localport=10050 enable=yes remoteip=%ZBX_SERVER_IP%' />
<upgrade cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --stop'>
<exit code="1" />
<exit code="0" />
</upgrade>
<upgrade cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --uninstall'>
<exit code="1" />
<exit code="0" />
</upgrade>
<upgrade include="install" /> <upgrade include="install" />
<downgrade cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --stop'>
<exit code="1" />
<exit code="0" />
</downgrade>
<downgrade cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --uninstall'>
<exit code="1" />
<exit code="0" />
</downgrade>
<downgrade include="install" /> <downgrade include="install" />
<remove cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --stop'>
<exit code="1" />
<exit code="0" />
</remove>
<remove cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --uninstall'>
<exit code="1" />
<exit code="0" />
</remove>
<remove cmd='%COMSPEC% /C msiexec /qn /norestart /x "%MSI%"' /> <remove cmd='%COMSPEC% /C msiexec /qn /norestart /x "%MSI%"' />
<remove cmd='netsh advfirewall firewall del rule name="Zabbix Agent"' /> <remove cmd='netsh advfirewall firewall del rule name="Zabbix Agent"' />

Loading…
Cancel
Save