diff options
author | Vinzenz Feenstra <vfeenstr@redhat.com> | 2016-06-21 12:02:22 +0300 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2016-06-21 12:34:16 +0200 |
commit | fea5b655bf1b2ac648945fb066618f70d23d84b9 (patch) | |
tree | 6baede3d2dd78ec7aa5e397e5589b7ce1b7b2075 | |
parent | 85a16afa8dae368ce0745f4d5885b0b268a115bb (diff) |
Add guest agent hooks directories
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@redhat.com>
-rw-r--r-- | win-guest-tools.nsis | 10 |
1 files changed, 10 insertions, 0 deletions
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" |