diff --git a/build/installer.nsh b/build/installer.nsh index 8ff35b5e4f..e4b8ea5189 100644 --- a/build/installer.nsh +++ b/build/installer.nsh @@ -1,4 +1,11 @@ !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 ${ifNot} ${FileExists} "$INSTDIR" DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\{${UNINSTALL_APP_KEY}}"