[Spice-devel] [NSIS] Add guest agent hooks directories
Yedidyah Bar David
didi at redhat.com
Tue Jun 21 09:02:22 UTC 2016
From: Vinzenz Feenstra <vfeenstr at redhat.com>
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 at redhat.com>
---
win-guest-tools.nsis | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/win-guest-tools.nsis b/win-guest-tools.nsis
index fc00953..e4cd33d 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,11 @@ 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"
!endif
RMDir /rebootok "$INSTDIR"
--
2.1.4
More information about the Spice-devel
mailing list