feat: add logic for uninstall old jan version
This commit is contained in:
parent
4c4e795a3d
commit
d7a1a9a529
@ -506,6 +506,10 @@ Function .onInit
|
|||||||
Delete "$INSTDIR\*.*"
|
Delete "$INSTDIR\*.*"
|
||||||
${EndIf}
|
${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"
|
!if "${INSTALLMODE}" == "both"
|
||||||
!insertmacro MULTIUSER_INIT
|
!insertmacro MULTIUSER_INIT
|
||||||
!endif
|
!endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user