mirror of
https://github.com/safing/portmaster
synced 2025-09-04 19:49:15 +00:00
[desktop] Windows uninstaller fixes
This commit is contained in:
parent
af4035feda
commit
4a8c64067d
1 changed files with 13 additions and 16 deletions
|
@ -116,7 +116,7 @@ var dataDir
|
||||||
RMDir /r "$oldInstallationDir\intel"
|
RMDir /r "$oldInstallationDir\intel"
|
||||||
|
|
||||||
; Delete the link to the ProgramData folder
|
; Delete the link to the ProgramData folder
|
||||||
RMDir /r "$PROGRAMFILES\Safing"
|
RMDir /r "$PROGRAMFILES64\Safing"
|
||||||
|
|
||||||
; Delete v1 user shortcut if its there.
|
; Delete v1 user shortcut if its there.
|
||||||
SetShellVarContext current
|
SetShellVarContext current
|
||||||
|
@ -158,7 +158,7 @@ var dataDir
|
||||||
; Post-uninstall hook:
|
; Post-uninstall hook:
|
||||||
; - Delete files
|
; - Delete files
|
||||||
!macro NSIS_HOOK_POSTUNINSTALL
|
!macro NSIS_HOOK_POSTUNINSTALL
|
||||||
; Delete binarys
|
; Delete binaries
|
||||||
Delete /REBOOTOK "$INSTDIR\index.json"
|
Delete /REBOOTOK "$INSTDIR\index.json"
|
||||||
Delete /REBOOTOK "$INSTDIR\portmaster-core.exe"
|
Delete /REBOOTOK "$INSTDIR\portmaster-core.exe"
|
||||||
Delete /REBOOTOK "$INSTDIR\portmaster-kext.sys"
|
Delete /REBOOTOK "$INSTDIR\portmaster-kext.sys"
|
||||||
|
@ -168,25 +168,22 @@ var dataDir
|
||||||
Delete /REBOOTOK "$INSTDIR\assets.zip"
|
Delete /REBOOTOK "$INSTDIR\assets.zip"
|
||||||
RMDir /r /REBOOTOK "$INSTDIR"
|
RMDir /r /REBOOTOK "$INSTDIR"
|
||||||
|
|
||||||
; Delete Tauri leftovers
|
; delete data files
|
||||||
RMDir /r /REBOOTOK "$APPDATA\Portmaster"
|
Delete /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\databases\history.db"
|
||||||
|
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\databases\cache"
|
||||||
; Delete intel data
|
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\databases\icons"
|
||||||
Delete /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel\index.json"
|
|
||||||
Delete /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel\base.dsdl"
|
|
||||||
Delete /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel\geoipv4.mmdb"
|
|
||||||
Delete /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel\geoipv6.mmdb"
|
|
||||||
Delete /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel\index.dsd"
|
|
||||||
Delete /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel\intermediate.dsdl"
|
|
||||||
Delete /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel\urgent.dsdl"
|
|
||||||
Delete /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel\main-intel.yaml"
|
|
||||||
Delete /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel\notifications.yaml"
|
|
||||||
Delete /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel\news.yaml"
|
|
||||||
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel"
|
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\intel"
|
||||||
|
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\download_intel"
|
||||||
|
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\download_binaries"
|
||||||
|
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\exec"
|
||||||
|
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Portmaster\logs"
|
||||||
|
|
||||||
${If} $DeleteAppDataCheckboxState = 1
|
${If} $DeleteAppDataCheckboxState = 1
|
||||||
|
DetailPrint "Deleting the application data..."
|
||||||
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Portmaster"
|
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Portmaster"
|
||||||
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Safing"
|
RMDir /r /REBOOTOK "$COMMONPROGRAMDATA\Safing"
|
||||||
|
${Else}
|
||||||
|
DetailPrint "Application data kept as requested by the user."
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
!macroend
|
!macroend
|
Loading…
Add table
Reference in a new issue