1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-05-11 11:19:48 +00:00

Update setup to delete correct files

Installer will now delete the files in the installation folder along
with the folder if it is empty.  Bumped minimum cx-Freeze version to
5.1.1 as files are structured differently in older versions.
This commit is contained in:
Andrew Senetar 2018-02-25 17:10:21 -06:00
parent 6cd752637e
commit 7bd6c08f53
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,3 @@
PyQt5 >=5.4,<6.0
cx-Freeze>=5.0.2,!=5.1.0
cx-Freeze>=5.1.1
pypiwin32>=200

View File

@ -222,6 +222,20 @@ Section "Uninstall"
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
RMDir /r "$SMPROGRAMS\$StartMenuFolder"
; Remove Files & Folders in Install Folder
RMDir /r "$INSTDIR\help"
RMDir /r "$INSTDIR\imageformats"
RMDir /r "$INSTDIR\lib"
RMDir /r "$INSTDIR\locale"
RMDir /r "$INSTDIR\platforms"
Delete "$INSTDIR\dupeguru.exe"
Delete "$INSTDIR\python36.dll"
Delete "$INSTDIR\sqlite3.dll"
Delete "$INSTDIR\Uninstall.exe"
; Remove Install Folder if empty
RMDir "$INSTDIR"
; Remove registry keys and vendor keys (if empty)
DeleteRegKey SHCTX "${BASEREGKEY}"
DeleteRegKey /ifempty SHCTX "${VENDORREGKEY}"