From 177e6d964dcdc0d02e1fbd76ed7d6f7eba38c123 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 28 Apr 2015 13:55:46 +0200 Subject: 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. --- spice-guest-tools.nsis | 2 ++ 1 file changed, 2 insertions(+) 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" -- cgit v1.2.3