removed outdated logic from win installer - comparing build numbers to install over an old one in some cases.

This commit is contained in:
Vladimir.Orlov
2016-03-10 17:13:54 +03:00
parent 1b42db823f
commit 03e786c049
-26
View File
@@ -247,32 +247,6 @@ Function VersionSplit
FunctionEnd
Function OnDirectoryPageLeave
StrCpy $IS_UPGRADE_60 "0"
${InstDirState} "$INSTDIR" $R0
IntCmp $R0 1 check_build skip_abort skip_abort
check_build:
FileOpen $R1 "$INSTDIR\build.txt" "r"
IfErrors do_abort
FileRead $R1 $R2
FileClose $R1
IfErrors do_abort
${VersionSplit} ${MIN_UPGRADE_BUILD} $R3 $R4 $R5
${VersionSplit} ${MAX_UPGRADE_BUILD} $R6 $R7 $R8
${VersionSplit} $R2 $R9 $R2 $R0
StrCmp $R9 $R3 0 do_abort
IntCmp $R2 $R4 0 do_abort
IntCmp $R0 $R5 do_accept do_abort
StrCmp $R9 $R6 0 do_abort
IntCmp $R2 $R7 0 0 do_abort
IntCmp $R0 $R8 do_abort do_accept do_abort
do_accept:
StrCpy $IS_UPGRADE_60 "1"
FileClose $R1
Goto skip_abort
do_abort:
;check
; - if there are no files into $INSTDIR (recursively) just excepted property files
; - if property files have the same installation time.