From a4e5973573b50c7f9a86c3f199ef381911247994 Mon Sep 17 00:00:00 2001 From: Nguyen Ngoc Minh <91668012+Minh141120@users.noreply.github.com> Date: Mon, 28 Jul 2025 00:09:13 -0700 Subject: [PATCH] chore: uninstall when upgrading windows installer (#5945) --- src-tauri/tauri.bundle.windows.nsis.template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src-tauri/tauri.bundle.windows.nsis.template b/src-tauri/tauri.bundle.windows.nsis.template index f579190e8..2a216c4a6 100644 --- a/src-tauri/tauri.bundle.windows.nsis.template +++ b/src-tauri/tauri.bundle.windows.nsis.template @@ -286,6 +286,12 @@ Function PageReinstallUpdateSelection ${EndIf} FunctionEnd Function PageLeaveReinstall + ; In passive mode, always uninstall when upgrading + ${If} $PassiveMode = 1 + ${AndIf} $R0 = 1 ; Upgrading + Goto reinst_uninstall + ${EndIf} + ${NSD_GetState} $R2 $R1 ; If migrating from Wix, always uninstall