[NSIS] 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 | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/win-guest-tools.nsis b/win-guest-tools.nsis
index fc00953..ffd3134 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\bin\hooks\after_hibernation"
+  CreateDirectory "$INSTDIR\bin\hooks\before_hibernation"
+  CreateDirectory "$INSTDIR\bin\hooks\after_migration"
+  CreateDirectory "$INSTDIR\bin\hooks\before_migration"
+
   ExecWait "$INSTDIR\vcredist_x86.exe /q"
 !endif
 
@@ -228,6 +233,11 @@ Section "Uninstall"
   RMDir /rebootok /r "$INSTDIR\drivers"
 !ifdef OVIRT
   RMDir /rebootok "$INSTDIR\OVirtGuestService.exe"
+
+  RMDir /rebootok "$INSTDIR\bin\hooks\after_hibernation"
+  RMDir /rebootok "$INSTDIR\bin\hooks\before_hibernation"
+  RMDir /rebootok "$INSTDIR\bin\hooks\after_migration"
+  RMDir /rebootok "$INSTDIR\bin\hooks\before_migration"
 !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]