[NSIS 2/5] Add guest agent hooks directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Vinzenz Feenstra <vfeenstr@xxxxxxxxxx>

For the new lifecycle events hook feature of the ovirt guest agent
the following directories should be installed, so it's more easy
for users to know where to put their hooks.

Change-Id: Ia815927a8f5e9e1adf216389fa404f80a6bf7ed7
Bug-Url: https://bugzilla.redhat.com/1347272
Signed-off-by: Vinzenz Feenstra <vfeenstr@xxxxxxxxxx>
---
 win-guest-tools.nsis | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/win-guest-tools.nsis b/win-guest-tools.nsis
index fc00953..f6996a9 100644
--- a/win-guest-tools.nsis
+++ b/win-guest-tools.nsis
@@ -109,6 +109,11 @@ Section "install"
   File "bin/default.ini"
   File "bin/default-logger.ini"
 
+  CreateDirectory "$INSTDIR\hooks\after_hibernation"
+  CreateDirectory "$INSTDIR\hooks\before_hibernation"
+  CreateDirectory "$INSTDIR\hooks\after_migration"
+  CreateDirectory "$INSTDIR\hooks\before_migration"
+
   ExecWait "$INSTDIR\vcredist_x86.exe /q"
 !endif
 
@@ -228,6 +233,12 @@ Section "Uninstall"
   RMDir /rebootok /r "$INSTDIR\drivers"
 !ifdef OVIRT
   RMDir /rebootok "$INSTDIR\OVirtGuestService.exe"
+
+  RMDir /rebootok "$INSTDIR\hooks\after_hibernation"
+  RMDir /rebootok "$INSTDIR\hooks\before_hibernation"
+  RMDir /rebootok "$INSTDIR\hooks\after_migration"
+  RMDir /rebootok "$INSTDIR\hooks\before_migration"
+  RMDir /rebootok "$INSTDIR\hooks"
 !endif
   RMDir /rebootok "$INSTDIR"
 
-- 
2.1.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]