Windows 10 ESD Repository

Discussion in 'Windows 10' started by Tito, Oct 1, 2014.

  1. DiamondMon

    DiamondMon MDL Addicted

    Jul 31, 2009
    664
    1,615
    30
    #2541 DiamondMon, Oct 22, 2019
    Last edited: Oct 22, 2019
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,656
    340
    @Enthousiast
    ISOnameESD is ment for future refreshed ESDs, to provide accurate name without needing to update the script :)

    try to rename ESD to something else :D
    Code:
    18363.418.191022-0000.19h2_fake_clientbusiness_vol_x64fre_en-us.esd
     
  3. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,305
    450
    :D:D
    Code:
    
    ============================================================
    Running ESD -> ISO v53
    ============================================================
    
    
    ============================================================
    Checking ESD Info . . .
    ============================================================
    
    ============================================================
    Creating Setup Media Layout . . .
    ============================================================
    
    
    ============================================================
    Creating boot.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 846 MiB of 846 MiB (100%) done
    
    Using LZX compression with 8 threads
    Archiving file data: 126 MiB of 126 MiB (100%) done
    
    ============================================================
    Creating install.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 8128 MiB of 8128 MiB (100%) done
    
    Using LZX compression with 8 threads
    Archiving file data: 267 MiB of 267 MiB (100%) done
    
    Using LZX compression with 8 threads
    Archiving file data: 124 MiB of 124 MiB (100%) done
    
    Using LZX compression with 8 threads
    Archiving file data: 109 MiB of 109 MiB (100%) done
    
    Using LZX compression with 8 threads
    Archiving file data: 140 MiB of 140 MiB (100%) done
    
    Using LZX compression with 8 threads
    Archiving file data: 140 MiB of 140 MiB (100%) done
    
    ============================================================
    Creating ISO . . .
    ============================================================
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 36 directories)
    Scanning source tree complete (944 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 4960878592 bytes (before optimization)
    
    Writing 944 files in 86 directories to 18363.418.191007-0143.19H2_STUPIDME_VOL_X64FRE_EN-US_577FC12B9949901654A5DE7139AE69C70C7C49F6_CLIENTBUSINESS_VOL_X64FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 5 files, 190464 bytes (0% of image)
    
    After optimization, image file is 4962781184 bytes
    Space saved because of embedding, sparseness or optimization = 190464
    
    Done.
    
    Press 0 to exit.
    
    
    Code:
    18363.418.191007-0143.19H2_STUPIDME_VOL_X64FRE_EN-US_577FC12B9949901654A5DE7139AE69C70C7C49F6_CLIENTBUSINESS_VOL_X64FRE_EN-US.ISO
     
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,656
    340
    I prefer not to spoil it :D

    although, it's not that big secret (hint: fwlink)
     
  5. Dakota_X

    Dakota_X MDL Novice

    Sep 21, 2015
    17
    14
    0
  6. boblan

    boblan MDL Novice

    Jun 1, 2015
    27
    6
    0
    @abbodi1406 - Issue using uup-converter-wimlib-40 with 19013.1102 - crashes out and no ISO created

    19013.1 works fine but issue with 19013.1102 from uupdump.ml

    windows10.0-kb4528630-x64.cab
    windows10.0-kb4528631-x64.cab
    windows10.0-kb4528632-x64.cab
    windows10.0-kb4528633-x64.cab
    windows10.0-kb4528634-x64.cab


    Used debug mode to create log file - Part1
    Code:
    >if 1 NEQ 0 if defined _args echo 
    
    >title UUP -> ISO v40
    
    >set regKeyPathFound=1
    
    >set wowRegKeyPathFound=1
    
    >reg.exe query "HKLM\Software\Wow6432Node\Microsoft\Windows Kits\Installed Roots" /v KitsRoot10    || set wowRegKeyPathFound=0
    ERROR: The system was unable to find the specified registry key or value.
    
    >reg.exe query "HKLM\Software\Microsoft\Windows Kits\Installed Roots" /v KitsRoot10    || set regKeyPathFound=0
    ERROR: The system was unable to find the specified registry key or value.
    
    >if 0 EQU 0 (if 0 EQU 0 (
    set ADK=0 
     set _dism=dism.exe /English 
     goto :precheck
    )  else (set regKeyPath=HKLM\Software\Microsoft\Windows Kits\Installed Roots ) )  else (set regKeyPath=HKLM\Software\Wow6432Node\Microsoft\Windows Kits\Installed Roots )
    
    >for /F "tokens=6 delims=[]. " %# in ('ver') do set winbuild=%#
    
    >set winbuild=18363
    
    >set W10UI=0
    
    >if 18363 GEQ 10240 (set W10UI=1 )  else (if 0 EQU 1 set W10UI=1 )
    
    >pushd "D:\uup-converter-wimlib-40\"
    
    >if not exist "ConvertConfig.ini" goto :proceed
    
    >findstr /i \[convert-UUP\] ConvertConfig.ini    || goto :proceed
    [convert-UUP]
    
    >for %# in (AutoStart AddUpdates Cleanup ResetBase NetFx3 StartVirtual SkipISO SkipWinRE wim2esd ForceDism RefESD) do (call :ReadINI %# )
    
    >(call :ReadINI AutoStart )
    
    >findstr /b /i AutoStart ConvertConfig.ini    && for /F "tokens=2 delims==" %# in ('findstr /b /i AutoStart ConvertConfig.ini') do set "AutoStart=%#"
    AutoStart    =0
    
    >set "AutoStart=0"
    
    >goto :eof
    
    >(call :ReadINI AddUpdates )
    
    >findstr /b /i AddUpdates ConvertConfig.ini    && for /F "tokens=2 delims==" %# in ('findstr /b /i AddUpdates ConvertConfig.ini') do set "AddUpdates=%#"
    AddUpdates   =1
    
    >set "AddUpdates=1"
    
    >goto :eof
    
    >(call :ReadINI Cleanup )
    
    >findstr /b /i Cleanup ConvertConfig.ini    && for /F "tokens=2 delims==" %# in ('findstr /b /i Cleanup ConvertConfig.ini') do set "Cleanup=%#"
    Cleanup      =0
    
    >set "Cleanup=0"
    
    >goto :eof
    
    >(call :ReadINI ResetBase )
    
    >findstr /b /i ResetBase ConvertConfig.ini    && for /F "tokens=2 delims==" %# in ('findstr /b /i ResetBase ConvertConfig.ini') do set "ResetBase=%#"
    ResetBase    =0
    
    >set "ResetBase=0"
    
    >goto :eof
    
    >(call :ReadINI NetFx3 )
    
    >findstr /b /i NetFx3 ConvertConfig.ini    && for /F "tokens=2 delims==" %# in ('findstr /b /i NetFx3 ConvertConfig.ini') do set "NetFx3=%#"
    NetFx3       =0
    
    >set "NetFx3=0"
    
    >goto :eof
    
    >(call :ReadINI StartVirtual )
    
    >findstr /b /i StartVirtual ConvertConfig.ini    && for /F "tokens=2 delims==" %# in ('findstr /b /i StartVirtual ConvertConfig.ini') do set "StartVirtual=%#"
    StartVirtual =0
    
    >set "StartVirtual=0"
    
    >goto :eof
    
    >(call :ReadINI SkipISO )
    
    >findstr /b /i SkipISO ConvertConfig.ini    && for /F "tokens=2 delims==" %# in ('findstr /b /i SkipISO ConvertConfig.ini') do set "SkipISO=%#"
    SkipISO      =0
    
    >set "SkipISO=0"
    
    >goto :eof
    
    >(call :ReadINI SkipWinRE )
    
    >findstr /b /i SkipWinRE ConvertConfig.ini    && for /F "tokens=2 delims==" %# in ('findstr /b /i SkipWinRE ConvertConfig.ini') do set "SkipWinRE=%#"
    SkipWinRE    =0
    
    >set "SkipWinRE=0"
    
    >goto :eof
    
    >(call :ReadINI wim2esd )
    
    >findstr /b /i wim2esd ConvertConfig.ini    && for /F "tokens=2 delims==" %# in ('findstr /b /i wim2esd ConvertConfig.ini') do set "wim2esd=%#"
    wim2esd      =0
    
    >set "wim2esd=0"
    
    >goto :eof
    
    >(call :ReadINI ForceDism )
    
    >findstr /b /i ForceDism ConvertConfig.ini    && for /F "tokens=2 delims==" %# in ('findstr /b /i ForceDism ConvertConfig.ini') do set "ForceDism=%#"
    ForceDism    =1
    
    >set "ForceDism=1"
    
    >goto :eof
    
    >(call :ReadINI RefESD )
    
    >findstr /b /i RefESD ConvertConfig.ini    && for /F "tokens=2 delims==" %# in ('findstr /b /i RefESD ConvertConfig.ini') do set "RefESD=%#"
    RefESD       =0
    
    >set "RefESD=0"
    
    >goto :eof
    
    >goto :proceed
    
    >set ERRORTEMP=
    
    >set PREPARED=0
    
    >set VOL=0
    
    >set EXPRESS=0
    
    >set AIO=0
    
    >set FixDisplay=0
    
    >set uups_esd_num=0
    
    >set _count=0
    
    >set _Enable=0
    
    >set _drv=D:
    
    >set "mountdir=D:\MountUUP"
    
    >set "_ntf=NTFS"
    
    >if /I not "D:" == "C:" for /F "tokens=2 delims==" %# in ('"wmic volume where DriveLetter='D:' get FileSystem /value"') do set "_ntf=%#"
    
    >set "_ntf=NTFS
    "
    
    >if /I not "NTFS" == "NTFS" (set "mountdir=C:\MountUUP" )
    
    >set "line============================================================="
    
    >set "_err===== ERROR ===="
    
    >set _file=(7z.dll,7z.exe,bcdedit.exe,bfi.exe,bootmui.txt,bootwim.txt,cdimage.exe,imagex.exe,libwim-15.dll,offlinereg.exe,offreg.dll,wimlib-imagex.exe)
    
    >for %# in (7z.dll 7z.exe bcdedit.exe bfi.exe bootmui.txt bootwim.txt cdimage.exe imagex.exe libwim-15.dll offlinereg.exe offreg.dll wimlib-imagex.exe) do (if not exist ".\bin\%#" (set _bin=%#  & goto :E_Bin ) )
    
    >(if not exist ".\bin\7z.dll" (set _bin=7z.dll  & goto :E_Bin ) )
    
    >(if not exist ".\bin\7z.exe" (set _bin=7z.exe  & goto :E_Bin ) )
    
    >(if not exist ".\bin\bcdedit.exe" (set _bin=bcdedit.exe  & goto :E_Bin ) )
    
    >(if not exist ".\bin\bfi.exe" (set _bin=bfi.exe  & goto :E_Bin ) )
    
    >(if not exist ".\bin\bootmui.txt" (set _bin=bootmui.txt  & goto :E_Bin ) )
    
    >(if not exist ".\bin\bootwim.txt" (set _bin=bootwim.txt  & goto :E_Bin ) )
    
    >(if not exist ".\bin\cdimage.exe" (set _bin=cdimage.exe  & goto :E_Bin ) )
    
    >(if not exist ".\bin\imagex.exe" (set _bin=imagex.exe  & goto :E_Bin ) )
    
    >(if not exist ".\bin\libwim-15.dll" (set _bin=libwim-15.dll  & goto :E_Bin ) )
    
    >(if not exist ".\bin\offlinereg.exe" (set _bin=offlinereg.exe  & goto :E_Bin ) )
    
    >(if not exist ".\bin\offreg.dll" (set _bin=offreg.dll  & goto :E_Bin ) )
    
    >(if not exist ".\bin\wimlib-imagex.exe" (set _bin=wimlib-imagex.exe  & goto :E_Bin ) )
    
    >if 1 NEQ 0 if 0 EQU 0 set AutoStart=2
    
    >if defined UUP goto :check
    
    >color 1F
    
    >setlocal EnableDelayedExpansion
    
    >set _configured=0
    
    >if exist bin\temp\ rmdir /s /q bin\temp\
    
    >if exist temp\ rmdir /s /q temp\
    
    >mkdir bin\temp
    
    >mkdir temp
    
    >dir /b /ad "!UUP!\*Package*"    && set EXPRESS=1
    File Not Found
    
    >for %# in (Core CoreSingleLanguage CoreCountrySpecific Professional ProfessionalEducation ProfessionalWorkstation Education Enterprise EnterpriseG Cloud CloudE CoreN ProfessionalN ProfessionalEducationN ProfessionalWorkstationN EducationN EnterpriseN EnterpriseGN CloudN CloudEN Starter StarterN ProfessionalCountrySpecific ProfessionalSingleLanguage ServerRdsh IoTEnterprise PPIPro) do (if exist "!UUP!\*%#_*.esd" dir /b /a:-d "!UUP!\*%#_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*Core_*.esd" dir /b /a:-d "!UUP!\*Core_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*CoreSingleLanguage_*.esd" dir /b /a:-d "!UUP!\*CoreSingleLanguage_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*CoreCountrySpecific_*.esd" dir /b /a:-d "!UUP!\*CoreCountrySpecific_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*Professional_*.esd" dir /b /a:-d "!UUP!\*Professional_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*ProfessionalEducation_*.esd" dir /b /a:-d "!UUP!\*ProfessionalEducation_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*ProfessionalWorkstation_*.esd" dir /b /a:-d "!UUP!\*ProfessionalWorkstation_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*Education_*.esd" dir /b /a:-d "!UUP!\*Education_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*Enterprise_*.esd" dir /b /a:-d "!UUP!\*Enterprise_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*EnterpriseG_*.esd" dir /b /a:-d "!UUP!\*EnterpriseG_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*Cloud_*.esd" dir /b /a:-d "!UUP!\*Cloud_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*CloudE_*.esd" dir /b /a:-d "!UUP!\*CloudE_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*CoreN_*.esd" dir /b /a:-d "!UUP!\*CoreN_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*ProfessionalN_*.esd" dir /b /a:-d "!UUP!\*ProfessionalN_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*ProfessionalEducationN_*.esd" dir /b /a:-d "!UUP!\*ProfessionalEducationN_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*ProfessionalWorkstationN_*.esd" dir /b /a:-d "!UUP!\*ProfessionalWorkstationN_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*EducationN_*.esd" dir /b /a:-d "!UUP!\*EducationN_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*EnterpriseN_*.esd" dir /b /a:-d "!UUP!\*EnterpriseN_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*EnterpriseGN_*.esd" dir /b /a:-d "!UUP!\*EnterpriseGN_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*CloudN_*.esd" dir /b /a:-d "!UUP!\*CloudN_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*CloudEN_*.esd" dir /b /a:-d "!UUP!\*CloudEN_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*Starter_*.esd" dir /b /a:-d "!UUP!\*Starter_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*StarterN_*.esd" dir /b /a:-d "!UUP!\*StarterN_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*ProfessionalCountrySpecific_*.esd" dir /b /a:-d "!UUP!\*ProfessionalCountrySpecific_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*ProfessionalSingleLanguage_*.esd" dir /b /a:-d "!UUP!\*ProfessionalSingleLanguage_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*ServerRdsh_*.esd" dir /b /a:-d "!UUP!\*ServerRdsh_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*IoTEnterprise_*.esd" dir /b /a:-d "!UUP!\*IoTEnterprise_*.esd"  1>>temp\uups_esd.txt )
    
    >(if exist "!UUP!\*PPIPro_*.esd" dir /b /a:-d "!UUP!\*PPIPro_*.esd"  1>>temp\uups_esd.txt )
    
    >for /F "tokens=3 delims=: " %# in ('find /v /n /c "" temp\uups_esd.txt') do set uups_esd_num=%#
    
    >set uups_esd_num=4
    
    >if 4 EQU 0 goto :E_ESD
    
    >for /L %# in (1 1 4) do call :uups_esd %#
    
    >call :uups_esd 1
    
    >for /F "usebackq  delims=" %# in (`find /n /v "" temp\uups_esd.txt | find "[1]"`) do set uups_esd=%#
    
    >set uups_esd=[1]core_en-us.esd
    
    >if 1 GEQ 1 set uups_esd=core_en-us.esd
    
    >if 1 GEQ 10 set uups_esd=ore_en-us.esd
    
    >set "uups_esd1=core_en-us.esd"
    
    >bin\wimlib-imagex info "!UUP!\core_en-us.esd" 3  1>bin\info.txt 2>&1
    
    >for /F "tokens=1* delims=: " %A in ('findstr /b "Name" bin\info.txt') do set "name=%B"
    
    >set "name=Windows 10 Home"
    
    >for /F "tokens=3 delims=: " %# in ('findstr /b "Edition" bin\info.txt') do set "edition1=%#"
    
    >set "edition1=Core"
    
    >for /F "tokens=3 delims=: " %# in ('findstr /i "Default" bin\info.txt') do set "langid1=%#"
    
    >set "langid1=en-US"
    
    >for /F "tokens=2 delims=: " %# in ('findstr /i "Architecture" bin\info.txt') do set "arch1=%#"
    
    >set "arch1=x86_64"
    
    >if /I !arch1! == x86_64 set "arch1=x64"
    
    >set "name1=!name! (!arch1! / !langid1!)"
    
    >del /f /q bin\info.txt 
    
    >exit /b
    
    >call :uups_esd 2
    
    >for /F "usebackq  delims=" %# in (`find /n /v "" temp\uups_esd.txt | find "[2]"`) do set uups_esd=%#
    
    >set uups_esd=[2]professional_en-us.esd
    
    >if 2 GEQ 1 set uups_esd=professional_en-us.esd
    
    >if 2 GEQ 10 set uups_esd=rofessional_en-us.esd
    
    >set "uups_esd2=professional_en-us.esd"
    
    >bin\wimlib-imagex info "!UUP!\professional_en-us.esd" 3  1>bin\info.txt 2>&1
    
    >for /F "tokens=1* delims=: " %A in ('findstr /b "Name" bin\info.txt') do set "name=%B"
    
    >set "name=Windows 10 Pro"
    
    >for /F "tokens=3 delims=: " %# in ('findstr /b "Edition" bin\info.txt') do set "edition2=%#"
    
    >set "edition2=Professional"
    
    >for /F "tokens=3 delims=: " %# in ('findstr /i "Default" bin\info.txt') do set "langid2=%#"
    
    >set "langid2=en-US"
    
    >for /F "tokens=2 delims=: " %# in ('findstr /i "Architecture" bin\info.txt') do set "arch2=%#"
    
    >set "arch2=x86_64"
    
    >if /I !arch2! == x86_64 set "arch2=x64"
    
    >set "name2=!name! (!arch2! / !langid2!)"
    
    >del /f /q bin\info.txt 
    
    >exit /b
    
    >call :uups_esd 3
    
    >for /F "usebackq  delims=" %# in (`find /n /v "" temp\uups_esd.txt | find "[3]"`) do set uups_esd=%#
    
    >set uups_esd=[3]coren_en-us.esd
    
    >if 3 GEQ 1 set uups_esd=coren_en-us.esd
    
    >if 3 GEQ 10 set uups_esd=oren_en-us.esd
    
    >set "uups_esd3=coren_en-us.esd"
    
    >bin\wimlib-imagex info "!UUP!\coren_en-us.esd" 3  1>bin\info.txt 2>&1
    
    >for /F "tokens=1* delims=: " %A in ('findstr /b "Name" bin\info.txt') do set "name=%B"
    
    >set "name=Windows 10 Home N"
    
    >for /F "tokens=3 delims=: " %# in ('findstr /b "Edition" bin\info.txt') do set "edition3=%#"
    
    >set "edition3=CoreN"
    
    >for /F "tokens=3 delims=: " %# in ('findstr /i "Default" bin\info.txt') do set "langid3=%#"
    
    >set "langid3=en-US"
    
    >for /F "tokens=2 delims=: " %# in ('findstr /i "Architecture" bin\info.txt') do set "arch3=%#"
    
    >set "arch3=x86_64"
    
    >if /I !arch3! == x86_64 set "arch3=x64"
    
    >set "name3=!name! (!arch3! / !langid3!)"
    
    >del /f /q bin\info.txt 
    
    >exit /b
    
    >call :uups_esd 4
    
    >for /F "usebackq  delims=" %# in (`find /n /v "" temp\uups_esd.txt | find "[4]"`) do set uups_esd=%#
    
    >set uups_esd=[4]professionaln_en-us.esd
    
    >if 4 GEQ 1 set uups_esd=professionaln_en-us.esd
    
    >if 4 GEQ 10 set uups_esd=rofessionaln_en-us.esd
    
    >set "uups_esd4=professionaln_en-us.esd"
    
    >bin\wimlib-imagex info "!UUP!\professionaln_en-us.esd" 3  1>bin\info.txt 2>&1
    
    >for /F "tokens=1* delims=: " %A in ('findstr /b "Name" bin\info.txt') do set "name=%B"
    
    >set "name=Windows 10 Pro N"
    
    >for /F "tokens=3 delims=: " %# in ('findstr /b "Edition" bin\info.txt') do set "edition4=%#"
    
    >set "edition4=ProfessionalN"
    
    >for /F "tokens=3 delims=: " %# in ('findstr /i "Default" bin\info.txt') do set "langid4=%#"
    
    >set "langid4=en-US"
    
    >for /F "tokens=2 delims=: " %# in ('findstr /i "Architecture" bin\info.txt') do set "arch4=%#"
    
    >set "arch4=x86_64"
    
    >if /I !arch4! == x86_64 set "arch4=x64"
    
    >set "name4=!name! (!arch4! / !langid4!)"
    
    >del /f /q bin\info.txt 
    
    >exit /b
    
    >if 4 GTR 1 goto :MULTIMENU
    
    >if 2 EQU 1 (set AIO=1  & set WIMFILE=install.wim  & goto :ISO )
    
    >if 2 EQU 2 (set AIO=1  & set WIMFILE=install.esd  & goto :ISO )
    
    >cls
    >echo.
    
    
    >echo ============================================================
    ============================================================
    
    >echo Running UUP -> ISO v40
    Running UUP -> ISO v40
    
    >echo ============================================================
    ============================================================
    
    >echo.
    
    
    >if not exist "!UUP!\*Windows10*KB*.cab" set AddUpdates=0
    
    >if 0 EQU 0 call :PREPARE
    
    >cls
    >echo ============================================================
    ============================================================
    
    >echo Checking UUP Info . . .
    Checking UUP Info . . .
    
    >echo ============================================================
    ============================================================
    
    >set PREPARED=1
    
    >if 1 EQU 1 set "MetadataESD=!UUP!\core_en-us.esd"  & set "arch=x64"  & set "langid=en-US"
    
    >if 0 GTR 1 set "MetadataESD=!UUP!\!uups_esd!"  & set "arch=!arch!"  & set "langid=!langid!"
    
    >bin\wimlib-imagex info "!MetadataESD!" 3  1>bin\info.txt 2>&1
    
    >for /F "tokens=1* delims=: " %A in ('findstr /b "Name" bin\info.txt') do set "_os=%B"
    
    >set "_os=Windows 10 Home"
    
    >for /F "tokens=2 delims=: " %# in ('findstr /b "Build" bin\info.txt') do set build=%#
    
    >set build=19013
    
    >for /F "tokens=4 delims=: " %# in ('findstr /i /c:"Service Pack Build" bin\info.txt') do set svcbuild=%#
    
    >set svcbuild=1
    
    >for /F "tokens=3 delims=: " %# in ('findstr /i "Major" bin\info.txt') do set ver1=%#
    
    >set ver1=10
    
    >for /F "tokens=3 delims=: " %# in ('findstr /i "Minor" bin\info.txt') do set ver2=%#
    
    >set ver2=0
    
    >del /f /q bin\info.txt 
    
    >for /F "tokens=3 delims=<>" %# in ('bin\imagex /info "!MetadataESD!" 3 | find /i "<DISPLAYNAME>" ') do if /I "%#" == "/DISPLAYNAME" (set FixDisplay=1 )
    
    >if 0 EQU 1 if 4 GTR 1 for /L %# in (2 1 4) do (for /F "tokens=1* delims=: " %A in ('bin\wimlib-imagex info "!UUP!\!uups_esd%#!" 3 | findstr /b "Name"') do set "_os%#=%B" )
    
    >"!_wimlib!" extract "!MetadataESD!" 1 sources\ei.cfg --dest-dir=.\bin\temp --no-acls --no-attributes 
    
    [ERROR] No matches for path pattern "sources\ei.cfg"
    Note: You can use the '--nullglob' option to ignore missing files.
    Note: You can use `wimlib-imagex.exe dir' to see what files and directories
          are in the WIM image.
    ERROR: Exiting with error code 49:
           The path does not exist in the WIM image.
    
    >if exist "bin\temp\ei.cfg" type .\bin\temp\ei.cfg    | find /i "Volume"    && set VOL=1
    
    >"!_wimlib!" extract "!MetadataESD!" 1 sources\setuphost.exe --dest-dir=.\bin\temp --no-acls --no-attributes 
    
    Extracting file data: 851 KiB of 851 KiB (100%) done
    Done extracting files.
    
    >bin\7z.exe l .\bin\temp\setuphost.exe  1>.\bin\temp\version.txt 2>&1
    
    >for /F "tokens=4-7 delims=.() " %i in ('"findstr /i /b "FileVersion" .\bin\temp\version.txt" ') do (set version=%i.%j  & set vermajor=%i  & set verminor=%j  & set branch=%k  & set labeldate=%l )
    
    >(set version=19013.1  & set vermajor=19013  & set verminor=1  & set branch=  & set labeldate= )
    
    >(set version=19013.1  & set vermajor=19013  & set verminor=1  & set branch=vb_release  & set labeldate=191025-1609 )
    
    >set revision=19013.1  & set revmajor=19013  & set revminor=1
    
    >set "tok=6,7"  & set "toe=5,6,7"
    
    >if /I x64 == x86 (set _ss=x86 )  else if /I x64 == x64 (set _ss=amd64 )  else (set _ss=arm64 )
    
    >"!_wimlib!" extract "!MetadataESD!" 3 Windows\WinSxS\Manifests\amd64_microsoft-windows-coreos-revision*.manifest --dest-dir=.\bin\temp --no-acls --no-attributes --ref="!UUP!\*.esd" 
    
    Extracting file data: 125 bytes of 125 bytes (100%) done
    Done extracting files.
    
    >if exist "bin\temp\*_microsoft-windows-coreos-revision*.manifest" for /F "tokens=6,7 delims=_." %A in ('dir /b /a:-d /od .\bin\temp\*_microsoft-windows-coreos-revision*.manifest') do set revision=%A.%B  & set revmajor=%A  & set revminor=%B
    
    >set revision=19013.1  & set revmajor=19013  & set revminor=1
    
    >if 19013 GEQ 15063 (
    "!_wimlib!" extract "!MetadataESD!" 3 Windows\System32\config\SOFTWARE --dest-dir=.\bin\temp --no-acls --no-attributes  1>nul 2>nul 
     set "isokey=Microsoft\Windows NT\CurrentVersion\Update\TargetingInfo\Installed" 
     for /F %i in ('"bin\offlinereg.exe .\bin\temp\SOFTWARE "!isokey!" enumkeys  ^| find /i "Client.OS""') do if not errorlevel 1 (
    for /F "tokens=3 delims==:" %A in ('"bin\offlinereg.exe .\bin\temp\SOFTWARE "!isokey!\%i" getvalue Branch "') do set "isobranch=%~A" 
     for /F "tokens=5,6 delims==:." %A in ('"bin\offlinereg.exe .\bin\temp\SOFTWARE "!isokey!\%i" getvalue Version "') do if %A GTR !revmajor! (
    set "revision=%~A.%B 
     set revmajor=%~A 
     set "revminor=%B
    )
    )
    )
    
    >if not errorlevel 1 (
    for /F "tokens=3 delims==:" %A in ('"bin\offlinereg.exe .\bin\temp\SOFTWARE "!isokey!\Client.OS.rs2.amd64" getvalue Branch "') do set "isobranch=%~A" 
     for /F "tokens=5,6 delims==:." %A in ('"bin\offlinereg.exe .\bin\temp\SOFTWARE "!isokey!\Client.OS.rs2.amd64" getvalue Version "') do if %A GTR !revmajor! (
    set "revision=%~A.%B 
     set revmajor=%~A 
     set "revminor=%B
    )
    )
    
    >set "isobranch=vb_release"
    
    >if 19013 GTR !revmajor! (
    set "revision=19013.1" 
     set revmajor=19013 
     set "revminor=1"
    )
    
    >if defined isobranch set branch=vb_release
    
    >if 19013 == 18363 if /I "vb_r" == "19h1" set branch=19h2elease
    
    >if 1 LSS 1 (
    set version=19013.1 
     set verminor=1 
     "!_wimlib!" extract "!MetadataESD!" 3 Windows\servicing\Packages\Package_for_RollupFix*.mum --dest-dir=C:\WINDOWS\temp --no-acls --no-attributes   
     for /F %# in ('dir /b /a:-d /od C:\WINDOWS\temp\Package_for_RollupFix*.mum') do set "mumfile=C:\WINDOWS\temp\%#" 
     for /F "tokens=2 delims==" %# in ('wmic datafile where "name='!mumfile:\=\\!'" get LastModified /value') do set "mumdate=%#" 
     del /f /q C:\WINDOWS\temp\*.mum 
     set "labeldate=!mumdate:~2,2!!mumdate:~4,2!!mumdate:~6,2!-!mumdate:~8,4!"
    )
    
    >set _label2=
    
    >if /I "vb_release" == "WinBuild" (
    "!_wimlib!" extract "!MetadataESD!" 3 Windows\System32\config\SOFTWARE --dest-dir=.\bin\temp --no-acls --no-attributes  1>nul 2>nul 
     for /F "tokens=3 delims==:" %# in ('"bin\offlinereg.exe .\bin\temp\SOFTWARE "Microsoft\Windows NT\CurrentVersion" getvalue BuildLabEx" ') do if not errorlevel 1 (for /F "tokens=1-5 delims=." %i in ('echo %~#') do set _label2=%i.%j.%m.%l_CLIENT  & set branch=%l )
    )
    
    >if defined _label2 (set _label= )  else (set _label=19013.1.191025-1609.vb_release_CLIENT )
    
    >rmdir /s /q .\bin\temp
    
    >if /I x64 == x86 set archl=X86
    
    >if /I x64 == x64 set archl=X64
    
    >if /I x64 == arm64 set archl=A64
    
    >for %# in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
    set _label=!_label:%#=%#! 
     set branch=!branch:%#=%#! 
     set langid=!langid:%#=%#! 
     set editionid=!editionid:%#=%#!
    )
    
    >(
    set _label=!_label:A=A! 
     set branch=!branch:A=A! 
     set langid=!langid:A=A! 
     set editionid=!editionid:A=A!
    )
    
    >(
    set _label=!_label:B=B! 
     set branch=!branch:B=B! 
     set langid=!langid:B=B! 
     set editionid=!editionid:B=B!
    )
    
    >(
    set _label=!_label:C=C! 
     set branch=!branch:C=C! 
     set langid=!langid:C=C! 
     set editionid=!editionid:C=C!
    )
    
    >(
    set _label=!_label:D=D! 
     set branch=!branch:D=D! 
     set langid=!langid:D=D! 
     set editionid=!editionid:D=D!
    )
    
    >(
    set _label=!_label:E=E! 
     set branch=!branch:E=E! 
     set langid=!langid:E=E! 
     set editionid=!editionid:E=E!
    )
    
    >(
    set _label=!_label:F=F! 
     set branch=!branch:F=F! 
     set langid=!langid:F=F! 
     set editionid=!editionid:F=F!
    )
    
    >(
    set _label=!_label:G=G! 
     set branch=!branch:G=G! 
     set langid=!langid:G=G! 
     set editionid=!editionid:G=G!
    )
    
    >(
    set _label=!_label:H=H! 
     set branch=!branch:H=H! 
     set langid=!langid:H=H! 
     set editionid=!editionid:H=H!
    )
    
    >(
    set _label=!_label:I=I! 
     set branch=!branch:I=I! 
     set langid=!langid:I=I! 
     set editionid=!editionid:I=I!
    )
    
    >(
    set _label=!_label:J=J! 
     set branch=!branch:J=J! 
     set langid=!langid:J=J! 
     set editionid=!editionid:J=J!
    )
    
    >(
    set _label=!_label:K=K! 
     set branch=!branch:K=K! 
     set langid=!langid:K=K! 
     set editionid=!editionid:K=K!
    )
    
    >(
    set _label=!_label:L=L! 
     set branch=!branch:L=L! 
     set langid=!langid:L=L! 
     set editionid=!editionid:L=L!
    )
    
    >(
    set _label=!_label:M=M! 
     set branch=!branch:M=M! 
     set langid=!langid:M=M! 
     set editionid=!editionid:M=M!
    )
    
    >(
    set _label=!_label:N=N! 
     set branch=!branch:N=N! 
     set langid=!langid:N=N! 
     set editionid=!editionid:N=N!
    )
    
    >(
    set _label=!_label:O=O! 
     set branch=!branch:O=O! 
     set langid=!langid:O=O! 
     set editionid=!editionid:O=O!
    )
    
    >(
    set _label=!_label:P=P! 
     set branch=!branch:P=P! 
     set langid=!langid:P=P! 
     set editionid=!editionid:P=P!
    )
    
    >(
    set _label=!_label:Q=Q! 
     set branch=!branch:Q=Q! 
     set langid=!langid:Q=Q! 
     set editionid=!editionid:Q=Q!
    )
    
    >(
    set _label=!_label:R=R! 
     set branch=!branch:R=R! 
     set langid=!langid:R=R! 
     set editionid=!editionid:R=R!
    )
    
    >(
    set _label=!_label:S=S! 
     set branch=!branch:S=S! 
     set langid=!langid:S=S! 
     set editionid=!editionid:S=S!
    )
    
    >(
    set _label=!_label:T=T! 
     set branch=!branch:T=T! 
     set langid=!langid:T=T! 
     set editionid=!editionid:T=T!
    )
    
    >(
    set _label=!_label:U=U! 
     set branch=!branch:U=U! 
     set langid=!langid:U=U! 
     set editionid=!editionid:U=U!
    )
    
    >(
    set _label=!_label:V=V! 
     set branch=!branch:V=V! 
     set langid=!langid:V=V! 
     set editionid=!editionid:V=V!
    )
    
    >(
    set _label=!_label:W=W! 
     set branch=!branch:W=W! 
     set langid=!langid:W=W! 
     set editionid=!editionid:W=W!
    )
    
    >(
    set _label=!_label:X=X! 
     set branch=!branch:X=X! 
     set langid=!langid:X=X! 
     set editionid=!editionid:X=X!
    )
    
    >(
    set _label=!_label:Y=Y! 
     set branch=!branch:Y=Y! 
     set langid=!langid:Y=Y! 
     set editionid=!editionid:Y=Y!
    )
    
    >(
    set _label=!_label:Z=Z! 
     set branch=!branch:Z=Z! 
     set langid=!langid:Z=Z! 
     set editionid=!editionid:Z=Z!
    )
    
    >if 1 EQU 1 set DVDLABEL=CCSA_X64FRE_EN-US_DV5  & set DVDISO=19013.1.191025-1609.VB_RELEASE_CLIENTMULTI_X64FRE_EN-US  & exit /b
    
    >if /I x64 == arm64 if 18363 LSS 9600 if 1 EQU 1 (if 19013 GEQ 17763 (set AddUpdates=2 )  else (set AddUpdates=0 ) )
    
    >if 0 EQU 0 set ResetBase=0
    
    >if 19013 LSS 17063 (set StartVirtual=0 )
    
    >if 19013 LSS 17763 if 1 EQU 2 (set AddUpdates=1 )
    
    >if 19013 LSS 17763 if 1 EQU 1 if 1 EQU 0 (set AddUpdates=0 )
    
    >if 19013 GEQ 17763 if 1 EQU 1 if 1 EQU 0 (set AddUpdates=2 )
    
    >if 19013 LSS 17763 if 1 EQU 1 (set Cleanup=1 )
    
    >if install.esd == install.wim (if 1 NEQ 1 if 0 EQU 1 (set WIMFILE=install.esd ) )
    
    >if install.esd == install.esd (
    set wim2esd=0 
     if 1 EQU 1 (set WIMFILE=install.wim  & set wim2esd=1 )
    )
    
    >if 1 NEQ 0 set wim2esd=0
    
    >for %# in (AutoStart AddUpdates Cleanup ResetBase NetFx3 StartVirtual SkipISO SkipWinRE wim2esd ForceDism RefESD) do (if !%#! NEQ 0 set _configured=1 )
    
    >(if !AutoStart! NEQ 0 set _configured=1 )
    
    >(if !AddUpdates! NEQ 0 set _configured=1 )
    
    >(if !Cleanup! NEQ 0 set _configured=1 )
    
    >(if !ResetBase! NEQ 0 set _configured=1 )
    
    >(if !NetFx3! NEQ 0 set _configured=1 )
    
    >(if !StartVirtual! NEQ 0 set _configured=1 )
    
    >(if !SkipISO! NEQ 0 set _configured=1 )
    
    >(if !SkipWinRE! NEQ 0 set _configured=1 )
    
    >(if !wim2esd! NEQ 0 set _configured=1 )
    
    >(if !ForceDism! NEQ 0 set _configured=1 )
    
    >(if !RefESD! NEQ 0 set _configured=1 )
    
    >if 1 EQU 1 (
    echo.
     echo ============================================================ 
     echo Configured Options . . . 
     echo ============================================================ 
     echo.
     if 2 NEQ 0 echo AutoStart 2 
     if 1 NEQ 0 echo AddUpdates 1 
     if 1 EQU 1 (
    if 0 NEQ 0 echo Cleanup 
     if 0 NEQ 0 if 0 NEQ 0 echo ResetBase
    ) 
     if 1 NEQ 0 if 0 NEQ 0 echo NetFx3 
     if 0 NEQ 0 echo StartVirtual 
     for %# in (SkipISO SkipWinRE wim2esd ForceDism RefESD) do (if !%#! NEQ 0 echo %# )
    )
    
    ============================================================
    Configured Options . . .
    ============================================================
    
    AutoStart 2
    AddUpdates 1
    
    >(if !SkipISO! NEQ 0 echo SkipISO )
    
    >(if !SkipWinRE! NEQ 0 echo SkipWinRE )
    
    >(if !wim2esd! NEQ 0 echo wim2esd )
    
    >(if !ForceDism! NEQ 0 echo ForceDism )
    ForceDism
    
    >(if !RefESD! NEQ 0 echo RefESD )
    
    >call :uups_ref
    
    >echo.
    
    
    >echo ============================================================
    ============================================================
    
    >echo Preparing Reference ESDs . . .
    Preparing Reference ESDs . . .
    
    >echo ============================================================
    ============================================================
    
    >echo.
    
    
    >if 0 NEQ 0 (set _level=LZX )  else (set _level=XPRESS )
    
    >if exist "!UUP!\*.xml.cab" if exist "!UUP!\Metadata\*" move /y "!UUP!\*.xml.cab" "!UUP!\Metadata\" 
    
    >if exist "!UUP!\*.cab" (for /F "delims=" %# in ('dir /b /a:-d "!UUP!\*.cab"') do (
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\%#" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "%#"
    ) )
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64.cab"
    )
    
    >echo microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64
    
    >if exist "!_work!\temp\microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64
    CAB->ESD: microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=18179
    
    >set _dst=D:\_tmp1
    
    >if exist "D:\_tmp1" (set _dst=D:\_tmp18179 )
    
    >mkdir D:\_tmp1 
    
    >expand.exe -f:* "!UUP!\microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64.cab" D:\_tmp1\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp1" "temp\microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64" "microsoft-onecore-applicationmodel-sync-desktop-fod-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp1\ 
    
    >if exist "D:\_tmp1\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp1 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp1\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-onecore-directx-database-fod-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-onecore-directx-database-fod-package-amd64.cab"
    )
    
    >echo microsoft-onecore-directx-database-fod-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-onecore-directx-database-fod-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-onecore-directx-database-fod-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-onecore-directx-database-fod-package-amd64
    
    >if exist "!_work!\temp\microsoft-onecore-directx-database-fod-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-onecore-directx-database-fod-package-amd64
    CAB->ESD: microsoft-onecore-directx-database-fod-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=13271
    
    >set _dst=D:\_tmp2
    
    >if exist "D:\_tmp2" (set _dst=D:\_tmp13271 )
    
    >mkdir D:\_tmp2 
    
    >expand.exe -f:* "!UUP!\microsoft-onecore-directx-database-fod-package-amd64.cab" D:\_tmp2\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp2" "temp\microsoft-onecore-directx-database-fod-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-onecore-directx-database-fod-package-amd64" "microsoft-onecore-directx-database-fod-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp2\ 
    
    >if exist "D:\_tmp2\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp2 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp2\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-hello-face-migration-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-hello-face-migration-package-amd64.cab"
    )
    
    >echo microsoft-windows-hello-face-migration-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-hello-face-migration-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-hello-face-migration-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-hello-face-migration-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-hello-face-migration-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-hello-face-migration-package-amd64
    CAB->ESD: microsoft-windows-hello-face-migration-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=29440
    
    >set _dst=D:\_tmp3
    
    >if exist "D:\_tmp3" (set _dst=D:\_tmp29440 )
    
    >mkdir D:\_tmp3 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-hello-face-migration-package-amd64.cab" D:\_tmp3\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp3" "temp\microsoft-windows-hello-face-migration-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-hello-face-migration-package-amd64" "microsoft-windows-hello-face-migration-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp3\ 
    
    >if exist "D:\_tmp3\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp3 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp3\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-hello-face-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-hello-face-package-amd64.cab"
    )
    
    >echo microsoft-windows-hello-face-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-hello-face-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-hello-face-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-hello-face-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-hello-face-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-hello-face-package-amd64
    CAB->ESD: microsoft-windows-hello-face-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=26183
    
    >set _dst=D:\_tmp4
    
    >if exist "D:\_tmp4" (set _dst=D:\_tmp26183 )
    
    >mkdir D:\_tmp4 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-hello-face-package-amd64.cab" D:\_tmp4\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp4" "temp\microsoft-windows-hello-face-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-hello-face-package-amd64" "microsoft-windows-hello-face-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp4\ 
    
    >if exist "D:\_tmp4\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp4 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp4\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-internetexplorer-optional-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-internetexplorer-optional-package-amd64.cab"
    )
    
    >echo microsoft-windows-internetexplorer-optional-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-internetexplorer-optional-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-internetexplorer-optional-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-internetexplorer-optional-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-internetexplorer-optional-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-internetexplorer-optional-package-amd64
    CAB->ESD: microsoft-windows-internetexplorer-optional-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=29980
    
    >set _dst=D:\_tmp5
    
    >if exist "D:\_tmp5" (set _dst=D:\_tmp29980 )
    
    >mkdir D:\_tmp5 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-internetexplorer-optional-package-amd64.cab" D:\_tmp5\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp5" "temp\microsoft-windows-internetexplorer-optional-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-internetexplorer-optional-package-amd64" "microsoft-windows-internetexplorer-optional-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp5\ 
    
    >if exist "D:\_tmp5\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp5 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp5\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-languagefeatures-basic-en-us-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-languagefeatures-basic-en-us-package-amd64.cab"
    )
    
    >echo microsoft-windows-languagefeatures-basic-en-us-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-languagefeatures-basic-en-us-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-languagefeatures-basic-en-us-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-languagefeatures-basic-en-us-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-languagefeatures-basic-en-us-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-languagefeatures-basic-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-basic-en-us-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=24016
    
    >set _dst=D:\_tmp6
    
    >if exist "D:\_tmp6" (set _dst=D:\_tmp24016 )
    
    >mkdir D:\_tmp6 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-languagefeatures-basic-en-us-package-amd64.cab" D:\_tmp6\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp6" "temp\microsoft-windows-languagefeatures-basic-en-us-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-languagefeatures-basic-en-us-package-amd64" "microsoft-windows-languagefeatures-basic-en-us-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp6\ 
    
    >if exist "D:\_tmp6\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp6 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp6\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-languagefeatures-handwriting-en-us-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-languagefeatures-handwriting-en-us-package-amd64.cab"
    )
    
    >echo microsoft-windows-languagefeatures-handwriting-en-us-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-languagefeatures-handwriting-en-us-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-languagefeatures-handwriting-en-us-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-languagefeatures-handwriting-en-us-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-languagefeatures-handwriting-en-us-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-languagefeatures-handwriting-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-handwriting-en-us-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=13966
    
    >set _dst=D:\_tmp7
    
    >if exist "D:\_tmp7" (set _dst=D:\_tmp13966 )
    
    >mkdir D:\_tmp7 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-languagefeatures-handwriting-en-us-package-amd64.cab" D:\_tmp7\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp7" "temp\microsoft-windows-languagefeatures-handwriting-en-us-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-languagefeatures-handwriting-en-us-package-amd64" "microsoft-windows-languagefeatures-handwriting-en-us-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp7\ 
    
    >if exist "D:\_tmp7\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp7 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp7\  1>nul 2>nul
    )
    
    >exit /b
    #####################################
     
  7. boblan

    boblan MDL Novice

    Jun 1, 2015
    27
    6
    0
    @abbodi1406 - Issue using uup-converter-wimlib-40 with 19013.1102 - crashes out and no ISO created

    19013.1 works fine but issue with 19013.1102 from uupdump.ml

    windows10.0-kb4528630-x64.cab
    windows10.0-kb4528631-x64.cab
    windows10.0-kb4528632-x64.cab
    windows10.0-kb4528633-x64.cab
    windows10.0-kb4528634-x64.cab

    Used debug mode to create log file - Part2
    Code:
    #####################################
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-languagefeatures-ocr-en-us-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-languagefeatures-ocr-en-us-package-amd64.cab"
    )
    
    >echo microsoft-windows-languagefeatures-ocr-en-us-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-languagefeatures-ocr-en-us-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-languagefeatures-ocr-en-us-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-languagefeatures-ocr-en-us-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-languagefeatures-ocr-en-us-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-languagefeatures-ocr-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-ocr-en-us-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=15477
    
    >set _dst=D:\_tmp8
    
    >if exist "D:\_tmp8" (set _dst=D:\_tmp15477 )
    
    >mkdir D:\_tmp8 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-languagefeatures-ocr-en-us-package-amd64.cab" D:\_tmp8\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp8" "temp\microsoft-windows-languagefeatures-ocr-en-us-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-languagefeatures-ocr-en-us-package-amd64" "microsoft-windows-languagefeatures-ocr-en-us-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp8\ 
    
    >if exist "D:\_tmp8\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp8 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp8\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-languagefeatures-speech-en-us-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-languagefeatures-speech-en-us-package-amd64.cab"
    )
    
    >echo microsoft-windows-languagefeatures-speech-en-us-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-languagefeatures-speech-en-us-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-languagefeatures-speech-en-us-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-languagefeatures-speech-en-us-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-languagefeatures-speech-en-us-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-languagefeatures-speech-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-speech-en-us-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=24652
    
    >set _dst=D:\_tmp9
    
    >if exist "D:\_tmp9" (set _dst=D:\_tmp24652 )
    
    >mkdir D:\_tmp9 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-languagefeatures-speech-en-us-package-amd64.cab" D:\_tmp9\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp9" "temp\microsoft-windows-languagefeatures-speech-en-us-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-languagefeatures-speech-en-us-package-amd64" "microsoft-windows-languagefeatures-speech-en-us-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp9\ 
    
    >if exist "D:\_tmp9\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp9 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp9\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64.cab"
    )
    
    >echo microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64
    CAB->ESD: microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=25166
    
    >set _dst=D:\_tmp10
    
    >if exist "D:\_tmp10" (set _dst=D:\_tmp25166 )
    
    >mkdir D:\_tmp10 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64.cab" D:\_tmp10\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp10" "temp\microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64" "microsoft-windows-languagefeatures-texttospeech-en-us-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp10\ 
    
    >if exist "D:\_tmp10\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp10 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp10\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-mediaplayer-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-mediaplayer-package-amd64.cab"
    )
    
    >echo microsoft-windows-mediaplayer-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-mediaplayer-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-mediaplayer-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-mediaplayer-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-mediaplayer-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-mediaplayer-package-amd64
    CAB->ESD: microsoft-windows-mediaplayer-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=10534
    
    >set _dst=D:\_tmp11
    
    >if exist "D:\_tmp11" (set _dst=D:\_tmp10534 )
    
    >mkdir D:\_tmp11 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-mediaplayer-package-amd64.cab" D:\_tmp11\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp11" "temp\microsoft-windows-mediaplayer-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-mediaplayer-package-amd64" "microsoft-windows-mediaplayer-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp11\ 
    
    >if exist "D:\_tmp11\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp11 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp11\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-mspaint-fod-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-mspaint-fod-package-amd64.cab"
    )
    
    >echo microsoft-windows-mspaint-fod-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-mspaint-fod-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-mspaint-fod-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-mspaint-fod-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-mspaint-fod-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-mspaint-fod-package-amd64
    CAB->ESD: microsoft-windows-mspaint-fod-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=28089
    
    >set _dst=D:\_tmp12
    
    >if exist "D:\_tmp12" (set _dst=D:\_tmp28089 )
    
    >mkdir D:\_tmp12 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-mspaint-fod-package-amd64.cab" D:\_tmp12\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp12" "temp\microsoft-windows-mspaint-fod-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-mspaint-fod-package-amd64" "microsoft-windows-mspaint-fod-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp12\ 
    
    >if exist "D:\_tmp12\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp12 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp12\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-printing-pmcppc-fod-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-printing-pmcppc-fod-package-amd64.cab"
    )
    
    >echo microsoft-windows-printing-pmcppc-fod-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-printing-pmcppc-fod-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-printing-pmcppc-fod-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-printing-pmcppc-fod-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-printing-pmcppc-fod-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-printing-pmcppc-fod-package-amd64
    CAB->ESD: microsoft-windows-printing-pmcppc-fod-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=5534
    
    >set _dst=D:\_tmp13
    
    >if exist "D:\_tmp13" (set _dst=D:\_tmp5534 )
    
    >mkdir D:\_tmp13 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-printing-pmcppc-fod-package-amd64.cab" D:\_tmp13\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp13" "temp\microsoft-windows-printing-pmcppc-fod-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-printing-pmcppc-fod-package-amd64" "microsoft-windows-printing-pmcppc-fod-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp13\ 
    
    >if exist "D:\_tmp13\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp13 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp13\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-printing-wfs-fod-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-printing-wfs-fod-package-amd64.cab"
    )
    
    >echo microsoft-windows-printing-wfs-fod-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-printing-wfs-fod-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-printing-wfs-fod-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-printing-wfs-fod-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-printing-wfs-fod-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-printing-wfs-fod-package-amd64
    CAB->ESD: microsoft-windows-printing-wfs-fod-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=14918
    
    >set _dst=D:\_tmp14
    
    >if exist "D:\_tmp14" (set _dst=D:\_tmp14918 )
    
    >mkdir D:\_tmp14 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-printing-wfs-fod-package-amd64.cab" D:\_tmp14\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp14" "temp\microsoft-windows-printing-wfs-fod-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-printing-wfs-fod-package-amd64" "microsoft-windows-printing-wfs-fod-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp14\ 
    
    >if exist "D:\_tmp14\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp14 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp14\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-quickassist-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-quickassist-package-amd64.cab"
    )
    
    >echo microsoft-windows-quickassist-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-quickassist-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-quickassist-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-quickassist-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-quickassist-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-quickassist-package-amd64
    CAB->ESD: microsoft-windows-quickassist-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=16312
    
    >set _dst=D:\_tmp15
    
    >if exist "D:\_tmp15" (set _dst=D:\_tmp16312 )
    
    >mkdir D:\_tmp15 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-quickassist-package-amd64.cab" D:\_tmp15\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp15" "temp\microsoft-windows-quickassist-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-quickassist-package-amd64" "microsoft-windows-quickassist-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp15\ 
    
    >if exist "D:\_tmp15\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp15 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp15\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-stepsrecorder-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-stepsrecorder-package-amd64.cab"
    )
    
    >echo microsoft-windows-stepsrecorder-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-stepsrecorder-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-stepsrecorder-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-stepsrecorder-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-stepsrecorder-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-stepsrecorder-package-amd64
    CAB->ESD: microsoft-windows-stepsrecorder-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=15317
    
    >set _dst=D:\_tmp16
    
    >if exist "D:\_tmp16" (set _dst=D:\_tmp15317 )
    
    >mkdir D:\_tmp16 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-stepsrecorder-package-amd64.cab" D:\_tmp16\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp16" "temp\microsoft-windows-stepsrecorder-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-stepsrecorder-package-amd64" "microsoft-windows-stepsrecorder-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp16\ 
    
    >if exist "D:\_tmp16\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp16 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp16\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-tabletpcmath-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-tabletpcmath-package-amd64.cab"
    )
    
    >echo microsoft-windows-tabletpcmath-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-tabletpcmath-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-tabletpcmath-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-tabletpcmath-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-tabletpcmath-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-tabletpcmath-package-amd64
    CAB->ESD: microsoft-windows-tabletpcmath-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=11798
    
    >set _dst=D:\_tmp17
    
    >if exist "D:\_tmp17" (set _dst=D:\_tmp11798 )
    
    >mkdir D:\_tmp17 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-tabletpcmath-package-amd64.cab" D:\_tmp17\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp17" "temp\microsoft-windows-tabletpcmath-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-tabletpcmath-package-amd64" "microsoft-windows-tabletpcmath-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp17\ 
    
    >if exist "D:\_tmp17\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp17 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp17\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-userexperience-desktop-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-userexperience-desktop-package-amd64.cab"
    )
    
    >echo microsoft-windows-userexperience-desktop-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-userexperience-desktop-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-userexperience-desktop-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-userexperience-desktop-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-userexperience-desktop-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-userexperience-desktop-package-amd64
    CAB->ESD: microsoft-windows-userexperience-desktop-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=16311
    
    >set _dst=D:\_tmp18
    
    >if exist "D:\_tmp18" (set _dst=D:\_tmp16311 )
    
    >mkdir D:\_tmp18 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-userexperience-desktop-package-amd64.cab" D:\_tmp18\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp18" "temp\microsoft-windows-userexperience-desktop-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-userexperience-desktop-package-amd64" "microsoft-windows-userexperience-desktop-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp18\ 
    
    >if exist "D:\_tmp18\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp18 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp18\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\microsoft-windows-wordpad-fod-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "microsoft-windows-wordpad-fod-package-amd64.cab"
    )
    
    >echo microsoft-windows-wordpad-fod-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo microsoft-windows-wordpad-fod-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo microsoft-windows-wordpad-fod-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=microsoft-windows-wordpad-fod-package-amd64
    
    >if exist "!_work!\temp\microsoft-windows-wordpad-fod-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: microsoft-windows-wordpad-fod-package-amd64
    CAB->ESD: microsoft-windows-wordpad-fod-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=15641
    
    >set _dst=D:\_tmp19
    
    >if exist "D:\_tmp19" (set _dst=D:\_tmp15641 )
    
    >mkdir D:\_tmp19 
    
    >expand.exe -f:* "!UUP!\microsoft-windows-wordpad-fod-package-amd64.cab" D:\_tmp19\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp19" "temp\microsoft-windows-wordpad-fod-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "microsoft-windows-wordpad-fod-package-amd64" "microsoft-windows-wordpad-fod-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp19\ 
    
    >if exist "D:\_tmp19\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp19 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp19\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\openssh-client-package-amd64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "openssh-client-package-amd64.cab"
    )
    
    >echo openssh-client-package-amd64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo openssh-client-package-amd64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo openssh-client-package-amd64.cab  | find /i "Windows10.0-KB"    && exit /b
    
    >set pack=openssh-client-package-amd64
    
    >if exist "!_work!\temp\openssh-client-package-amd64.ESD" exit /b
    
    >echo CAB->ESD: openssh-client-package-amd64
    CAB->ESD: openssh-client-package-amd64
    
    >set /a _ref+=1
    
    >set /a _rnd=11223
    
    >set _dst=D:\_tmp20
    
    >if exist "D:\_tmp20" (set _dst=D:\_tmp11223 )
    
    >mkdir D:\_tmp20 
    
    >expand.exe -f:* "!UUP!\openssh-client-package-amd64.cab" D:\_tmp20\  1>nul 2>nul
    
    >"!_wimlib!" capture "D:\_tmp20" "temp\openssh-client-package-amd64.ESD" --compress=XPRESS --check --no-acls --norpfix "openssh-client-package-amd64" "openssh-client-package-amd64"  1>nul 2>nul
    
    >rmdir /s /q D:\_tmp20\ 
    
    >if exist "D:\_tmp20\" (
    mkdir D:\_del  1>nul 2>nul 
     robocopy D:\_del D:\_tmp20 /MIR  1>nul 2>nul 
     rmdir /s /q D:\_del\  1>nul 2>nul 
     rmdir /s /q D:\_tmp20\  1>nul 2>nul
    )
    
    >exit /b
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\windows10.0-kb4528630-x64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "windows10.0-kb4528630-x64.cab"
    )
    
    >echo windows10.0-kb4528630-x64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo windows10.0-kb4528630-x64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo windows10.0-kb4528630-x64.cab  | find /i "Windows10.0-KB"    && exit /b
    windows10.0-kb4528630-x64.cab
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\windows10.0-kb4528631-x64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "windows10.0-kb4528631-x64.cab"
    )
    
    >echo windows10.0-kb4528631-x64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo windows10.0-kb4528631-x64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo windows10.0-kb4528631-x64.cab  | find /i "Windows10.0-KB"    && exit /b
    windows10.0-kb4528631-x64.cab
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\windows10.0-kb4528632-x64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "windows10.0-kb4528632-x64.cab"
    )
    
    >echo windows10.0-kb4528632-x64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo windows10.0-kb4528632-x64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo windows10.0-kb4528632-x64.cab  | find /i "Windows10.0-KB"    && exit /b
    windows10.0-kb4528632-x64.cab
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\windows10.0-kb4528633-x64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "windows10.0-kb4528633-x64.cab"
    )
    
    >(
    del /f /q temp\update.mum  1>nul 2>nul 
     expand.exe -f:update.mum "!UUP!\windows10.0-kb4528634-x64.cab" .\temp  1>nul 2>nul 
     if exist "temp\update.mum" call :uups_cab "windows10.0-kb4528634-x64.cab"
    )
    
    >echo windows10.0-kb4528634-x64.cab  | find /i "RetailDemo"    && exit /b
    
    >echo windows10.0-kb4528634-x64.cab  | find /i "Holographic-Desktop-FOD"    && exit /b
    
    >echo windows10.0-kb4528634-x64.cab  | find /i "Windows10.0-KB"    && exit /b
    windows10.0-kb4528634-x64.cab
    
    >if 0 EQU 1 (for /F "delims=" %# in ('dir /b /a:d /o:-n "!UUP!\"') do call :uups_dir "%#" )
    
    >if exist "!UUP!\Metadata\*.xml.cab" copy /y "!UUP!\Metadata\*.xml.cab" "!UUP!\" 
    
    >exit /b
    
    >echo.
    
    
    >echo ============================================================
    ============================================================
    
    >echo Creating Setup Media Layout . . .
    Creating Setup Media Layout . . .
    
    >echo ============================================================
    ============================================================
    
    >echo.
    
    
    >if exist ISOFOLDER\ rmdir /s /q ISOFOLDER\
    
    >mkdir ISOFOLDER
    
    >"!_wimlib!" apply "!MetadataESD!" 1 ISOFOLDER\ --no-acls --no-attributes  1>nul 2>nul
    
    >set ERRORTEMP=0
    
    >if 0 NEQ 0 goto :E_Apply
    
    >if exist ISOFOLDER\MediaMeta.xml del /f /q ISOFOLDER\MediaMeta.xml 
    
    >rem rmdir /s /q ISOFOLDER\sources\uup\ 
    
    >if exist ISOFOLDER\sources\ei.cfg (
    if 1 EQU 1 del /f /q ISOFOLDER\sources\ei.cfg   
     if 0 GTR 1 del /f /q ISOFOLDER\sources\ei.cfg 
    )
    
    >for /F "tokens=5-10 delims=: " %G in ('bin\wimlib-imagex info "!MetadataESD!" 3 | find /i "Last Modification Time"') do (set mmm=%G  & set "isotime=%H/%L,%I:%J:%K" )
    
    >(set mmm=Oct  & set "isotime=26/2019,13:08:07" )
    
    >call :setdate Oct
    
    >if /I Oct == Jan set "isotime=01/26/2019,13:08:07"
    
    >if /I Oct == Feb set "isotime=02/26/2019,13:08:07"
    
    >if /I Oct == Mar set "isotime=03/26/2019,13:08:07"
    
    >if /I Oct == Apr set "isotime=04/26/2019,13:08:07"
    
    >if /I Oct == May set "isotime=05/26/2019,13:08:07"
    
    >if /I Oct == Jun set "isotime=06/26/2019,13:08:07"
    
    >if /I Oct == Jul set "isotime=07/26/2019,13:08:07"
    
    >if /I Oct == Aug set "isotime=08/26/2019,13:08:07"
    
    >if /I Oct == Sep set "isotime=09/26/2019,13:08:07"
    
    >if /I Oct == Oct set "isotime=10/26/2019,13:08:07"
    
    >if /I Oct == Nov set "isotime=11/10/26/2019,13:08:07"
    
    >if /I Oct == Dec set "isotime=12/10/26/2019,13:08:07"
    
    >exit /b
    
    >set _file=ISOFOLDER\sources\install.wim
    
    >set _rtrn=RetISO
    
    >goto :InstallWim
    
    >echo.
    
    
    >echo ============================================================
    ============================================================
    
    >echo Creating install.wim . . .
    Creating install.wim . . .
    
    >echo ============================================================
    ============================================================
    
    >echo.
    
    
    >if exist "temp\*.ESD" (set _rrr=--ref="temp\*.esd" )  else (set "_rrr=" )
    
    >if install.wim == install.wim set _rrr=--ref="temp\*.esd" --compress=LZX
    
    >"!_wimlib!" export "!MetadataESD!" 3 ISOFOLDER\sources\install.wim --ref="!UUP!\*.esd" --ref="temp\*.esd" --compress=LZX  1>nul
    
    >set ERRORTEMP=0
    
    >if 0 NEQ 0 goto :E_Export
    
    >if 0 EQU 1 "!_wimlib!" info ISOFOLDER\sources\install.wim 1 "Windows 10 Home" "Windows 10 Home" --image-property DISPLAYNAME="Windows 10 Home" --image-property DISPLAYDESCRIPTION="Windows 10 Home" 
    
    >set _img=1
    
    >if 0 GTR 1 for /L %i in (2 1 0) do (for /L %# in (1 1 4) do if !_index%i! EQU %# (
    "!_wimlib!" export "!UUP!\!uups_esd%#!" 3 ISOFOLDER\sources\install.wim --ref="!UUP!\*.esd" --ref="temp\*.esd" --compress=LZX  1>nul 
     call set ERRORTEMP=!ERRORLEVEL! 
     if !ERRORTEMP! NEQ 0 goto :E_Export 
     set /a _img+=1 
     if 0 EQU 1 "!_wimlib!" info ISOFOLDER\sources\install.wim !_img! "!_os%#!" "!_os%#!" --image-property DISPLAYNAME="!_os%#!" --image-property DISPLAYDESCRIPTION="!_os%#!" 
    ) )
    
    >if 1 EQU 1 for /L %# in (2 1 4) do (
    "!_wimlib!" export "!UUP!\!uups_esd%#!" 3 ISOFOLDER\sources\install.wim --ref="!UUP!\*.esd" --ref="temp\*.esd" --compress=LZX  1>nul 
     call set ERRORTEMP=!ERRORLEVEL! 
     if !ERRORTEMP! NEQ 0 goto :E_Export 
     if 0 EQU 1 "!_wimlib!" info ISOFOLDER\sources\install.wim %# "!_os%#!" "!_os%#!" --image-property DISPLAYNAME="!_os%#!" --image-property DISPLAYDESCRIPTION="!_os%#!" 
    )
    
    >(
    "!_wimlib!" export "!UUP!\!uups_esd2!" 3 ISOFOLDER\sources\install.wim --ref="!UUP!\*.esd" --ref="temp\*.esd" --compress=LZX  1>nul 
     call set ERRORTEMP=!ERRORLEVEL! 
     if !ERRORTEMP! NEQ 0 goto :E_Export 
     if 0 EQU 1 "!_wimlib!" info ISOFOLDER\sources\install.wim 2 "!_os2!" "!_os2!" --image-property DISPLAYNAME="!_os2!" --image-property DISPLAYDESCRIPTION="!_os2!" 
    )
    
    >(
    "!_wimlib!" export "!UUP!\!uups_esd3!" 3 ISOFOLDER\sources\install.wim --ref="!UUP!\*.esd" --ref="temp\*.esd" --compress=LZX  1>nul 
     call set ERRORTEMP=!ERRORLEVEL! 
     if !ERRORTEMP! NEQ 0 goto :E_Export 
     if 0 EQU 1 "!_wimlib!" info ISOFOLDER\sources\install.wim 3 "!_os3!" "!_os3!" --image-property DISPLAYNAME="!_os3!" --image-property DISPLAYDESCRIPTION="!_os3!" 
    )
    
    >(
    "!_wimlib!" export "!UUP!\!uups_esd4!" 3 ISOFOLDER\sources\install.wim --ref="!UUP!\*.esd" --ref="temp\*.esd" --compress=LZX  1>nul 
     call set ERRORTEMP=!ERRORLEVEL! 
     if !ERRORTEMP! NEQ 0 goto :E_Export 
     if 0 EQU 1 "!_wimlib!" info ISOFOLDER\sources\install.wim 4 "!_os4!" "!_os4!" --image-property DISPLAYNAME="!_os4!" --image-property DISPLAYDESCRIPTION="!_os4!" 
    )
    
    >if 1 EQU 1 if exist "!UUP!\*Windows10*KB*.cab" (
    if exist "!_cabdir!" rmdir /s /q "!_cabdir!" 
     DEL /F /Q C:\WINDOWS\Logs\DISM\*   
     if ISOFOLDER\sources\install.wim == install.wim (call :uups_update "!_work!\install.wim" )  else (call :uups_update ) 
     "!_wimlib!" optimize ISOFOLDER\sources\install.wim  1>nul
    )
    
    >if 1 EQU 0 exit /b
    
    >set directcab=0
    
    >set wim=0
    
    >set dvd=0
    
    >set _tgt=
    
    >set _tgt=
    
    >if defined _tgt (
    set wim=1 
     set "target="
    )  else (
    set dvd=1 
     set "target=!_work!\ISOFOLDER"
    )
    
    >echo.
    
    
    >echo ============================================================
    ============================================================
    
    >if 1 EQU 1 (
    for /F "tokens=3 delims=: " %# in ('bin\wimlib-imagex info "!target!\sources\install.wim" | findstr /c:"Image Count"') do set imgcount=%# 
     echo Updating install.wim / !imgcount! image(s) . . .
    )
    
    >set imgcount=4
    Updating install.wim / 4 image(s) . . .
    
    >if 0 EQU 1 (
    for /F "tokens=3 delims=: " %# in ('bin\wimlib-imagex info "!target!" | findstr /c:"Image Count"') do set imgcount=%# 
     echo Updating  / !imgcount! image(s) . . .
    )
    
    >echo ============================================================
    ============================================================
    
    >echo.
    
    
    >call :extract
    
    >if not exist "!_cabdir!" mkdir "!_cabdir!"
    
    >set _cab=0
    
    >pushd "!UUP!"
    
    >for /F "delims=" %# in ('dir /b "*Windows10*KB*.cab"') do (call set /a _cab+=1 )
    
    >(call set /a _cab+=1 )
    
    >(call set /a _cab+=1 )
    
    >(call set /a _cab+=1 )
    
    >(call set /a _cab+=1 )
    
    >(call set /a _cab+=1 )
    
    >set count=0  & set isoupdate=
    
    >for /F "delims=" %# in ('dir /b "*Windows10*KB*.cab"') do (set "package=%#"  & set "dest=!_cabdir!\%~n#"  & call :cab2 )
    
    >(set "package=windows10.0-kb4528630-x64.cab"  & set "dest=!_cabdir!\windows10.0-kb4528630-x64"  & call :cab2 )
    
    >if defined windows10.0-kb4528630-x64.cab goto :eof
    
    >if exist "!dest!" rmdir /s /q "!dest!"
    
    >mkdir "!dest!"
    
    >expand.exe -f:*.psf.cix.xml "windows10.0-kb4528630-x64.cab" "!dest!"  1>nul 2>nul
    
    >if exist "!dest!\*.psf.cix.xml" goto :eof
    
    >set /a count+=1
    
    >rem expand.exe -f:update.mum "windows10.0-kb4528630-x64.cab" "!dest!" 1>nul 2>nul
    
    >"!_work!\bin\7z.exe" e "windows10.0-kb4528630-x64.cab" -o"!dest!" update.mum  1>nul 2>nul
    
    >if not exist "!dest!\update.mum" (
    if not defined windows10.0-kb4528630-x64.cab echo 1/5: windows10.0-kb4528630-x64.cab (DU) 
     set isoupdate=!isoupdate! "!package!" 
     set windows10.0-kb4528630-x64.cab=1 
     goto :eof
    )
    
    >if not defined isodate findstr /i /m "Package_for_RollupFix" "!dest!\update.mum"    && (
    copy /y "!dest!\update.mum" C:\WINDOWS\temp\   
     set "mumfile=C:\WINDOWS\temp\update.mum" 
     for /F "tokens=2 delims==" %# in ('wmic datafile where "name='!mumfile:\=\\!'" get LastModified /value') do set "mumdate=%#" 
     del /f /q C:\WINDOWS\temp\*.mum 
     set "isodate=!mumdate:~2,2!!mumdate:~4,2!!mumdate:~6,2!-!mumdate:~8,4!" 
     set "isotime=!mumdate:~4,2!/!mumdate:~6,2!/!mumdate:~0,4!,!mumdate:~8,2!:!mumdate:~10,2!:!mumdate:~12,2!"
    )
    D:\W10UItemp\windows10.0-kb4528630-x64\update.mum
            1 file(s) copied.
    
    >set "mumdate=20191030190604.000000+660
    "
    
    >echo 1/5: windows10.0-kb4528630-x64.cab
    1/5: windows10.0-kb4528630-x64.cab
    
    >set windows10.0-kb4528630-x64.cab=1
    
    >expand.exe -f:* "windows10.0-kb4528630-x64.cab" "!dest!"   1>nul 2>nul  || (set directcab=!directcab! "!package!"  & goto :eof )
    
    >"!_work!\bin\7z.exe" e "windows10.0-kb4528630-x64.cab" -o"!dest!" update.mum -aoa  1>nul 2>nul
    
    >if not exist "!dest!\*cablist.ini" goto :eof
    
    >(set "package=windows10.0-kb4528631-x64.cab"  & set "dest=!_cabdir!\windows10.0-kb4528631-x64"  & call :cab2 )
    
    >if defined windows10.0-kb4528631-x64.cab goto :eof
    
    >if exist "!dest!" rmdir /s /q "!dest!"
    
    >mkdir "!dest!"
    
    >expand.exe -f:*.psf.cix.xml "windows10.0-kb4528631-x64.cab" "!dest!"  1>nul 2>nul
    
    >if exist "!dest!\*.psf.cix.xml" goto :eof
    
    >set /a count+=1
    
    >rem expand.exe -f:update.mum "windows10.0-kb4528631-x64.cab" "!dest!" 1>nul 2>nul
    
    >"!_work!\bin\7z.exe" e "windows10.0-kb4528631-x64.cab" -o"!dest!" update.mum  1>nul 2>nul
    
    >if not exist "!dest!\update.mum" (
    if not defined windows10.0-kb4528631-x64.cab echo 2/5: windows10.0-kb4528631-x64.cab (DU) 
     set isoupdate=!isoupdate! "!package!" 
     set windows10.0-kb4528631-x64.cab=1 
     goto :eof
    )
    
    >if not defined isodate findstr /i /m "Package_for_RollupFix" "!dest!\update.mum"    && (
    copy /y "!dest!\update.mum" C:\WINDOWS\temp\   
     set "mumfile=C:\WINDOWS\temp\update.mum" 
     for /F "tokens=2 delims==" %# in ('wmic datafile where "name='!mumfile:\=\\!'" get LastModified /value') do set "mumdate=%#" 
     del /f /q C:\WINDOWS\temp\*.mum 
     set "isodate=!mumdate:~2,2!!mumdate:~4,2!!mumdate:~6,2!-!mumdate:~8,4!" 
     set "isotime=!mumdate:~4,2!/!mumdate:~6,2!/!mumdate:~0,4!,!mumdate:~8,2!:!mumdate:~10,2!:!mumdate:~12,2!"
    )
    
    >echo 2/5: windows10.0-kb4528631-x64.cab
    2/5: windows10.0-kb4528631-x64.cab
    
    >set windows10.0-kb4528631-x64.cab=1
    
    >expand.exe -f:* "windows10.0-kb4528631-x64.cab" "!dest!"   1>nul 2>nul  || (set directcab=!directcab! "!package!"  & goto :eof )
    
    >"!_work!\bin\7z.exe" e "windows10.0-kb4528631-x64.cab" -o"!dest!" update.mum -aoa  1>nul 2>nul
    
    >if not exist "!dest!\*cablist.ini" goto :eof
    
    >(set "package=windows10.0-kb4528632-x64.cab"  & set "dest=!_cabdir!\windows10.0-kb4528632-x64"  & call :cab2 )
    
    >if defined windows10.0-kb4528632-x64.cab goto :eof
    
    >if exist "!dest!" rmdir /s /q "!dest!"
    
    >mkdir "!dest!"
    
    >expand.exe -f:*.psf.cix.xml "windows10.0-kb4528632-x64.cab" "!dest!"  1>nul 2>nul
    
    >if exist "!dest!\*.psf.cix.xml" goto :eof
    
    >set /a count+=1
    
    >rem expand.exe -f:update.mum "windows10.0-kb4528632-x64.cab" "!dest!" 1>nul 2>nul
    
    >"!_work!\bin\7z.exe" e "windows10.0-kb4528632-x64.cab" -o"!dest!" update.mum  1>nul 2>nul
    
    >if not exist "!dest!\update.mum" (
    if not defined windows10.0-kb4528632-x64.cab echo 3/5: windows10.0-kb4528632-x64.cab (DU) 
     set isoupdate=!isoupdate! "!package!" 
     set windows10.0-kb4528632-x64.cab=1 
     goto :eof
    )
    
    >if not defined isodate findstr /i /m "Package_for_RollupFix" "!dest!\update.mum"    && (
    copy /y "!dest!\update.mum" C:\WINDOWS\temp\   
     set "mumfile=C:\WINDOWS\temp\update.mum" 
     for /F "tokens=2 delims==" %# in ('wmic datafile where "name='!mumfile:\=\\!'" get LastModified /value') do set "mumdate=%#" 
     del /f /q C:\WINDOWS\temp\*.mum 
     set "isodate=!mumdate:~2,2!!mumdate:~4,2!!mumdate:~6,2!-!mumdate:~8,4!" 
     set "isotime=!mumdate:~4,2!/!mumdate:~6,2!/!mumdate:~0,4!,!mumdate:~8,2!:!mumdate:~10,2!:!mumdate:~12,2!"
    )
    
    >echo 3/5: windows10.0-kb4528632-x64.cab
    3/5: windows10.0-kb4528632-x64.cab
    
    >set windows10.0-kb4528632-x64.cab=1
    
    >expand.exe -f:* "windows10.0-kb4528632-x64.cab" "!dest!"   1>nul 2>nul  || (set directcab=!directcab! "!package!"  & goto :eof )
    
    >"!_work!\bin\7z.exe" e "windows10.0-kb4528632-x64.cab" -o"!dest!" update.mum -aoa  1>nul 2>nul
    
    >if not exist "!dest!\*cablist.ini" goto :eof
    
    >(set "package=windows10.0-kb4528633-x64.cab"  & set "dest=!_cabdir!\windows10.0-kb4528633-x64"  & call :cab2 )
    
    >if defined windows10.0-kb4528633-x64.cab goto :eof
    
    >if exist "!dest!" rmdir /s /q "!dest!"
    
    >mkdir "!dest!"
    
    >expand.exe -f:*.psf.cix.xml "windows10.0-kb4528633-x64.cab" "!dest!"  1>nul 2>nul
    
    >if exist "!dest!\*.psf.cix.xml" goto :eof
    
    >set /a count+=1
    
    >rem expand.exe -f:update.mum "windows10.0-kb4528633-x64.cab" "!dest!" 1>nul 2>nul
    
    >"!_work!\bin\7z.exe" e "windows10.0-kb4528633-x64.cab" -o"!dest!" update.mum  1>nul 2>nul
    
    >if not exist "!dest!\update.mum" (
    if not defined windows10.0-kb4528633-x64.cab echo 4/5: windows10.0-kb4528633-x64.cab (DU) 
     set isoupdate=!isoupdate! "!package!" 
     set windows10.0-kb4528633-x64.cab=1 
     goto :eof
    )
    4/5: windows10.0-kb4528633-x64.cab (DU)
    
    >(set "package=windows10.0-kb4528634-x64.cab"  & set "dest=!_cabdir!\windows10.0-kb4528634-x64"  & call :cab2 )
    
    >if defined windows10.0-kb4528634-x64.cab goto :eof
    
    >if exist "!dest!" rmdir /s /q "!dest!"
    
    >mkdir "!dest!"
    
    >expand.exe -f:*.psf.cix.xml "windows10.0-kb4528634-x64.cab" "!dest!"  1>nul 2>nul
    
    >if exist "!dest!\*.psf.cix.xml" goto :eof
    
    >set /a count+=1
    
    >rem expand.exe -f:update.mum "windows10.0-kb4528634-x64.cab" "!dest!" 1>nul 2>nul
    
    >"!_work!\bin\7z.exe" e "windows10.0-kb4528634-x64.cab" -o"!dest!" update.mum  1>nul 2>nul
    
    >if not exist "!dest!\update.mum" (
    if not defined windows10.0-kb4528634-x64.cab echo 5/5: windows10.0-kb4528634-x64.cab (DU) 
     set isoupdate=!isoupdate! "!package!" 
     set windows10.0-kb4528634-x64.cab=1 
     goto :eof
    )
    
    >if not defined isodate findstr /i /m "Package_for_RollupFix" "!dest!\update.mum"    && (
    copy /y "!dest!\update.mum" C:\WINDOWS\temp\   
     set "mumfile=C:\WINDOWS\temp\update.mum" 
     for /F "tokens=2 delims==" %# in ('wmic datafile where "name='!mumfile:\=\\!'" get LastModified /value') do set "mumdate=%#" 
     del /f /q C:\WINDOWS\temp\*.mum 
     set "isodate=!mumdate:~2,2!!mumdate:~4,2!!mumdate:~6,2!-!mumdate:~8,4!" 
     set "isotime=!mumdate:~4,2!/!mumdate:~6,2!/!mumdate:~0,4!,!mumdate:~8,2!:!mumdate:~10,2!:!mumdate:~12,2!"
    )
    
    >echo 5/5: windows10.0-kb4528634-x64.cab
    5/5: windows10.0-kb4528634-x64.cab
    
    >set windows10.0-kb4528634-x64.cab=1
    
    >expand.exe -f:* "windows10.0-kb4528634-x64.cab" "!dest!"   1>nul 2>nul  || (set directcab=!directcab! "!package!"  & goto :eof )
    
    >"!_work!\bin\7z.exe" e "windows10.0-kb4528634-x64.cab" -o"!dest!" update.mum -aoa  1>nul 2>nul
    
    >if not exist "!dest!\*cablist.ini" goto :eof
    
    >goto :eof
    
    >if 0 EQU 1 (call :mount "!target!" )
    
    >if 1 EQU 1 (call :mount "!target!\sources\install.wim" )
    
    >if exist "D:\MountUUP" rmdir /s /q "D:\MountUUP"
    
    >if not exist "D:\MountUUP" mkdir "D:\MountUUP"
    
    >set "_wim=D:\uup-converter-wimlib-40\ISOFOLDER\sources\install.wim"
    
    >set eHome=0
    
    >set eHomN=0
    
    >set eProf=0
    
    >set eProN=0
    
    >set uProf=0
    
    >set uProN=0
    
    >set _upgr=0
    
    >if /I not install.wim == winre.wim if 19013 GEQ 17063 if 4 GTR 1 set _upgr=1
    
    >if 1 EQU 1 (
    "!_imagex!" /info "!_wim!" 1>infoall.txt 2>&1 
     find /i "Core</EDITIONID>" infoall.txt    && (set eHome=1 ) 
     find /i "CoreN</EDITIONID>" infoall.txt    && (set eHomN=1 ) 
     find /i "Professional</EDITIONID>" infoall.txt    && (set eProf=1 ) 
     find /i "ProfessionalN</EDITIONID>" infoall.txt    && (set eProN=1 ) 
     del /f /q infoall.txt 
    )
    
    ---------- INFOALL.TXT
          <EDITIONID>Core</EDITIONID>
    
    ---------- INFOALL.TXT
          <EDITIONID>CoreN</EDITIONID>
    
    ---------- INFOALL.TXT
          <EDITIONID>Professional</EDITIONID>
    
    ---------- INFOALL.TXT
          <EDITIONID>ProfessionalN</EDITIONID>
    
    >if 1 EQU 1 if 1 EQU 1 set uProf=1
    
    >if 1 EQU 1 if 1 EQU 1 set uProN=1
    
    >if 1 EQU 1 for /L %# in (1 1 4) do (
    if not defined iHome ("!_imagex!" /info "!_wim!" %#   | find /i "Core</EDITIONID>"    && set iHome=%# ) 
     if not defined iProf ("!_imagex!" /info "!_wim!" %#   | find /i "Professional</EDITIONID>"    && set iProf=%# )
    )
    
    >(
    if not defined iHome ("!_imagex!" /info "!_wim!" 1   | find /i "Core</EDITIONID>"    && set iHome=1 ) 
     if not defined iProf ("!_imagex!" /info "!_wim!" 1   | find /i "Professional</EDITIONID>"    && set iProf=1 )
    )
        <EDITIONID>Core</EDITIONID>
    
    >(
    if not defined iHome ("!_imagex!" /info "!_wim!" 2   | find /i "Core</EDITIONID>"    && set iHome=2 ) 
     if not defined iProf ("!_imagex!" /info "!_wim!" 2   | find /i "Professional</EDITIONID>"    && set iProf=2 )
    )
        <EDITIONID>Professional</EDITIONID>
    
    >(
    if not defined iHome ("!_imagex!" /info "!_wim!" 3   | find /i "Core</EDITIONID>"    && set iHome=3 ) 
     if not defined iProf ("!_imagex!" /info "!_wim!" 3   | find /i "Professional</EDITIONID>"    && set iProf=3 )
    )
    
    >(
    if not defined iHome ("!_imagex!" /info "!_wim!" 4   | find /i "Core</EDITIONID>"    && set iHome=4 ) 
     if not defined iProf ("!_imagex!" /info "!_wim!" 4   | find /i "Professional</EDITIONID>"    && set iProf=4 )
    )
    
    >if 1 EQU 1 (
    set /a imgcount-=1 
     !_dism! /Delete-Image /ImageFile:"!_wim!" /Index:2 
    )
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    The operation completed successfully.
    
    >if 1 EQU 1 for /L %# in (1 1 3) do (
    if not defined iHomN ("!_imagex!" /info "!_wim!" %#   | find /i "CoreN</EDITIONID>"    && set iHomN=%# ) 
     if not defined iProN ("!_imagex!" /info "!_wim!" %#   | find /i "ProfessionalN</EDITIONID>"    && set iProN=%# )
    )
    
    >(
    if not defined iHomN ("!_imagex!" /info "!_wim!" 1   | find /i "CoreN</EDITIONID>"    && set iHomN=1 ) 
     if not defined iProN ("!_imagex!" /info "!_wim!" 1   | find /i "ProfessionalN</EDITIONID>"    && set iProN=1 )
    )
    
    >(
    if not defined iHomN ("!_imagex!" /info "!_wim!" 2   | find /i "CoreN</EDITIONID>"    && set iHomN=2 ) 
     if not defined iProN ("!_imagex!" /info "!_wim!" 2   | find /i "ProfessionalN</EDITIONID>"    && set iProN=2 )
    )
        <EDITIONID>CoreN</EDITIONID>
    
    >(
    if not defined iHomN ("!_imagex!" /info "!_wim!" 3   | find /i "CoreN</EDITIONID>"    && set iHomN=3 ) 
     if not defined iProN ("!_imagex!" /info "!_wim!" 3   | find /i "ProfessionalN</EDITIONID>"    && set iProN=3 )
    )
        <EDITIONID>ProfessionalN</EDITIONID>
    
    >if 1 EQU 1 (
    set /a imgcount-=1 
     !_dism! /Delete-Image /ImageFile:"!_wim!" /Index:3 
    )
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    The operation completed successfully.
    
    >set /a _index=2
    
    >for /L %# in (1 1 2) do (
    !_dism! /ScratchDir:"!_cabdir!" /Mount-Wim /Wimfile:"D:\uup-converter-wimlib-40\ISOFOLDER\sources\install.wim" /Index:%# /MountDir:"D:\MountUUP"  1>nul 
     if !errorlevel! NEQ 0 (
    !_dism! /Unmount-Wim /MountDir:"D:\MountUUP" /Discard  1>nul 
     !_dism! /Cleanup-Wim   
     goto :eof
    ) 
     if 18363 LSS 15063 if /I x64 == arm64 (
    set ksub=SOFTWIM 
     reg.exe load HKLM\!ksub! "D:\MountUUP\Windows\System32\Config\SOFTWARE"   
     reg.exe add HKLM\!ksub!\Microsoft\Windows\CurrentVersion\SideBySide /v AllowImproperDeploymentProcessorArchitecture /t REG_DWORD /d 1 /f   
     reg.exe unload HKLM\!ksub! 
    ) 
     if 18363 LSS 9600 (
    set ksub=SOFTWIM 
     reg.exe load HKLM\!ksub! "D:\MountUUP\Windows\System32\Config\SOFTWARE"   
     reg.exe add HKLM\!ksub!\Microsoft\Windows\CurrentVersion\SideBySide /v AllowImproperDeploymentProcessorArchitecture /t REG_DWORD /d 1 /f   
     reg.exe unload HKLM\!ksub! 
    ) 
     call :update 
     if 0 EQU 1 if 1 EQU 1 call :enablenet35 
     if %# EQU 1 if 1 EQU 1 (
    if /I x64 == x86 (set efifile=bootia32.efi )  else if /I x64 == x64 (set efifile=bootx64.efi )  else (set efifile=bootaa64.efi ) 
     for %i in (efisys.bin efisys_noprompt.bin) do if exist "D:\MountUUP\Windows\Boot\DVD\EFI\en-US\%i" (xcopy /CIDRY "D:\MountUUP\Windows\Boot\DVD\EFI\en-US\%i" "!target!\efi\microsoft\boot\"  ) 
     if /I not x64 == arm64 (
    xcopy /CIDRY "D:\MountUUP\Windows\Boot\PCAT\bootmgr" "!target!\"   
     xcopy /CIDRY "D:\MountUUP\Windows\Boot\PCAT\memtest.exe" "!target!\boot\"   
     xcopy /CIDRY "D:\MountUUP\Windows\Boot\EFI\memtest.efi" "!target!\efi\microsoft\boot\" 
    ) 
     xcopy /CIDRY "D:\MountUUP\Windows\Boot\EFI\bootmgfw.efi" "!target!\efi\boot\!efifile!"   
     xcopy /CIDRY "D:\MountUUP\Windows\Boot\EFI\bootmgr.efi" "!target!\" 
    ) 
     if %# EQU 1 if 1 EQU 1 if not exist "D:\MountUUP\Windows\servicing\Packages\*WinPE-LanguagePack*.mum" if exist "D:\MountUUP\Windows\servicing\Packages\Package_for_RollupFix*.mum" (
    for /F "tokens=6,7 delims=_." %A in ('dir /b /a:-d /od "D:\MountUUP\Windows\WinSxS\Manifests\amd64_microsoft-windows-coreos-revision*.manifest"') do set isover=%A.%B  & set isomajor=%A  & set isominor=%B 
     set "isokey=Microsoft\Windows NT\CurrentVersion\Update\TargetingInfo\Installed" 
     for /F %i in ('""!_work!\bin\offlinereg.exe" "D:\MountUUP\Windows\system32\config\SOFTWARE" "!isokey!" enumkeys  ^| find /i "Client.OS""') do if not errorlevel 1 (
    for /F "tokens=3 delims==:" %A in ('""!_work!\bin\offlinereg.exe" "D:\MountUUP\Windows\system32\config\SOFTWARE" "!isokey!\%i" getvalue Branch "') do set "isobranch=%~A" 
     for /F "tokens=5,6 delims==:." %A in ('""!_work!\bin\offlinereg.exe" "D:\MountUUP\Windows\system32\config\SOFTWARE" "!isokey!\%i" getvalue Version "') do if %A GTR !isomajor! (
    set "isover=%~A.%B 
     set isomajor=%~A 
     set "isominor=%B
    )
    )
    ) 
     !_dism! /ScratchDir:"!_cabdir!" /Unmount-Wim /MountDir:"D:\MountUUP" /Commit  1>nul
    )
    
    >(
    !_dism! /ScratchDir:"!_cabdir!" /Mount-Wim /Wimfile:"D:\uup-converter-wimlib-40\ISOFOLDER\sources\install.wim" /Index:1 /MountDir:"D:\MountUUP"  1>nul 
     if !errorlevel! NEQ 0 (
    !_dism! /Unmount-Wim /MountDir:"D:\MountUUP" /Discard  1>nul 
     !_dism! /Cleanup-Wim   
     goto :eof
    ) 
     if 18363 LSS 15063 if /I x64 == arm64 (
    set ksub=SOFTWIM 
     reg.exe load HKLM\!ksub! "D:\MountUUP\Windows\System32\Config\SOFTWARE"   
     reg.exe add HKLM\!ksub!\Microsoft\Windows\CurrentVersion\SideBySide /v AllowImproperDeploymentProcessorArchitecture /t REG_DWORD /d 1 /f   
     reg.exe unload HKLM\!ksub! 
    ) 
     if 18363 LSS 9600 (
    set ksub=SOFTWIM 
     reg.exe load HKLM\!ksub! "D:\MountUUP\Windows\System32\Config\SOFTWARE"   
     reg.exe add HKLM\!ksub!\Microsoft\Windows\CurrentVersion\SideBySide /v AllowImproperDeploymentProcessorArchitecture /t REG_DWORD /d 1 /f   
     reg.exe unload HKLM\!ksub! 
    ) 
     call :update 
     if 0 EQU 1 if 1 EQU 1 call :enablenet35 
     if 1 EQU 1 if 1 EQU 1 (
    if /I x64 == x86 (set efifile=bootia32.efi )  else if /I x64 == x64 (set efifile=bootx64.efi )  else (set efifile=bootaa64.efi ) 
     for %i in (efisys.bin efisys_noprompt.bin) do if exist "D:\MountUUP\Windows\Boot\DVD\EFI\en-US\%i" (xcopy /CIDRY "D:\MountUUP\Windows\Boot\DVD\EFI\en-US\%i" "!target!\efi\microsoft\boot\"  ) 
     if /I not x64 == arm64 (
    xcopy /CIDRY "D:\MountUUP\Windows\Boot\PCAT\bootmgr" "!target!\"   
     xcopy /CIDRY "D:\MountUUP\Windows\Boot\PCAT\memtest.exe" "!target!\boot\"   
     xcopy /CIDRY "D:\MountUUP\Windows\Boot\EFI\memtest.efi" "!target!\efi\microsoft\boot\" 
    ) 
     xcopy /CIDRY "D:\MountUUP\Windows\Boot\EFI\bootmgfw.efi" "!target!\efi\boot\!efifile!"   
     xcopy /CIDRY "D:\MountUUP\Windows\Boot\EFI\bootmgr.efi" "!target!\" 
    ) 
     if 1 EQU 1 if 1 EQU 1 if not exist "D:\MountUUP\Windows\servicing\Packages\*WinPE-LanguagePack*.mum" if exist "D:\MountUUP\Windows\servicing\Packages\Package_for_RollupFix*.mum" (
    for /F "tokens=6,7 delims=_." %A in ('dir /b /a:-d /od "D:\MountUUP\Windows\WinSxS\Manifests\amd64_microsoft-windows-coreos-revision*.manifest"') do set isover=%A.%B  & set isomajor=%A  & set isominor=%B 
     set "isokey=Microsoft\Windows NT\CurrentVersion\Update\TargetingInfo\Installed" 
     for /F %i in ('""!_work!\bin\offlinereg.exe" "D:\MountUUP\Windows\system32\config\SOFTWARE" "!isokey!" enumkeys  ^| find /i "Client.OS""') do if not errorlevel 1 (
    for /F "tokens=3 delims==:" %A in ('""!_work!\bin\offlinereg.exe" "D:\MountUUP\Windows\system32\config\SOFTWARE" "!isokey!\%i" getvalue Branch "') do set "isobranch=%~A" 
     for /F "tokens=5,6 delims==:." %A in ('""!_work!\bin\offlinereg.exe" "D:\MountUUP\Windows\system32\config\SOFTWARE" "!isokey!\%i" getvalue Version "') do if %A GTR !isomajor! (
    set "isover=%~A.%B 
     set isomajor=%~A 
     set "isominor=%B
    )
    )
    ) 
     !_dism! /ScratchDir:"!_cabdir!" /Unmount-Wim /MountDir:"D:\MountUUP" /Commit  1>nul
    )
    
    >set "mumtarget=D:\MountUUP"
    
    >set dismtarget=/image:"D:\MountUUP"
    
    >set servicingstack=
    
    >set cumulative=
    
    >set netroll=
    
    >set ldr=
    
    >for /F "delims=" %# in ('dir /b "*Windows10*KB*.cab"') do (set "package=%#"  & set "dest=!_cabdir!\%~n#"  & call :mum )
    
    >(set "package=windows10.0-kb4528630-x64.cab"  & set "dest=!_cabdir!\windows10.0-kb4528630-x64"  & call :mum )
    
    >if not exist "!dest!\update.mum" goto :eof
    
    >if exist "!dest!\*.psf.cix.xml" goto :eof
    if was unexpected at this time.
    
    >if /i not ==winre.wim if 19013 geq 17063 if 2 gtr 1 set _upgr=1
    
     
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,305
    450
    #2555 Enthousiast, Nov 5, 2019
    Last edited: Nov 5, 2019
    v40 testversion i got from @abbodi1406 to test:
    Code:
    ============================================================
    Checking UUP Info . . .
    ============================================================
    
    ============================================================
    Configured Options . . .
    ============================================================
    
    AutoStart 1
    AddUpdates 1
    
    ============================================================
    Preparing Reference ESDs . . .
    ============================================================
    
    CAB->ESD: microsoft-onecore-applicationmodel-sync-desktop-fod-package-x86
    CAB->ESD: microsoft-onecore-directx-database-fod-package-x86
    CAB->ESD: microsoft-windows-hello-face-migration-package-x86
    CAB->ESD: microsoft-windows-hello-face-package-x86
    CAB->ESD: microsoft-windows-internetexplorer-optional-package-x86
    CAB->ESD: microsoft-windows-languagefeatures-basic-en-us-package-x86
    CAB->ESD: microsoft-windows-languagefeatures-handwriting-en-us-package-x86
    CAB->ESD: microsoft-windows-languagefeatures-ocr-en-us-package-x86
    CAB->ESD: microsoft-windows-languagefeatures-speech-en-us-package-x86
    CAB->ESD: microsoft-windows-languagefeatures-texttospeech-en-us-package-x86
    CAB->ESD: microsoft-windows-mediaplayer-package-x86
    CAB->ESD: microsoft-windows-mspaint-fod-package-x86
    CAB->ESD: microsoft-windows-printing-pmcppc-fod-package-x86
    CAB->ESD: microsoft-windows-printing-wfs-fod-package-x86
    CAB->ESD: microsoft-windows-quickassist-package-x86
    CAB->ESD: microsoft-windows-stepsrecorder-package-x86
    CAB->ESD: microsoft-windows-tabletpcmath-package-x86
    CAB->ESD: microsoft-windows-userexperience-desktop-package-x86
    CAB->ESD: microsoft-windows-wordpad-fod-package-x86
    CAB->ESD: openssh-client-package-x86
    
    ============================================================
    Creating Setup Media Layout . . .
    ============================================================
    
    
    ============================================================
    Creating install.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 4787 MiB of 4787 MiB (100%) done
    Using LZX compression with 8 threads
    Archiving file data: 154 MiB of 154 MiB (100%) done
    Using LZX compression with 8 threads
    Archiving file data: 149 MiB of 149 MiB (100%) done
    Using LZX compression with 8 threads
    Archiving file data: 137 MiB of 137 MiB (100%) done
    
    ============================================================
    Updating install.wim / 4 image(s) . . .
    ============================================================
    
    1/5: windows10.0-kb4528630-x86.cab
    2/5: windows10.0-kb4528631-x86.cab
    3/5: windows10.0-kb4528632-x86.cab
    4/5: windows10.0-kb4528633-x86.cab (DU)
    5/5: windows10.0-kb4528634-x86.cab
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19013.1
    
    Processing 1 of 1 - Adding package Package_for_KB4528634~31bf3856ad364e35~x86~~19013.1102.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19013.1
    
    Processing 1 of 1 - Adding package Package_for_KB4528631~31bf3856ad364e35~x86~~10.0.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19013.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~x86~~19013.1102.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image File : d:\Downloads\19013.1102_x86_en-us_professional_d16ce28c_convert\ISOFOLDER\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19013.1
    
    Processing 1 of 1 - Adding package Package_for_KB4528634~31bf3856ad364e35~x86~~19013.1102.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19013.1
    
    Processing 1 of 1 - Adding package Package_for_KB4528631~31bf3856ad364e35~x86~~10.0.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19013.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~x86~~19013.1102.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image File : d:\Downloads\19013.1102_x86_en-us_professional_d16ce28c_convert\ISOFOLDER\sources\install.wim
    Image Index : 2
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19013.1102
    
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Adding package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~x86~~10.0.19013.1
    Adding package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~x86~~10.0.19013.1102
    Removing package Microsoft-Windows-CoreEdition~31bf3856ad364e35~x86~~10.0.19013.1
    Removing package Microsoft-Windows-CoreEdition~31bf3856ad364e35~x86~~10.0.19013.1102
    [==========================100.0%==========================]
    
    
    
    Finished updating components.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19013.1102
    
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Adding package Microsoft-Windows-ProfessionalNEdition~31bf3856ad364e35~x86~~10.0.19013.1
    Adding package Microsoft-Windows-ProfessionalNEdition~31bf3856ad364e35~x86~~10.0.19013.1102
    Removing package Microsoft-Windows-CoreNEdition~31bf3856ad364e35~x86~~10.0.19013.1
    Removing package Microsoft-Windows-CoreNEdition~31bf3856ad364e35~x86~~10.0.19013.1102
    [==========================100.0%==========================]
    
    
    
    Finished updating components.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    "ISOFOLDER\sources\install.wim" original size: 2402092 KiB
    Using LZX compression with 8 threads
    Archiving file data: 5258 MiB of 5258 MiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 2280773 KiB
    Space saved: 121318 KiB
    
    ============================================================
    Creating winre.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 742 MiB of 742 MiB (100%) done
    
    ============================================================
    Updating winre.wim / 1 image(s) . . .
    ============================================================
    
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19013.1
    
    Processing 1 of 1 - Adding package Package_for_KB4528634~31bf3856ad364e35~x86~~19013.1102.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19013.1
    
    Processing 1 of 2 - Adding package Package_for_KB4528631~31bf3856ad364e35~x86~~10.0.1.0
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_KB4528632~31bf3856ad364e35~x86~~10.0.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image Version: 10.0.19013.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~x86~~19013.1102.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1
    
    Image File : d:\Downloads\19013.1102_x86_en-us_professional_d16ce28c_convert\temp\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    "temp\winre.wim" original size: 322910 KiB
    Using LZX compression with 8 threads
    Archiving file data: 784 MiB of 784 MiB (100%) done
    "temp\winre.wim" optimized size: 307397 KiB
    Space saved: 15513 KiB
    
    ============================================================
    Adding winre.wim to install.wim . . .
    ============================================================
    
    
    ============================================================
    Creating boot.wim . . .
    ============================================================
    
    "ISOFOLDER\sources\boot.wim" original size: 323801 KiB
    Using LZX compression with 8 threads
    Archiving file data: 845 MiB of 845 MiB (100%) done
    "ISOFOLDER\sources\boot.wim" optimized size: 319351 KiB
    Space saved: 4450 KiB
    
    ============================================================
    Creating ISO . . .
    ============================================================
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 42 directories)
    Scanning source tree complete (902 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 3221848064 bytes (before optimization)
    
    Writing 902 files in 86 directories to 19013.1102.191029-1657.VB_RELEASE_SVC_PROD2_CLIENTMULTI_X86FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 25 files, 14166016 bytes (1% of image)
    
    After optimization, image file is 3209742336 bytes
    Space saved because of embedding, sparseness or optimization = 14166016
    
    Done.
    
    
    ============================================================
    Removing temporary files . . .
    ============================================================
    
    Press 0 to exit.
    
    
    
    Working fine. v40 is not released, afaik.

    19013.1102 test results for v40:

    https://forums.mydigitallife.net/th...ast-skip-vb_release.80505/page-5#post-1558233

    https://forums.mydigitallife.net/th...ast-skip-vb_release.80505/page-5#post-1558238
     
  9. boblan

    boblan MDL Novice

    Jun 1, 2015
    27
    6
    0
    @abbodi1406 - uup-converter-wimlib-39 works with 19013.1102 but gets the following error but creates an ISO

    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1

    Image Version: 10.0.19013.1

    Processing 1 of 2 - Adding package Package_for_KB4528631~31bf3856ad364e35~amd64~~10.0.1.0
    [==========================100.0%==========================]
    Processing 2 of 2 - Adding package Package_for_KB4528632~31bf3856ad364e35~amd64~~10.0.1.0
    [==========================100.0%==========================]

    Error: 0x800f081e

    The specified package is not applicable to this image.
    The command completed with errors.
    For more information, refer to the log file.

    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
     
  10. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,305
    450
    I just showed that v39 doesn't work with 19013.1102, that's why we were testing prerelease-v40 versions.
     
  11. boblan

    boblan MDL Novice

    Jun 1, 2015
    27
    6
    0
    @Enthousiast

    Found uup-converter-wimlib-40 on github abbodi1406 WHD tree master scripts. Will wait for release here.
    Tested using new updated convert.cmd works fine. Thanks
     
  12. boblan

    boblan MDL Novice

    Jun 1, 2015
    27
    6
    0
    Thanks.
     
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,305
    450