1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Delete old extensions when app is updated on Windows (#6301)

This commit is contained in:
Juho Heikka 2022-10-03 16:51:39 +03:00 committed by GitHub
parent 52b4c45e46
commit 34750f368f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,7 @@
!macro customInit !macro customInit
; Make sure all old extensions are removed
RMDir /r "$INSTDIR\resources\extensions"
; Workaround for installer handing when the app directory is removed manually ; Workaround for installer handing when the app directory is removed manually
${ifNot} ${FileExists} "$INSTDIR" ${ifNot} ${FileExists} "$INSTDIR"
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\{${UNINSTALL_APP_KEY}}" DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\{${UNINSTALL_APP_KEY}}"