Delete old extensions on Windows update

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
Juho Heikka committed 2022-09-30 16:11:30 +03:00
1 parent e8f691ab0e
commit 614cd7d676
1 file changed
+7
+7
View File
@@ -1,4 +1,11 @@
!macro customInit !macro customInit
; Make sure all old extensions are removed
RMDir /r "$INSTDIR\resources\extensions"
; Workaround for old node_modules having already duplicate extensions
RMDir /r "$APPDATA\${APP_FILENAME}\node_modules\lens-license"
RMDir /r "$APPDATA\${APP_FILENAME}\node_modules\lens-survey"
RMDir /r "$APPDATA\${APP_FILENAME}\node_modules\lens-telemetry"
; 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}}"