There is a bug: "ofc glb" is calculated
twice, if Office 2016 is selected.
It is calculated once at this point:
DownloadUpdates.cmd 10.2.1+ (r710), line 1026- Code: Select all
for %%i in (o2k7 o2k10 o2k13 o2k16) do (
if /i "%1"=="%%i" (
call :DownloadCore ofc %2 %TARGET_ARCH% %SKIP_PARAM%
if errorlevel 1 goto Error
)
)
The difference between o2k7, o2k10, o2k13 and o2k16 is:
- In the UpdateGenerator.exe, o2k7, o2k10, o2k13 are called with a real language: enu, deu, fra or some other language. Only these real languages should be processed in this loop.
- o2k16 is always called with "glb".
So, for example, selecting o2k7 fra and o2k16 glb in UpdateGenerator.exe would be translated to:
- Code: Select all
call :DownloadCore ofc fra for o2k7
call :DownloadCore ofc glb for o2k16
"ofc glb" is processed a second time for all Office versions at this point:
DownloadUpdates.cmd 10.2.1+ (r710), line 1046- Code: Select all
for %%i in (w60 w60-x64 w61 w61-x64 w62 w62-x64 w63 w63-x64 w100 w100-x64 ofc) do (
if /i "%1"=="%%i" (
call :DownloadCore %1 %2 %TARGET_ARCH% %SKIP_PARAM%
if errorlevel 1 goto Error
)
)
Deleting o2k16 from the first loop will probably fix it:
- Code: Select all
for %%i in (o2k7 o2k10 o2k13) do (
if /i "%1"=="%%i" (
call :DownloadCore ofc %2 %TARGET_ARCH% %SKIP_PARAM%
if errorlevel 1 goto Error
)
)
Then "ofc glb" should be processed only once, even if several Office versions are selected.
"ofc fra" will still get processed three times, but this will be much faster.
An option to prevent any repeated processing would be the introduction of "same day" rules for the main updates, similar to the optional downloads dotnet, cpp, and wle.