Module: check_mk
Branch: master
Commit: d07316ae78ca0c923e589254012f688ab6a49ca9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d07316ae78ca0c…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon May 4 12:33:38 2015 +0200
Upon install, the MSI installer did not unpack any plugins provided
by the plugins.cap file. You had to manually unpack these plugins
with the command "check_mk_agent.exe unpack plugins.cap".
This has been fixed.
---
.werks/2077 | 15 +++++++++++++++
ChangeLog | 1 +
doc/treasures/windows_msi/check_mk_agent_baked.wxs | 8 ++++++++
3 files changed, 24 insertions(+)
diff --git a/.werks/2077 b/.werks/2077
new file mode 100644
index 0000000..64b324a
--- /dev/null
+++ b/.werks/2077
@@ -0,0 +1,15 @@
+Title: Windows MSI Installer: fixed automatical install of agent plugins
+Level: 2
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1430735433
+
+Upon install, the MSI installer did not unpack any plugins provided
+by the plugins.cap file. You had to manually unpack these plugins
+with the command "check_mk_agent.exe unpack plugins.cap".
+
+This has been fixed.
+
diff --git a/ChangeLog b/ChangeLog
index bc69311..c16bbc3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -351,6 +351,7 @@
* 2071 FIX: windows agent: fileinfo check now correctly reports empty directories...
* 2072 FIX: agent_netapp, netapp_api_volumes, netapp_api_disks: Improved check
output...
* 2075 FIX: check_mk_agent: fixed formatting error for windows eventlog entries >
2048 characters...
+ * 2077 FIX: Windows MSI Installer: fixed automatical install of agent plugins...
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/doc/treasures/windows_msi/check_mk_agent_baked.wxs
b/doc/treasures/windows_msi/check_mk_agent_baked.wxs
index c903fa7..5b7c47c 100644
--- a/doc/treasures/windows_msi/check_mk_agent_baked.wxs
+++ b/doc/treasures/windows_msi/check_mk_agent_baked.wxs
@@ -74,6 +74,13 @@
Impersonate="no"
Return ="ignore"/>
+ <CustomAction Id="unpack_plugins"
+ Directory ="INSTALLDIR"
+ ExeCommand ='[INSTALLDIR]check_mk_agent.exe unpack plugins.cap'
+ Execute ="deferred"
+ Impersonate="no"
+ Return ="ignore"/>
+
<CustomAction Id="uninstall_plugins"
Directory ="INSTALLDIR"
ExeCommand ='[INSTALLDIR]uninstall_plugins.bat'
@@ -96,6 +103,7 @@
Return ="ignore"/>
<InstallExecuteSequence>
+ <Custom Action="unpack_plugins"
Before="InstallFinalize">NOT REMOVE="ALL"</Custom>
<Custom Action="install_service"
Before="InstallFinalize">NOT REMOVE="ALL" AND
INSTALLSERVICE</Custom>
<Custom Action="start_service"
Before="InstallFinalize">NOT REMOVE="ALL" AND
INSTALLSERVICE</Custom>
</InstallExecuteSequence>