feat: add logic for uninstall old jan version

This commit is contained in:
Minh141120 2025-10-03 11:50:11 +07:00
parent 4c4e795a3d
commit d7a1a9a529

View File

@ -506,6 +506,10 @@ Function .onInit
Delete "$INSTDIR\*.*"
${EndIf}
; Remove old Jan from %LOCALAPPDATA%\${PRODUCTNAME} if present
${If} ${FileExists} "$LOCALAPPDATA\Jan\uninstall.exe"
ExecWait '"$LOCALAPPDATA\Jan\uninstall.exe" /S' $0
!if "${INSTALLMODE}" == "both"
!insertmacro MULTIUSER_INIT
!endif