From 60db758637aadae75c88121d3059545a466d3d17 Mon Sep 17 00:00:00 2001 From: Oleg Semyonov Date: Sun, 8 May 2011 16:33:55 +0300 Subject: [PATCH] OP-179: Windows uninstaller: remove OpenPilot user profile subdirectory if empty --- ground/openpilotgcs/packaging/winx86/openpilotgcs.nsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ground/openpilotgcs/packaging/winx86/openpilotgcs.nsi b/ground/openpilotgcs/packaging/winx86/openpilotgcs.nsi index e7c5d887f..b8e8e4540 100644 --- a/ground/openpilotgcs/packaging/winx86/openpilotgcs.nsi +++ b/ground/openpilotgcs/packaging/winx86/openpilotgcs.nsi @@ -257,6 +257,11 @@ Section /o "un.Configuration" UnSecConfig Delete /rebootok "$APPDATA\OpenPilot\OpenPilotGCS.ini" SectionEnd +Section "-un.Profile" UnSecProfile + ; Remove OpenPilot user profile subdirectory if empty + RMDir "$APPDATA\OpenPilot" +SectionEnd + ;-------------------------------- ; Uninstall section descriptions