From 34750f368f690f7d31fdc5de0b658d70aa78df6a Mon Sep 17 00:00:00 2001 From: Juho Heikka Date: Mon, 3 Oct 2022 16:51:39 +0300 Subject: [PATCH] Delete old extensions when app is updated on Windows (#6301) --- build/installer.nsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/installer.nsh b/build/installer.nsh index 8ff35b5e4f..d0fe18809a 100644 --- a/build/installer.nsh +++ b/build/installer.nsh @@ -1,4 +1,7 @@ !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 ${ifNot} ${FileExists} "$INSTDIR" DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\{${UNINSTALL_APP_KEY}}"