From 2f0086c7f4db020336f25ac08329e2c81080edf2 Mon Sep 17 00:00:00 2001
From: Ramon Novoa <rnovoa@artica.es>
Date: Thu, 19 Apr 2012 14:52:24 +0000
Subject: [PATCH] 2012-04-19  Ramon Novoa  <rnovoa@artica.es>

	* modules/pandora_module.cc: Default to generic_data if no module_type
	  is not set.

	* installer/pandora.mpi: Remove the util directory from the PATH when
	  uninstalling.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6038 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_agents/win32/ChangeLog                 |  8 ++++++++
 pandora_agents/win32/installer/pandora.mpi     | 10 ++++++++++
 pandora_agents/win32/modules/pandora_module.cc |  2 +-
 3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/pandora_agents/win32/ChangeLog b/pandora_agents/win32/ChangeLog
index 3c78d8797a..c4df615324 100644
--- a/pandora_agents/win32/ChangeLog
+++ b/pandora_agents/win32/ChangeLog
@@ -1,3 +1,11 @@
+2012-04-19  Ramon Novoa  <rnovoa@artica.es>
+
+	* modules/pandora_module.cc: Default to generic_data if no module_type
+	  is not set.
+
+	* installer/pandora.mpi: Remove the util directory from the PATH when
+	  uninstalling.
+
 2012-02-07  Ramon Novoa  <rnovoa@artica.es>
 
 	* pandora_windows_service.cc: Convert tentacle_timeout to milliseconds.
diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi
index 01f9845502..ed4edd107c 100755
--- a/pandora_agents/win32/installer/pandora.mpi
+++ b/pandora_agents/win32/installer/pandora.mpi
@@ -659,6 +659,7 @@ InstallComponent 73AB9FDF-9481-4EC3-8B31-C109BAA1086C -setup Uninstall -type act
 InstallComponent 19131BB8-88ED-C9E4-A5CF-8873BE8F5D09 -setup Uninstall -type action -title {Execute External Program} -component ExecuteExternalProgram -active Yes -parent 73AB9FDF-9481-4EC3-8B31-C109BAA1086C
 InstallComponent 3A1294BA-6D93-95C0-D81D-3435E62A69F3 -setup Uninstall -type action -title {Execute External Program} -component ExecuteExternalProgram -active Yes -parent 73AB9FDF-9481-4EC3-8B31-C109BAA1086C
 InstallComponent 73C87D6F-ACBB-026B-157C-1CC1FD4C4EEC -setup Uninstall -type action -title {Execute External Program} -component ExecuteExternalProgram -active Yes -parent 73AB9FDF-9481-4EC3-8B31-C109BAA1086C
+InstallComponent 0BABDE07-5132-BB2B-CDB4-AED542367076 -setup Uninstall -type action -title {Remove Directory From Path} -component RemoveDirectoryFromPath -active Yes -parent 73AB9FDF-9481-4EC3-8B31-C109BAA1086C
 InstallComponent D2829903-F232-F03E-070A-386860F74F4A -setup Uninstall -type action -title {Delete File} -component DeleteFile -active Yes -parent 73AB9FDF-9481-4EC3-8B31-C109BAA1086C
 InstallComponent ACFFE9C0-C404-4FD9-AD70-8F60E822DE65 -setup Uninstall -type action -title {Uninstall Selected Files} -component UninstallSelectedFiles -active Yes -parent 73AB9FDF-9481-4EC3-8B31-C109BAA1086C
 InstallComponent AA00EDED-9979-419F-A32C-DF1480E9EFF0 -setup Uninstall -type actiongroup -title {Finish Actions} -active Yes -parent ActionGroupsUninstall
@@ -710,6 +711,15 @@ array set Properties {
 06959B7F-380D-DEF6-431A-1894BF9A367C,WorkingDirectory
 {<%InstallDir%>}
 
+0BABDE07-5132-BB2B-CDB4-AED542367076,Conditions
+{0 conditions}
+
+0BABDE07-5132-BB2B-CDB4-AED542367076,Directory
+{<%InstallDir%>\util}
+
+0BABDE07-5132-BB2B-CDB4-AED542367076,Level
+{system}
+
 0C4A17DA-7867-40CC-81B4-0D1F170581AC,Conditions
 {0 conditions}
 
diff --git a/pandora_agents/win32/modules/pandora_module.cc b/pandora_agents/win32/modules/pandora_module.cc
index 39e9dfd08d..b6d3bc9d42 100644
--- a/pandora_agents/win32/modules/pandora_module.cc
+++ b/pandora_agents/win32/modules/pandora_module.cc
@@ -182,7 +182,7 @@ Pandora_Module::cleanDataList () {
  */
 Module_Type
 Pandora_Module::parseModuleTypeFromString (string type) {
-	if (type == module_generic_data_str) {
+	if (type == module_generic_data_str || type == "") {
 		return TYPE_GENERIC_DATA;
 	} else if (type == module_generic_data_inc_str) {
 		return TYPE_GENERIC_DATA_INC;