toolkit/mozapps/installer/windows/nsis/overrides.nsh

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/mozapps/installer/windows/nsis/overrides.nsh	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,599 @@
     1.4 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.7 +
     1.8 +################################################################################
     1.9 +# Modified versions of macros provided by NSIS
    1.10 +
    1.11 +!ifndef OVERRIDES_INCLUDED
    1.12 +!define OVERRIDES_INCLUDED
    1.13 +
    1.14 +!ifndef ___WINVER__NSH___
    1.15 +!include WinVer.nsh
    1.16 +!endif
    1.17 +
    1.18 +; When including a file check if its verbose macro is defined to prevent
    1.19 +; loading the file a second time.
    1.20 +!ifmacrondef TEXTFUNC_VERBOSE
    1.21 +!include TextFunc.nsh
    1.22 +!endif
    1.23 +
    1.24 +!ifmacrondef FILEFUNC_VERBOSE
    1.25 +!include FileFunc.nsh
    1.26 +!endif
    1.27 +
    1.28 +!macro __MOZ__WinVer_DefineOSTests WinVer
    1.29 +  !insertmacro __WinVer_DefineOSTest AtLeast ${WinVer} ""
    1.30 +  !insertmacro __WinVer_DefineOSTest Is ${WinVer} ""
    1.31 +  !insertmacro __WinVer_DefineOSTest AtMost ${WinVer} ""
    1.32 +!macroend
    1.33 +
    1.34 +!ifndef WINVER_8
    1.35 +  !define WINVER_8         0x06020000 ;6.02.9200
    1.36 +  !insertmacro __MOZ__WinVer_DefineOSTests 8
    1.37 +!endif
    1.38 +
    1.39 +!ifndef WINVER_8.1
    1.40 +  !define WINVER_8.1       0x06030000 ;6.03.9600
    1.41 +  !insertmacro __MOZ__WinVer_DefineOSTests 8.1
    1.42 +!endif
    1.43 +
    1.44 +!ifndef WINVER_2012
    1.45 +  !define WINVER_2012      0x06020001 ;6.02.9200
    1.46 +  !insertmacro __MOZ__WinVer_DefineOSTests 2012
    1.47 +!endif
    1.48 +
    1.49 +!ifndef WINVER_2012R2
    1.50 +  !define WINVER_2012R2    0x06030001 ;6.03.9600
    1.51 +  !insertmacro __MOZ__WinVer_DefineOSTests 2012R2
    1.52 +!endif
    1.53 +
    1.54 +!verbose push
    1.55 +!verbose 3
    1.56 +!ifndef _OVERRIDE_VERBOSE
    1.57 +  !define _OVERRIDE_VERBOSE 3
    1.58 +!endif
    1.59 +!verbose ${_OVERRIDE_VERBOSE}
    1.60 +!define OVERRIDE_VERBOSE `!insertmacro OVERRIDE_VERBOSE`
    1.61 +!define _OVERRIDE_UN
    1.62 +!define _OVERRIDE_S
    1.63 +!verbose pop
    1.64 +
    1.65 +!macro OVERRIDE_VERBOSE _VERBOSE
    1.66 +  !verbose push
    1.67 +  !verbose 3
    1.68 +  !undef _OVERRIDE_VERBOSE
    1.69 +  !define _OVERRIDE_VERBOSE ${_VERBOSE}
    1.70 +  !verbose pop
    1.71 +!macroend
    1.72 +
    1.73 +; Modified version of Locate from the NSIS File Functions Header v3.4 (it has 
    1.74 +; the same version in earlier versions of NSIS even though it has changed) that
    1.75 +; is distributed with NSIS v2.46-Unicode. This version has the calls to
    1.76 +; SetDetailsPrint commented out.
    1.77 +; See <NSIS v2.46-Unicode App Dir>/include/FileFunc.nsh for more information.
    1.78 +!macro LocateNoDetailsCall _PATH _OPTIONS _FUNC
    1.79 +  !verbose push
    1.80 +  !verbose ${_OVERRIDE_VERBOSE}
    1.81 +  Push $0
    1.82 +  Push `${_PATH}`
    1.83 +  Push `${_OPTIONS}`
    1.84 +  GetFunctionAddress $0 `${_FUNC}`
    1.85 +  Push `$0`
    1.86 +  Call LocateNoDetails
    1.87 +  Pop $0
    1.88 +  !verbose pop
    1.89 +!macroend
    1.90 +
    1.91 +!macro LocateNoDetails
    1.92 +  !ifndef ${_OVERRIDE_UN}LocateNoDetails
    1.93 +    !verbose push
    1.94 +    !verbose ${_OVERRIDE_VERBOSE}
    1.95 +    !define ${_OVERRIDE_UN}LocateNoDetails `!insertmacro ${_OVERRIDE_UN}LocateNoDetailsCall`
    1.96 +
    1.97 +    Function ${_OVERRIDE_UN}LocateNoDetails
    1.98 +      Exch $2
    1.99 +      Exch
   1.100 +      Exch $1
   1.101 +      Exch
   1.102 +      Exch 2
   1.103 +      Exch $0
   1.104 +      Exch 2
   1.105 +      Push $3
   1.106 +      Push $4
   1.107 +      Push $5
   1.108 +      Push $6
   1.109 +      Push $7
   1.110 +      Push $8
   1.111 +      Push $9
   1.112 +      Push $R6
   1.113 +      Push $R7
   1.114 +      Push $R8
   1.115 +      Push $R9
   1.116 +      ClearErrors
   1.117 +
   1.118 +      StrCpy $3 ''
   1.119 +      StrCpy $4 ''
   1.120 +      StrCpy $5 ''
   1.121 +      StrCpy $6 ''
   1.122 +      StrCpy $7 ''
   1.123 +      StrCpy $8 0
   1.124 +      StrCpy $R7 ''
   1.125 +
   1.126 +      StrCpy $R9 $0 1 -1
   1.127 +      StrCmp $R9 '\' 0 +3
   1.128 +      StrCpy $0 $0 -1
   1.129 +      goto -3
   1.130 +      IfFileExists '$0\*.*' 0 error
   1.131 +
   1.132 +      option:
   1.133 +      StrCpy $R9 $1 1
   1.134 +      StrCpy $1 $1 '' 1
   1.135 +      StrCmp $R9 ' ' -2
   1.136 +      StrCmp $R9 '' sizeset
   1.137 +      StrCmp $R9 '/' 0 -4
   1.138 +      StrCpy $9 -1
   1.139 +      IntOp $9 $9 + 1
   1.140 +      StrCpy $R9 $1 1 $9
   1.141 +      StrCmp $R9 '' +2
   1.142 +      StrCmp $R9 '/' 0 -3
   1.143 +      StrCpy $R8 $1 $9
   1.144 +      StrCpy $R8 $R8 '' 2
   1.145 +      StrCpy $R9 $R8 '' -1
   1.146 +      StrCmp $R9 ' ' 0 +3
   1.147 +      StrCpy $R8 $R8 -1
   1.148 +      goto -3
   1.149 +      StrCpy $R9 $1 2
   1.150 +      StrCpy $1 $1 '' $9
   1.151 +
   1.152 +      StrCmp $R9 'L=' 0 mask
   1.153 +      StrCpy $3 $R8
   1.154 +      StrCmp $3 '' +6
   1.155 +      StrCmp $3 'FD' +5
   1.156 +      StrCmp $3 'F' +4
   1.157 +      StrCmp $3 'D' +3
   1.158 +      StrCmp $3 'DE' +2
   1.159 +      StrCmp $3 'FDE' 0 error
   1.160 +      goto option
   1.161 +
   1.162 +      mask:
   1.163 +      StrCmp $R9 'M=' 0 size
   1.164 +      StrCpy $4 $R8
   1.165 +      goto option
   1.166 +
   1.167 +      size:
   1.168 +      StrCmp $R9 'S=' 0 gotosubdir
   1.169 +      StrCpy $6 $R8
   1.170 +      goto option
   1.171 +
   1.172 +      gotosubdir:
   1.173 +      StrCmp $R9 'G=' 0 banner
   1.174 +      StrCpy $7 $R8
   1.175 +      StrCmp $7 '' +3
   1.176 +      StrCmp $7 '1' +2
   1.177 +      StrCmp $7 '0' 0 error
   1.178 +      goto option
   1.179 +
   1.180 +      banner:
   1.181 +      StrCmp $R9 'B=' 0 error
   1.182 +      StrCpy $R7 $R8
   1.183 +      StrCmp $R7 '' +3
   1.184 +      StrCmp $R7 '1' +2
   1.185 +      StrCmp $R7 '0' 0 error
   1.186 +      goto option
   1.187 +
   1.188 +      sizeset:
   1.189 +      StrCmp $6 '' default
   1.190 +      StrCpy $9 0
   1.191 +      StrCpy $R9 $6 1 $9
   1.192 +      StrCmp $R9 '' +4
   1.193 +      StrCmp $R9 ':' +3
   1.194 +      IntOp $9 $9 + 1
   1.195 +      goto -4
   1.196 +      StrCpy $5 $6 $9
   1.197 +      IntOp $9 $9 + 1
   1.198 +      StrCpy $1 $6 1 -1
   1.199 +      StrCpy $6 $6 -1 $9
   1.200 +      StrCmp $5 '' +2
   1.201 +      IntOp $5 $5 + 0
   1.202 +      StrCmp $6 '' +2
   1.203 +      IntOp $6 $6 + 0
   1.204 +
   1.205 +      StrCmp $1 'B' 0 +3
   1.206 +      StrCpy $1 1
   1.207 +      goto default
   1.208 +      StrCmp $1 'K' 0 +3
   1.209 +      StrCpy $1 1024
   1.210 +      goto default
   1.211 +      StrCmp $1 'M' 0 +3
   1.212 +      StrCpy $1 1048576
   1.213 +      goto default
   1.214 +      StrCmp $1 'G' 0 error
   1.215 +      StrCpy $1 1073741824
   1.216 +
   1.217 +      default:
   1.218 +      StrCmp $3 '' 0 +2
   1.219 +      StrCpy $3 'FD'
   1.220 +      StrCmp $4 '' 0 +2
   1.221 +      StrCpy $4 '*.*'
   1.222 +      StrCmp $7 '' 0 +2
   1.223 +      StrCpy $7 '1'
   1.224 +      StrCmp $R7 '' 0 +2
   1.225 +      StrCpy $R7 '0'
   1.226 +      StrCpy $7 'G$7B$R7'
   1.227 +
   1.228 +      StrCpy $8 1
   1.229 +      Push $0
   1.230 +;      SetDetailsPrint textonly
   1.231 +
   1.232 +      nextdir:
   1.233 +      IntOp $8 $8 - 1
   1.234 +      Pop $R8
   1.235 +
   1.236 +      StrCpy $9 $7 2 2
   1.237 +      StrCmp $9 'B0' +3
   1.238 +      GetLabelAddress $9 findfirst
   1.239 +      goto call
   1.240 +;      DetailPrint 'Search in: $R8'
   1.241 +
   1.242 +      findfirst:
   1.243 +      FindFirst $0 $R7 '$R8\$4'
   1.244 +      IfErrors subdir
   1.245 +      StrCmp $R7 '.' 0 dir
   1.246 +      FindNext $0 $R7
   1.247 +      StrCmp $R7 '..' 0 dir
   1.248 +      FindNext $0 $R7
   1.249 +      IfErrors 0 dir
   1.250 +      FindClose $0
   1.251 +      goto subdir
   1.252 +
   1.253 +      dir:
   1.254 +      IfFileExists '$R8\$R7\*.*' 0 file
   1.255 +      StrCpy $R6 ''
   1.256 +      StrCmp $3 'DE' +4
   1.257 +      StrCmp $3 'FDE' +3
   1.258 +      StrCmp $3 'FD' precall
   1.259 +      StrCmp $3 'F' findnext precall
   1.260 +      FindFirst $9 $R9 '$R8\$R7\*.*'
   1.261 +      StrCmp $R9 '.' 0 +4
   1.262 +      FindNext $9 $R9
   1.263 +      StrCmp $R9 '..' 0 +2
   1.264 +      FindNext $9 $R9
   1.265 +      FindClose $9
   1.266 +      IfErrors precall findnext
   1.267 +
   1.268 +      file:
   1.269 +      StrCmp $3 'FDE' +3
   1.270 +      StrCmp $3 'FD' +2
   1.271 +      StrCmp $3 'F' 0 findnext
   1.272 +      StrCpy $R6 0
   1.273 +      StrCmp $5$6 '' precall
   1.274 +      FileOpen $9 '$R8\$R7' r
   1.275 +      IfErrors +3
   1.276 +      FileSeek $9 0 END $R6
   1.277 +      FileClose $9
   1.278 +      System::Int64Op $R6 / $1
   1.279 +      Pop $R6
   1.280 +      StrCmp $5 '' +2
   1.281 +      IntCmp $R6 $5 0 findnext
   1.282 +      StrCmp $6 '' +2
   1.283 +      IntCmp $R6 $6 0 0 findnext
   1.284 +
   1.285 +      precall:
   1.286 +      StrCpy $9 0
   1.287 +      StrCpy $R9 '$R8\$R7'
   1.288 +
   1.289 +      call:
   1.290 +      Push $0
   1.291 +      Push $1
   1.292 +      Push $2
   1.293 +      Push $3
   1.294 +      Push $4
   1.295 +      Push $5
   1.296 +      Push $6
   1.297 +      Push $7
   1.298 +      Push $8
   1.299 +      Push $9
   1.300 +      Push $R7
   1.301 +      Push $R8
   1.302 +      StrCmp $9 0 +4
   1.303 +      StrCpy $R6 ''
   1.304 +      StrCpy $R7 ''
   1.305 +      StrCpy $R9 ''
   1.306 +      Call $2
   1.307 +      Pop $R9
   1.308 +      Pop $R8
   1.309 +      Pop $R7
   1.310 +      Pop $9
   1.311 +      Pop $8
   1.312 +      Pop $7
   1.313 +      Pop $6
   1.314 +      Pop $5
   1.315 +      Pop $4
   1.316 +      Pop $3
   1.317 +      Pop $2
   1.318 +      Pop $1
   1.319 +      Pop $0
   1.320 +
   1.321 +      IfErrors 0 +3
   1.322 +      FindClose $0
   1.323 +      goto error
   1.324 +      StrCmp $R9 'StopLocateNoDetails' 0 +3
   1.325 +      FindClose $0
   1.326 +      goto clearstack
   1.327 +      goto $9
   1.328 +
   1.329 +      findnext:
   1.330 +      FindNext $0 $R7
   1.331 +      IfErrors 0 dir
   1.332 +      FindClose $0
   1.333 +
   1.334 +      subdir:
   1.335 +      StrCpy $9 $7 2
   1.336 +      StrCmp $9 'G0' end
   1.337 +      FindFirst $0 $R7 '$R8\*.*'
   1.338 +      StrCmp $R7 '.' 0 pushdir
   1.339 +      FindNext $0 $R7
   1.340 +      StrCmp $R7 '..' 0 pushdir
   1.341 +      FindNext $0 $R7
   1.342 +      IfErrors 0 pushdir
   1.343 +      FindClose $0
   1.344 +      StrCmp $8 0 end nextdir
   1.345 +
   1.346 +      pushdir:
   1.347 +      IfFileExists '$R8\$R7\*.*' 0 +3
   1.348 +      Push '$R8\$R7'
   1.349 +      IntOp $8 $8 + 1
   1.350 +      FindNext $0 $R7
   1.351 +      IfErrors 0 pushdir
   1.352 +      FindClose $0
   1.353 +      StrCmp $8 0 end nextdir
   1.354 +
   1.355 +      error:
   1.356 +      SetErrors
   1.357 +
   1.358 +      clearstack:
   1.359 +      StrCmp $8 0 end
   1.360 +      IntOp $8 $8 - 1
   1.361 +      Pop $R8
   1.362 +      goto clearstack
   1.363 +
   1.364 +      end:
   1.365 +;      SetDetailsPrint both
   1.366 +      Pop $R9
   1.367 +      Pop $R8
   1.368 +      Pop $R7
   1.369 +      Pop $R6
   1.370 +      Pop $9
   1.371 +      Pop $8
   1.372 +      Pop $7
   1.373 +      Pop $6
   1.374 +      Pop $5
   1.375 +      Pop $4
   1.376 +      Pop $3
   1.377 +      Pop $2
   1.378 +      Pop $1
   1.379 +      Pop $0
   1.380 +    FunctionEnd
   1.381 +
   1.382 +    !verbose pop
   1.383 +  !endif
   1.384 +!macroend
   1.385 +
   1.386 +!macro un.LocateNoDetailsCall _PATH _OPTIONS _FUNC
   1.387 +  !verbose push
   1.388 +  !verbose ${_OVERRIDE_VERBOSE}
   1.389 +  Push $0
   1.390 +  Push `${_PATH}`
   1.391 +  Push `${_OPTIONS}`
   1.392 +  GetFunctionAddress $0 `${_FUNC}`
   1.393 +  Push `$0`
   1.394 +  Call un.LocateNoDetails
   1.395 +  Pop $0
   1.396 +  !verbose pop
   1.397 +!macroend
   1.398 +
   1.399 +!macro un.LocateNoDetails
   1.400 +  !ifndef un.LocateNoDetails
   1.401 +    !verbose push
   1.402 +    !verbose ${_OVERRIDE_VERBOSE}
   1.403 +    !undef _OVERRIDE_UN
   1.404 +    !define _OVERRIDE_UN `un.`
   1.405 +
   1.406 +    !insertmacro LocateNoDetails
   1.407 +
   1.408 +    !undef _OVERRIDE_UN
   1.409 +    !define _OVERRIDE_UN
   1.410 +    !verbose pop
   1.411 +  !endif
   1.412 +!macroend
   1.413 +
   1.414 +; Modified version of TextCompare from the NSIS Text Functions Header v2.4 (it
   1.415 +; has the same version in earlier versions of NSIS even though it has changed)
   1.416 +; that is distributed with NSIS v2.46-Unicode. This version has the calls to
   1.417 +; SetDetailsPrint commented out.
   1.418 +; See <NSIS v2.46-Unicode App Dir>/include/TextFunc.nsh for more information.
   1.419 +!macro TextCompareNoDetailsCall _FILE1 _FILE2 _OPTION _FUNC
   1.420 +  !verbose push
   1.421 +  !verbose ${_OVERRIDE_VERBOSE}
   1.422 +  Push $0
   1.423 +  Push `${_FILE1}`
   1.424 +  Push `${_FILE2}`
   1.425 +  Push `${_OPTION}`
   1.426 +  GetFunctionAddress $0 `${_FUNC}`
   1.427 +  Push `$0`
   1.428 +  ${CallArtificialFunction} TextCompareNoDetails_
   1.429 +  Pop $0
   1.430 +  !verbose pop
   1.431 +!macroend
   1.432 +
   1.433 +!macro TextCompareNoDetailsSCall _FILE1 _FILE2 _OPTION _FUNC
   1.434 +  !verbose push
   1.435 +  !verbose ${_OVERRIDE_VERBOSE}
   1.436 +  Push $0
   1.437 +  Push `${_FILE1}`
   1.438 +  Push `${_FILE2}`
   1.439 +  Push `${_OPTION}`
   1.440 +  GetFunctionAddress $0 `${_FUNC}`
   1.441 +  Push `$0`
   1.442 +  ${CallArtificialFunction} TextCompareNoDetailsS_
   1.443 +  Pop $0
   1.444 +  !verbose pop
   1.445 +!macroend
   1.446 +
   1.447 +
   1.448 +!macro TextCompareNoDetailsBody _OVERRIDE_S
   1.449 +  Exch $3
   1.450 +  Exch
   1.451 +  Exch $2
   1.452 +  Exch
   1.453 +  Exch 2
   1.454 +  Exch $1
   1.455 +  Exch 2
   1.456 +  Exch 3
   1.457 +  Exch $0
   1.458 +  Exch 3
   1.459 +  Push $4
   1.460 +  Push $5
   1.461 +  Push $6
   1.462 +  Push $7
   1.463 +  Push $8
   1.464 +  Push $9
   1.465 +  ClearErrors
   1.466 +
   1.467 +  IfFileExists $0 0 TextFunc_TextCompareNoDetails${_OVERRIDE_S}_error
   1.468 +  IfFileExists $1 0 TextFunc_TextCompareNoDetails${_OVERRIDE_S}_error
   1.469 +  StrCmp $2 'FastDiff' +5
   1.470 +  StrCmp $2 'FastEqual' +4
   1.471 +  StrCmp $2 'SlowDiff' +3
   1.472 +  StrCmp $2 'SlowEqual' +2
   1.473 +  goto TextFunc_TextCompareNoDetails${_OVERRIDE_S}_error
   1.474 +
   1.475 +  FileOpen $4 $0 r
   1.476 +  IfErrors TextFunc_TextCompareNoDetails${_OVERRIDE_S}_error
   1.477 +  FileOpen $5 $1 r
   1.478 +  IfErrors TextFunc_TextCompareNoDetails${_OVERRIDE_S}_error
   1.479 +;  SetDetailsPrint textonly
   1.480 +
   1.481 +  StrCpy $6 0
   1.482 +  StrCpy $8 0
   1.483 +
   1.484 +  TextFunc_TextCompareNoDetails${_OVERRIDE_S}_nextline:
   1.485 +  StrCmp${_OVERRIDE_S} $4 '' TextFunc_TextCompareNoDetails${_OVERRIDE_S}_fast
   1.486 +  IntOp $8 $8 + 1
   1.487 +  FileRead $4 $9
   1.488 +  IfErrors 0 +4
   1.489 +  FileClose $4
   1.490 +  StrCpy $4 ''
   1.491 +  StrCmp${_OVERRIDE_S} $5 '' TextFunc_TextCompareNoDetails${_OVERRIDE_S}_end
   1.492 +  StrCmp $2 'FastDiff' TextFunc_TextCompareNoDetails${_OVERRIDE_S}_fast
   1.493 +  StrCmp $2 'FastEqual' TextFunc_TextCompareNoDetails${_OVERRIDE_S}_fast TextFunc_TextCompareNoDetails${_OVERRIDE_S}_slow
   1.494 +
   1.495 +  TextFunc_TextCompareNoDetails${_OVERRIDE_S}_fast:
   1.496 +  StrCmp${_OVERRIDE_S} $5 '' TextFunc_TextCompareNoDetails${_OVERRIDE_S}_call
   1.497 +  IntOp $6 $6 + 1
   1.498 +  FileRead $5 $7
   1.499 +  IfErrors 0 +5
   1.500 +  FileClose $5
   1.501 +  StrCpy $5 ''
   1.502 +  StrCmp${_OVERRIDE_S} $4 '' TextFunc_TextCompareNoDetails${_OVERRIDE_S}_end
   1.503 +  StrCmp $2 'FastDiff' TextFunc_TextCompareNoDetails${_OVERRIDE_S}_call TextFunc_TextCompareNoDetails${_OVERRIDE_S}_close
   1.504 +  StrCmp $2 'FastDiff' 0 +2
   1.505 +  StrCmp${_OVERRIDE_S} $7 $9 TextFunc_TextCompareNoDetails${_OVERRIDE_S}_nextline TextFunc_TextCompareNoDetails${_OVERRIDE_S}_call
   1.506 +  StrCmp${_OVERRIDE_S} $7 $9 TextFunc_TextCompareNoDetails${_OVERRIDE_S}_call TextFunc_TextCompareNoDetails${_OVERRIDE_S}_nextline
   1.507 +
   1.508 +  TextFunc_TextCompareNoDetails${_OVERRIDE_S}_slow:
   1.509 +  StrCmp${_OVERRIDE_S} $4 '' TextFunc_TextCompareNoDetails${_OVERRIDE_S}_close
   1.510 +  StrCpy $6 ''
   1.511 +;  DetailPrint '$8. $9'
   1.512 +  FileSeek $5 0
   1.513 +
   1.514 +  TextFunc_TextCompareNoDetails${_OVERRIDE_S}_slownext:
   1.515 +  FileRead $5 $7
   1.516 +  IfErrors 0 +2
   1.517 +  StrCmp $2 'SlowDiff' TextFunc_TextCompareNoDetails${_OVERRIDE_S}_call TextFunc_TextCompareNoDetails${_OVERRIDE_S}_nextline
   1.518 +  StrCmp $2 'SlowDiff' 0 +2
   1.519 +  StrCmp${_OVERRIDE_S} $7 $9 TextFunc_TextCompareNoDetails${_OVERRIDE_S}_nextline TextFunc_TextCompareNoDetails${_OVERRIDE_S}_slownext
   1.520 +  IntOp $6 $6 + 1
   1.521 +  StrCmp${_OVERRIDE_S} $7 $9 0 TextFunc_TextCompareNoDetails${_OVERRIDE_S}_slownext
   1.522 +
   1.523 +  TextFunc_TextCompareNoDetails${_OVERRIDE_S}_call:
   1.524 +  Push $2
   1.525 +  Push $3
   1.526 +  Push $4
   1.527 +  Push $5
   1.528 +  Push $6
   1.529 +  Push $7
   1.530 +  Push $8
   1.531 +  Push $9
   1.532 +  Call $3
   1.533 +  Pop $0
   1.534 +  Pop $9
   1.535 +  Pop $8
   1.536 +  Pop $7
   1.537 +  Pop $6
   1.538 +  Pop $5
   1.539 +  Pop $4
   1.540 +  Pop $3
   1.541 +  Pop $2
   1.542 +  StrCmp $0 'StopTextCompareNoDetails' 0 TextFunc_TextCompareNoDetails${_OVERRIDE_S}_nextline
   1.543 +
   1.544 +  TextFunc_TextCompareNoDetails${_OVERRIDE_S}_close:
   1.545 +  FileClose $4
   1.546 +  FileClose $5
   1.547 +  goto TextFunc_TextCompareNoDetails${_OVERRIDE_S}_end
   1.548 +
   1.549 +  TextFunc_TextCompareNoDetails${_OVERRIDE_S}_error:
   1.550 +  SetErrors
   1.551 +
   1.552 +  TextFunc_TextCompareNoDetails${_OVERRIDE_S}_end:
   1.553 +;  SetDetailsPrint both
   1.554 +  Pop $9
   1.555 +  Pop $8
   1.556 +  Pop $7
   1.557 +  Pop $6
   1.558 +  Pop $5
   1.559 +  Pop $4
   1.560 +  Pop $3
   1.561 +  Pop $2
   1.562 +  Pop $1
   1.563 +  Pop $0
   1.564 +!macroend
   1.565 +
   1.566 +!define TextCompareNoDetails `!insertmacro TextCompareNoDetailsCall`
   1.567 +!define un.TextCompareNoDetails `!insertmacro TextCompareNoDetailsCall`
   1.568 +
   1.569 +!macro TextCompareNoDetails
   1.570 +!macroend
   1.571 +
   1.572 +!macro un.TextCompareNoDetails
   1.573 +!macroend
   1.574 +
   1.575 +!macro TextCompareNoDetails_
   1.576 +  !verbose push
   1.577 +  !verbose ${_OVERRIDE_VERBOSE}
   1.578 +
   1.579 +  !insertmacro TextCompareNoDetailsBody ''
   1.580 +
   1.581 +  !verbose pop
   1.582 +!macroend
   1.583 +
   1.584 +!define TextCompareNoDetailsS `!insertmacro TextCompareNoDetailsSCall`
   1.585 +!define un.TextCompareNoDetailsS `!insertmacro TextCompareNoDetailsSCall`
   1.586 +
   1.587 +!macro TextCompareNoDetailsS
   1.588 +!macroend
   1.589 +
   1.590 +!macro un.TextCompareNoDetailsS
   1.591 +!macroend
   1.592 +
   1.593 +!macro TextCompareNoDetailsS_
   1.594 +  !verbose push
   1.595 +  !verbose ${_OVERRIDE_VERBOSE}
   1.596 +
   1.597 +  !insertmacro TextCompareNoDetailsBody 'S'
   1.598 +
   1.599 +  !verbose pop
   1.600 +!macroend
   1.601 +
   1.602 +!endif

mercurial