From 2e62b470294f99af76b5d4f2e92beb1c98577263 Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Thu, 28 Jan 2016 17:28:05 -0500 Subject: [PATCH] Remove current user's settings and cache during uninstall too --- deploy/qgroundcontrol_installer.nsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/qgroundcontrol_installer.nsi b/deploy/qgroundcontrol_installer.nsi index 7bc1fee..4ead228 100644 --- a/deploy/qgroundcontrol_installer.nsi +++ b/deploy/qgroundcontrol_installer.nsi @@ -26,6 +26,8 @@ Section "Uninstall" Delete $INSTDIR\QGroundControl_uninstall.exe RMDir /r /REBOOTOK $INSTDIR RMDir /r /REBOOTOK "$SMPROGRAMS\QGroundControl\" + SetShellVarContext current + RMDir /r /REBOOTOK "$APPDATA\QGROUNDCONTROL.ORG\" DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\QGroundControl" SectionEnd @@ -43,4 +45,4 @@ Function .onInit "QGroundControl is already installed. $\n$\nYou must uninstall the previous version before installing a new one." Abort done: -FunctionEnd \ No newline at end of file +FunctionEnd