Browse Source

Merge pull request #2717 from NaterGator/uninstallfix

Remove current user's settings and cache during uninstall too
QGC4.4
Lorenz Meier 9 years ago
parent
commit
be07b8a11a
  1. 4
      deploy/qgroundcontrol_installer.nsi

4
deploy/qgroundcontrol_installer.nsi

@ -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
"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

Loading…
Cancel
Save