summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-04-28 13:55:46 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-04-28 15:16:59 +0200
commit177e6d964dcdc0d02e1fbd76ed7d6f7eba38c123 (patch)
tree74fd28eb7b42a169053ff85d54ad6460da98c268
parent4d9a7f9e7bbff784c2165ce68e5a5c4a8b28078d (diff)
nsis: Switch to temp dir during uninstall
It's not possible to remove the current process directory, so this commit ensures we are not in one of the directories we need to remove during uninstall.
-rw-r--r--spice-guest-tools.nsis2
1 files changed, 2 insertions, 0 deletions
diff --git a/spice-guest-tools.nsis b/spice-guest-tools.nsis
index f49b449..e642d61 100644
--- a/spice-guest-tools.nsis
+++ b/spice-guest-tools.nsis
@@ -129,6 +129,8 @@ SectionEnd
Section "Uninstall"
Call un.StopServices
+ SetOutPath "$TEMP"
+
Delete /rebootok "$SMPROGRAMS\spice-guest-tools\Uninstall SPICE Guest Tools.lnk"
RMDir "$SMPROGRAMS\spice-guest-tools"