chore: uninstall when upgrading windows installer (#5945)

This commit is contained in:
Nguyen Ngoc Minh 2025-07-28 00:09:13 -07:00 committed by GitHub
parent fdaa3b1992
commit a4e5973573
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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