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:
parent
6cd752637e
commit
7bd6c08f53
@ -1,3 +1,3 @@
|
||||
PyQt5 >=5.4,<6.0
|
||||
cx-Freeze>=5.0.2,!=5.1.0
|
||||
cx-Freeze>=5.1.1
|
||||
pypiwin32>=200
|
14
setup.nsi
14
setup.nsi
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user