Commit 2e62b470 authored by Nate Weibley's avatar Nate Weibley

Remove current user's settings and cache during uninstall too

parent 9ff40d6a
...@@ -26,6 +26,8 @@ Section "Uninstall" ...@@ -26,6 +26,8 @@ Section "Uninstall"
Delete $INSTDIR\QGroundControl_uninstall.exe Delete $INSTDIR\QGroundControl_uninstall.exe
RMDir /r /REBOOTOK $INSTDIR RMDir /r /REBOOTOK $INSTDIR
RMDir /r /REBOOTOK "$SMPROGRAMS\QGroundControl\" RMDir /r /REBOOTOK "$SMPROGRAMS\QGroundControl\"
SetShellVarContext current
RMDir /r /REBOOTOK "$APPDATA\QGROUNDCONTROL.ORG\"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\QGroundControl" DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\QGroundControl"
SectionEnd SectionEnd
...@@ -43,4 +45,4 @@ Function .onInit ...@@ -43,4 +45,4 @@ Function .onInit
"QGroundControl is already installed. $\n$\nYou must uninstall the previous version before installing a new one." "QGroundControl is already installed. $\n$\nYou must uninstall the previous version before installing a new one."
Abort Abort
done: done:
FunctionEnd FunctionEnd
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment