From 249e6db241c1f8466dcab42c06223628422fc197 Mon Sep 17 00:00:00 2001 From: Oleg Semyonov Date: Mon, 15 Oct 2012 22:51:30 +0300 Subject: [PATCH] Windows Uninstaller: remove GCS config files (including obsolete) on demand --- package/winx86/openpilotgcs.nsi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/package/winx86/openpilotgcs.nsi b/package/winx86/openpilotgcs.nsi index eccd11b0a..17ba934dd 100644 --- a/package/winx86/openpilotgcs.nsi +++ b/package/winx86/openpilotgcs.nsi @@ -325,6 +325,7 @@ Section "un.OpenPilot GCS" UnSecProgram DeleteRegKey HKCU "Software\OpenPilot" ; Remove shortcuts, if any + SetShellVarContext all Delete /rebootok "$DESKTOP\OpenPilot GCS.lnk" Delete /rebootok "$SMPROGRAMS\OpenPilot\*" RMDir /rebootok "$SMPROGRAMS\OpenPilot" @@ -332,17 +333,21 @@ SectionEnd Section "un.Maps cache" UnSecCache ; Remove maps cache + SetShellVarContext current RMDir /r /rebootok "$APPDATA\OpenPilot\mapscache" SectionEnd Section /o "un.Configuration" UnSecConfig ; Remove configuration - Delete /rebootok "$APPDATA\OpenPilot\OpenPilotGCS.db" - Delete /rebootok "$APPDATA\OpenPilot\OpenPilotGCS.xml" + SetShellVarContext current + Delete /rebootok "$APPDATA\OpenPilot\OpenPilotGCS*.db" + Delete /rebootok "$APPDATA\OpenPilot\OpenPilotGCS*.xml" + Delete /rebootok "$APPDATA\OpenPilot\OpenPilotGCS*.ini" SectionEnd Section "-un.Profile" UnSecProfile ; Remove OpenPilot user profile subdirectory if empty + SetShellVarContext current RMDir "$APPDATA\OpenPilot" SectionEnd