abbodi1406's Batch Scripts Repo

Discussion in 'Scripting' started by abbodi1406, May 4, 2017.

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,711
    340
    @正义羊
    Add this to line 30
    Code:
    )
     
  2. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,642
    3,386
    60
    Now that I understand why only you were having problems, but no one else was manifesting.
    For just like me, many do not use the arguments for this script. So they weren't having Crash problems.

    Somehow you are giving arguments to this script and this parenthesis ")" of loop closing was breaking the script.
     
  3. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    255
    147
    10
    OK TKS
    It works very well now.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    255
    147
    10
    I have been localizing this tool for a long time, and all possible problems will show up in testing after the localization. That's why I found this question.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. BELNN

    BELNN MDL Member

    Apr 2, 2016
    103
    70
    10
    PSFX_Repack-0.6 does not want to build a complete .cab package starting from 22000.739 onwards. The package contains only .manifest files.
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,711
    340
  7. BELNN

    BELNN MDL Member

    Apr 2, 2016
    103
    70
    10
    Thanks. Now everything is clear
     
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,711
    340
    W10UI v10.19
    - Added support for Windows 11 22622 Enablement Package
    - Fixed Combined UUP update naming scheme for Windows 11 22H2

    uup-converter v81
    - Added support for Windows 11 22622 Enablement Package
    - Fixed label for external update mode for Windows 11
    - Few fixes for multi_arch_iso.cmd
     
  9. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,642
    3,386
    60
    #2029 inTerActionVRI, Jul 7, 2022
    Last edited: Jul 7, 2022
    @abbodi1406,
    in the "multi_arch_iso.cmd"...

    from:
    Code:
    set "_Nul6=%_Nul6%"
    
    to:
    Code:
    set "_Nul6=2^>nul"
    


    For iso -extracted folders, is the following condition still required?
    Code:
    if %_dir64% equ 1 if %_dir86% equ 1 goto :DUALMENU
    
    before:
    Code:
    goto :fndiso
    
    Edited
     
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,711
    340
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,711
    340
  12. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,332
    2,909
    60
    #2032 Paul Mercer, Jul 13, 2022
    Last edited: Jul 13, 2022
    something is weird with standalone create_virtual_editions.cmd script
    ISO filename on 22621.232 and 25151.1010 contain current time and date, all files inside ISO are created on current time and date as well

    repro: base Home and Pro 22621.1 ISO (AutoStart=1) with convert-UUP.cmd --> W10UI with defender and MSU package --> create_virtual_editions.cmd

    first and second ISO names are correct, standalone create_virtual_editions.cmd script can't set updates time and date

    I'm pretty sure v80f was fine, but I was only using Pro edition until today

    correction: it was fine because 22000 and 19044 builds are not affected

    will try to test it with 80f version..

    upd:
    nope, 80f version is not working correctly too
    input: 25151.1010.220627-0317.RS_PRERELEASE_FLT_CLIENT_X64FRE_EN-US
    output: 25151.1010.220713-1834.RS_PRERELEASE_FLT_CLIENTMULTI_X64FRE_EN-US

    will try to test 22000 build with actual version next..

    upd: it's fine with 22000 and v81
    input: 22000.795.220629-0006.CO_RELEASE_SVC_PROD1_CLIENT_X64FRE_EN-US
    output: 22000.795.220629-0006.CO_RELEASE_SVC_PROD1_CLIENTMULTI_X64FRE_EN-US

    so 22000 is fine, and 22621/25151 are not
    the only difference besides obvious build number is that MSU was created with PSFX MSU Maker for 22621/25151 builds

    please take a look into this @abbodi1406
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    367
    267
    10
    Still got issue on new "multi_arch_iso.cmd" which can't find the iso folders in the same folder.

    Code:
    ============================================================
     Sources:
    
    "%#"
    "%#"
    
    ============================================================
     Options:
    
     0 - Exit
     1 - Create ISO with 1 combined install .wim/.esd
     2 - Create ISO with 2 separate install .wim/.esd/.swm (Win 11/10)
    ============================================================
    
    Choose a menu option:
    compare to the "multi_arch_iso.cmd" inside the esd-decrypter-wimlib.

    Code:
    ============================================================
     Sources:
    
    "9600.17415.141028-1500.WINBLUE_IR5_CLIENTCOMBINED_X64FRE_ZH-CN"
    "9600.17415.141028-1500.WINBLUE_IR5_CLIENTCOMBINED_X86FRE_ZH-CN"
    
    ============================================================
     Options:
    
     0 - Exit
     1 - Create ISO with 1 combined install.wim/.esd
     2 - Create ISO with 2 separate install.wim/.esd (Win 11/10)
    ============================================================
    
    Choose a menu option:
     
  14. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,642
    3,386
    60
    Change from:
    Code:
    call :chkdir "%%~#"
    
    to:
    Code:
    call :chkdir "%%~#", "%%#"
    

    And here, change all %%# to %~2.
    from:
    Code:
    :chkdir
    if exist "%~1\efi\boot\bootx64.efi" (set _dir64=1&set "ISOdir1=%%#"&exit /b) else if exist "%~1\efi\boot\bootia32.efi" (set _dir86=1&set "ISOdir2=%%#"&exit /b)
    if exist "%~1\sources\idwbinfo.txt" (
    findstr /i amd64 idwbinfo.txt %_Nul3% && (set _dir64=1&set "ISOdir1=%%#"&exit /b)
    findstr /i x86 idwbinfo.txt %_Nul3% && (set _dir86=1&set "ISOdir2=%%#"&exit /b)
    )
    if exist "%~1\sources\sxs\*amd64*.cab" (set _dir64=1&set "ISOdir1=%%#"&exit /b)
    if exist "%~1\sources\sxs\*x86*.cab" (set _dir86=1&set "ISOdir2=%%#"&exit /b)
    if not exist "%~1\sources\setup.exe" exit /b
    7z.exe l "%~1\sources\setup.exe" >.\bin\version.txt 2>&1
    findstr /i /b "CPU" .\bin\version.txt | find /i "x64" %_Nul3% && (set _dir64=1&set "ISOdir1=%%#")
    findstr /i /b "CPU" .\bin\version.txt | find /i "x86" %_Nul3% && (set _dir86=1&set "ISOdir2=%%#")
    del /f /q .\bin\version.txt %_Nul3%
    exit /b
    
    :fndiso
    
    to:
    Code:
    :chkdir
    if exist "%~1\efi\boot\bootx64.efi" (set _dir64=1&set "ISOdir1=%~2"&exit /b) else if exist "%~1\efi\boot\bootia32.efi" (set _dir86=1&set "ISOdir2=%~2"&exit /b)
    if exist "%~1\sources\idwbinfo.txt" (
    findstr /i amd64 idwbinfo.txt %_Nul3% && (set _dir64=1&set "ISOdir1=%~2"&exit /b)
    findstr /i x86 idwbinfo.txt %_Nul3% && (set _dir86=1&set "ISOdir2=%~2"&exit /b)
    )
    if exist "%~1\sources\sxs\*amd64*.cab" (set _dir64=1&set "ISOdir1=%~2"&exit /b)
    if exist "%~1\sources\sxs\*x86*.cab" (set _dir86=1&set "ISOdir2=%~2"&exit /b)
    if not exist "%~1\sources\setup.exe" exit /b
    7z.exe l "%~1\sources\setup.exe" >.\bin\version.txt 2>&1
    findstr /i /b "CPU" .\bin\version.txt | find /i "x64" %_Nul3% && (set _dir64=1&set "ISOdir1=%~2")
    findstr /i /b "CPU" .\bin\version.txt | find /i "x86" %_Nul3% && (set _dir86=1&set "ISOdir2=%~2")
    del /f /q .\bin\version.txt %_Nul3%
    exit /b
    
    :fndiso
    
     
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,711
    340
    I could not reproduce the issue with 22572 (latest UUP build i downloaded yet)
    created 22572.201 ISO, then used create_virtual_editions.cmd, the date/time is as expected

    does the issue occur with ISO files only? or with extracted folder too?

    if you can re-test with debug mode
    extract 22621/25151 ISO to current script directory
    enable _Debug in convert-UUP.cmd (create_virtual_editions.cmd inherit from it)
    then start admin cmd and run
    Code:
    call create_virtual_editions.cmd >Debug.log 2>&1
     
  16. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,332
    2,909
    60
    #2036 Paul Mercer, Jul 14, 2022
    Last edited: Jul 14, 2022
    retested from scratch with one Pro index to save some time

    1. Base 25151.1 ISO
    Code:
    ============================================================
    Running UUP -> ISO v81
    ============================================================
    
    ============================================================
    Checking UUP Info . . .
    ============================================================
    
    ============================================================
    Configured Options . . .
    ============================================================
    
    AutoStart 1
    
    ============================================================
    Parsing Apps CompDB . . .
    ============================================================
    
    
    ============================================================
    Preparing Reference ESDs . . .
    ============================================================
    
    Microsoft-OneCore-ApplicationModel-Sync-Desktop-FOD-Package-amd64
    Microsoft-OneCore-DirectX-Database-FOD-Package-amd64
    Microsoft-Windows-Ethernet-Client-Intel-E1i68x64-FOD-Package-amd64
    Microsoft-Windows-Ethernet-Client-Intel-E2f68-FOD-Package-amd64
    Microsoft-Windows-Ethernet-Client-Realtek-Rtcx21x64-FOD-Package-amd64
    Microsoft-Windows-Ethernet-Client-Vmware-Vmxnet3-FOD-Package-amd64
    Microsoft-Windows-FoDMetadata-Package
    Microsoft-Windows-Hello-Face-Package-amd64
    Microsoft-Windows-InternetExplorer-Optional-Package-amd64
    Microsoft-Windows-Kernel-LA57-FoD-Package-amd64
    Microsoft-Windows-LanguageFeatures-Basic-en-us-Package-amd64
    Microsoft-Windows-LanguageFeatures-Handwriting-en-us-Package-amd64
    Microsoft-Windows-LanguageFeatures-OCR-en-us-Package-amd64
    Microsoft-Windows-LanguageFeatures-Speech-en-us-Package-amd64
    Microsoft-Windows-LanguageFeatures-TextToSpeech-en-us-Package-amd64
    Microsoft-Windows-MediaPlayer-Package-amd64
    Microsoft-Windows-MediaPlayer-Package-wow64
    Microsoft-Windows-Notepad-System-FoD-Package-amd64
    Microsoft-Windows-Notepad-System-FoD-Package-wow64
    Microsoft-Windows-PowerShell-ISE-FOD-Package-amd64
    Microsoft-Windows-PowerShell-ISE-FOD-Package-wow64
    Microsoft-Windows-Printing-PMCPPC-FoD-Package-amd64
    Microsoft-Windows-StepsRecorder-Package-amd64
    Microsoft-Windows-StepsRecorder-Package-wow64
    Microsoft-Windows-TabletPCMath-Package-amd64
    Microsoft-Windows-Wallpaper-Content-Extended-FoD-Package-amd64
    Microsoft-Windows-Wifi-Client-Broadcom-Bcmpciedhd63-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63a-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63al-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwbw02-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwew00-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwew01-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwlv64-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwns64-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwsw00-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwtw02-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwtw04-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwtw06-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwtw08-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwtw10-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Marvel-Mrvlpcie8897-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Qualcomm-Athw8x-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Qualcomm-Athwnx-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Qualcomm-Qcamain10x64-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Ralink-Netr28x-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtl8187se-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtl8192se-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtl819xp-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtl85n64-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtwlane-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtwlane01-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtwlane13-FOD-Package-amd64
    Microsoft-Windows-WMIC-FoD-Package-amd64
    Microsoft-Windows-WMIC-FoD-Package-wow64
    Microsoft-Windows-WordPad-FoD-Package-amd64
    Microsoft-Windows-WordPad-FoD-Package-wow64
    OpenSSH-Client-Package-amd64
    
    ============================================================
    Creating Setup Media Layout . . .
    ============================================================
    
    
    ============================================================
    Creating install.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 6694 MiB of 6694 MiB (100%) done
    
    ============================================================
    Creating Cumulative Update MSU . . .
    ============================================================
    
    Extracting required files...
    
    Creating: DesktopDeployment_x86.cab
    
    Creating: onepackage.AggregatedMetadata.cab
    
    Creating: Windows11.0-KB5016322-x64.msu
    
    ============================================================
    Updating install.wim / 1 image(s) . . .
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Adding Apps . . .
    
    Microsoft.NET.Native.Framework.x64.1.3
    Microsoft.NET.Native.Framework.x64.1.7
    Microsoft.NET.Native.Framework.x64.2.2
    Microsoft.NET.Native.Runtime.x64.1.4
    Microsoft.NET.Native.Runtime.x64.1.7
    Microsoft.NET.Native.Runtime.x64.2.2
    Microsoft.UI.Xaml.x64.2.1
    Microsoft.UI.Xaml.x64.2.3
    Microsoft.UI.Xaml.x64.2.4
    Microsoft.UI.Xaml.x64.2.7
    Microsoft.VCLibs.x64.14.00
    Microsoft.VCLibs.x64.14.00.Desktop
    Microsoft.WindowsStore_8wekyb3d8bbwe
    Microsoft.StorePurchaseApp_8wekyb3d8bbwe
    microsoft.windowscommunicationsapps_8wekyb3d8bbwe
    Microsoft.People_8wekyb3d8bbwe
    Microsoft.BingNews_8wekyb3d8bbwe
    Microsoft.BingWeather_8wekyb3d8bbwe
    Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe
    Microsoft.ZuneMusic_8wekyb3d8bbwe
    Microsoft.ZuneVideo_8wekyb3d8bbwe
    Microsoft.WindowsAlarms_8wekyb3d8bbwe
    Microsoft.WindowsCalculator_8wekyb3d8bbwe
    Microsoft.WindowsNotepad_8wekyb3d8bbwe
    Microsoft.WindowsTerminal_8wekyb3d8bbwe
    Microsoft.WindowsFeedbackHub_8wekyb3d8bbwe
    Microsoft.GetHelp_8wekyb3d8bbwe
    Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe
    Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe
    Microsoft.ScreenSketch_8wekyb3d8bbwe
    Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe
    Microsoft.Todos_8wekyb3d8bbwe
    Microsoft.XboxSpeechToTextOverlay_8wekyb3d8bbwe
    Microsoft.GamingApp_8wekyb3d8bbwe
    Microsoft.XboxGameOverlay_8wekyb3d8bbwe
    Microsoft.XboxGamingOverlay_8wekyb3d8bbwe
    Microsoft.XboxIdentityProvider_8wekyb3d8bbwe
    Microsoft.Xbox.TCUI_8wekyb3d8bbwe
    Microsoft.Getstarted_8wekyb3d8bbwe
    Microsoft.Windows.Photos_8wekyb3d8bbwe
    Microsoft.WindowsMaps_8wekyb3d8bbwe
    Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe
    Microsoft.WindowsCamera_8wekyb3d8bbwe
    Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
    Microsoft.Paint_8wekyb3d8bbwe
    Microsoft.WebMediaExtensions_8wekyb3d8bbwe
    Microsoft.RawImageExtension_8wekyb3d8bbwe
    Microsoft.HEIFImageExtension_8wekyb3d8bbwe
    Microsoft.HEVCVideoExtension_8wekyb3d8bbwe
    Microsoft.VP9VideoExtensions_8wekyb3d8bbwe
    Microsoft.WebpImageExtension_8wekyb3d8bbwe
    MicrosoftWindows.Client.WebExperience_cw5n1h2txyewy
    Microsoft.SecHealthUI_8wekyb3d8bbwe
    Clipchamp.Clipchamp_yxz26nhyzhsrt
    MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe
    Microsoft.YourPhone_8wekyb3d8bbwe
    Microsoft.549981C3F5F10_8wekyb3d8bbwe
    MicrosoftCorporationII.MicrosoftFamily_8wekyb3d8bbwe
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : F:\uup-converter-wimlib-81f\ISOFOLDER\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    "ISOFOLDER\sources\install.wim" original size: 3173759 KiB
    Using LZX compression with 8 threads
    Archiving file data: 7507 MiB of 7507 MiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 3151488 KiB
    Space saved: 22270 KiB
    
    ============================================================
    Creating winre.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 1181 MiB of 1181 MiB (100%) done
    
    ============================================================
    Adding winre.wim to install.wim . . .
    ============================================================
    
    
    ============================================================
    Creating boot.wim . . .
    ============================================================
    
    
    ============================================================
    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 43 directories)
    Scanning source tree complete (947 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 4442816512 bytes (before optimization)
    
    Writing 947 files in 86 directories to 25151.1000.220625-1835.RS_PRERELEASE_CLIENTPRO_OEMRET_X64FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 24 files, 14135296 bytes (1% of image)
    
    After optimization, image file is 4430831616 bytes
    Space saved because of embedding, sparseness or optimization = 14135296
    
    Done.
    Finished.
    
    Press 0 to exit.

    2. W10UI with Defender and NDP updates, MSU file from \uup-converter-wimlib-81f\UUPs folder
    Code:
    ============================================================
    Running W10UI v10.19
    ============================================================
    
    ============================================================
    Copying DVD Drive contents to work directory...
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files...
    ============================================================
    
    1/1: Windows11.0-KB5016322-x64.msu [Combined UUP]
    
    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/7: defender-dism-x64_12.07.2022.cab
    2/7: Windows10.0-KB5016323-x64.cab
    3/7: Windows10.0-KB5016324-x64.cab [WinPE]
    4/7: Windows10.0-KB5016325-x64.cab [Setup DU]
    5/7: Windows10.0-KB5016327-x64.cab
    6/7: windows11.0-kb5015737-x64-ndp48_CU_9065.1.cab [NetFx]
    7/7: Windows11.0-KB5016326-x64_inout.cab [SSU]
    
    ============================================================
    Mounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1010~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1010 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 3 - Adding package Package_for_KB5016323~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    Processing 2 of 3 - Adding package Package_for_KB5016327~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    Processing 3 of 3 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.9065.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Windows11.0-KB5016322-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting OS image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1010
    
    [=====                      10.0%                          ]
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1010
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding Defender update...
    ============================================================
    
    
    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1010
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1010
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.9065.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1010
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Updating winre.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1010~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1010 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 - Adding package Package_for_KB5016324~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 - Adding package Package_for_KB5016323~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    [===============            27.3%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : F:\W10UI_10.19\winre.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.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim ...
    ============================================================
    
    Скопировано файлов:         1.
    
    ============================================================
    Unmounting sources\install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : F:\W10UI_10.19\DVD10UI\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\install.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1010~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1010 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 - Adding package Package_for_KB5016324~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 - Adding package Package_for_KB5016323~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Windows11.0-KB5016322-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1010
    
    [==============             24.5%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1010
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : F:\W10UI_10.19\DVD10UI\sources\boot.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1010~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1010 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 - Adding package Package_for_KB5016324~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 - Adding package Package_for_KB5016323~31bf3856ad364e35~amd64~~25151.1010.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Windows11.0-KB5016322-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1000
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1010
    
    [==============             24.5%                          ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image Version: 10.0.25151.1010
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Image File : F:\W10UI_10.19\DVD10UI\sources\boot.wim
    Image Index : 2
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding sources\boot.wim ...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.653
    
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding setup dynamic update(s)...
    ============================================================
    
    Windows10.0-KB5016325-x64.cab
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Creating updated ISO file...
    ============================================================
    
    ISO Location:
    "F:\W10UI_10.19"
    
    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 43 directories)
    Scanning source tree complete (946 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 4749492224 bytes (before optimization)
    
    Writing 946 files in 86 directories to 25151.1010.220627-0317.RS_PRERELEASE_FLT_CLIENT_X64FRE_EN-US.iso
    
    100% complete
    
    Storage optimization saved 24 files, 14135296 bytes (1% of image)
    
    After optimization, image file is 4737503232 bytes
    Space saved because of embedding, sparseness or optimization = 14135296
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 to exit.

    3.1 create_virtual_editions.cmd with ISO file - incorrect filename
    Code:
    ============================================================
    Extracting ISO file . . .
    ============================================================
    
    "F:\1\25151.1010.220627-0317.RS_PRERELEASE_FLT_CLIENT_X64FRE_EN-US.iso"
    
    ============================================================
    Checking Distribution Info . . .
    ============================================================
    
    ============================================================
    Configured Virtual Options . . .
    ============================================================
    
    AutoStart
    AutoEditions: Enterprise,Education,ProfessionalEducation,ProfessionalWorkstation,EnterpriseN,EducationN,ProfessionalEducationN,ProfessionalWorkstationN,CoreSingleLanguage,ServerRdsh,IoTEnterprise,IoTEnterpriseS,CloudEdition,CloudEditionN
    
    ============================================================
    Copying install.wim . . .
    ============================================================
    
    ============================================================
    Creating Edition: Enterprise
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 2 to "Enterprise".
    Setting the FLAGS property of image 2 to "Enterprise".
    Setting the DISPLAYNAME property of image 2 to "Windows 11 Enterprise".
    Setting the DISPLAYDESCRIPTION property of image 2 to "Windows 11 Enterprise".
    
    ============================================================
    Creating Edition: Education
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 3 to "Education".
    Setting the FLAGS property of image 3 to "Education".
    Setting the DISPLAYNAME property of image 3 to "Windows 11 Education".
    Setting the DISPLAYDESCRIPTION property of image 3 to "Windows 11 Education".
    
    ============================================================
    Creating Edition: Pro Education
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 4 to "ProfessionalEducation".
    Setting the FLAGS property of image 4 to "ProfessionalEducation".
    Setting the DISPLAYNAME property of image 4 to "Windows 11 Pro Education".
    Setting the DISPLAYDESCRIPTION property of image 4 to "Windows 11 Pro Education".
    
    ============================================================
    Creating Edition: Pro for Workstations
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 5 to "ProfessionalWorkstation".
    Setting the FLAGS property of image 5 to "ProfessionalWorkstation".
    Setting the DISPLAYNAME property of image 5 to "Windows 11 Pro for Workstations".
    Setting the DISPLAYDESCRIPTION property of image 5 to "Windows 11 Pro for Workstations".
    
    ============================================================
    Creating Edition: Enterprise multi-session
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 6 to "ServerRdsh".
    Setting the FLAGS property of image 6 to "ServerRdsh".
    Setting the DISPLAYNAME property of image 6 to "Windows 11 Enterprise multi-session".
    Setting the DISPLAYDESCRIPTION property of image 6 to "Windows 11 Enterprise multi-session".
    
    ============================================================
    Creating Edition: IoT Enterprise
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 7 to "IoTEnterprise".
    Setting the FLAGS property of image 7 to "IoTEnterprise".
    Setting the DISPLAYNAME property of image 7 to "Windows 11 IoT Enterprise".
    Setting the DISPLAYDESCRIPTION property of image 7 to "Windows 11 IoT Enterprise".
    
    ============================================================
    Creating Edition: SE
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 8 to "CloudEdition".
    Setting the FLAGS property of image 8 to "CloudEdition".
    Setting the DISPLAYNAME property of image 8 to "Windows 11 SE".
    Setting the DISPLAYDESCRIPTION property of image 8 to "Windows 11 SE".
    
    ============================================================
    Rebuilding install.wim . . .
    ============================================================
    
    "ISOFOLDER\sources\install.wim" original size: 4160248 KiB
    Using LZX compression with 8 threads
    Archiving file data: 9096 MiB of 9096 MiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 4078943 KiB
    Space saved: 81305 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 43 directories)
    Scanning source tree complete (946 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 4882202624 bytes (before optimization)
    
    Writing 946 files in 86 directories to 25151.1010.220714-2108.RS_PRERELEASE_FLT_CLIENTMULTI_X64FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 24 files, 14135296 bytes (1% of image)
    
    After optimization, image file is 4870230016 bytes
    Space saved because of embedding, sparseness or optimization = 14135296
    
    Done.
    
    Press 0 to exit.

    3.2 create_virtual_editions.cmd with extracted folder - incorrect filename
    Code:
    ============================================================
    Checking Distribution Info . . .
    ============================================================
    
    ============================================================
    Configured Virtual Options . . .
    ============================================================
    
    AutoStart
    AutoEditions: Enterprise,Education,ProfessionalEducation,ProfessionalWorkstation,EnterpriseN,EducationN,ProfessionalEducationN,ProfessionalWorkstationN,CoreSingleLanguage,ServerRdsh,IoTEnterprise,IoTEnterpriseS,CloudEdition,CloudEditionN
    
    ============================================================
    Copying install.wim . . .
    ============================================================
    
    ============================================================
    Creating Edition: Enterprise
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 2 to "Enterprise".
    Setting the FLAGS property of image 2 to "Enterprise".
    Setting the DISPLAYNAME property of image 2 to "Windows 11 Enterprise".
    Setting the DISPLAYDESCRIPTION property of image 2 to "Windows 11 Enterprise".
    
    ============================================================
    Creating Edition: Education
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 3 to "Education".
    Setting the FLAGS property of image 3 to "Education".
    Setting the DISPLAYNAME property of image 3 to "Windows 11 Education".
    Setting the DISPLAYDESCRIPTION property of image 3 to "Windows 11 Education".
    
    ============================================================
    Creating Edition: Pro Education
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 4 to "ProfessionalEducation".
    Setting the FLAGS property of image 4 to "ProfessionalEducation".
    Setting the DISPLAYNAME property of image 4 to "Windows 11 Pro Education".
    Setting the DISPLAYDESCRIPTION property of image 4 to "Windows 11 Pro Education".
    
    ============================================================
    Creating Edition: Pro for Workstations
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 5 to "ProfessionalWorkstation".
    Setting the FLAGS property of image 5 to "ProfessionalWorkstation".
    Setting the DISPLAYNAME property of image 5 to "Windows 11 Pro for Workstations".
    Setting the DISPLAYDESCRIPTION property of image 5 to "Windows 11 Pro for Workstations".
    
    ============================================================
    Creating Edition: Enterprise multi-session
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 6 to "ServerRdsh".
    Setting the FLAGS property of image 6 to "ServerRdsh".
    Setting the DISPLAYNAME property of image 6 to "Windows 11 Enterprise multi-session".
    Setting the DISPLAYDESCRIPTION property of image 6 to "Windows 11 Enterprise multi-session".
    
    ============================================================
    Creating Edition: IoT Enterprise
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 7 to "IoTEnterprise".
    Setting the FLAGS property of image 7 to "IoTEnterprise".
    Setting the DISPLAYNAME property of image 7 to "Windows 11 IoT Enterprise".
    Setting the DISPLAYDESCRIPTION property of image 7 to "Windows 11 IoT Enterprise".
    
    ============================================================
    Creating Edition: SE
    ============================================================
    
    
    Setting the WINDOWS/EDITIONID property of image 8 to "CloudEdition".
    Setting the FLAGS property of image 8 to "CloudEdition".
    Setting the DISPLAYNAME property of image 8 to "Windows 11 SE".
    Setting the DISPLAYDESCRIPTION property of image 8 to "Windows 11 SE".
    
    ============================================================
    Rebuilding install.wim . . .
    ============================================================
    
    "ISOFOLDER\sources\install.wim" original size: 4160248 KiB
    Using LZX compression with 8 threads
    Archiving file data: 9096 MiB of 9096 MiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 4078943 KiB
    Space saved: 81305 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 43 directories)
    Scanning source tree complete (946 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 4882202624 bytes (before optimization)
    
    Writing 946 files in 86 directories to 25151.1010.220714-2108.RS_PRERELEASE_FLT_CLIENTMULTI_X64FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 24 files, 14135296 bytes (1% of image)
    
    After optimization, image file is 4870230016 bytes
    Space saved because of embedding, sparseness or optimization = 14135296
    
    Done.
    
    Press 0 to exit.

    will try debug thing next
    edit: log file attached


    I've read some of it and found this one
    Code:
    Windows\Servicing\Packages\Package_for_RollupFix*.mum
    set "mumdate=20220714210824.140523+300
    so this is either because of W10UI or self created MSU package
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,332
    2,909
    60
    #2037 Paul Mercer, Jul 15, 2022
    Last edited: Jul 15, 2022
    retested without MSU package - .mum file date is correct
    so this is because of self created MSU file I guess

    the next thing I want to test is 22000 with self created MSU package

    edit:
    just tested 22000 build with self created MSU package - mum file date is correct
    22000 build is not affected at all with self created MSU file

    something has changed for 22621 and latest Dev builds and I can't test it with Microsoft's MSU because it's not available on Microsoft Update Catalog

    I don't get it what's wrong with this
    first I thought we should create MSU package with "old" or let's say "original" date on files inside of it
    but it doesn't make sense because "windows11.0-kb5016322-x64.msu/Windows11.0-KB5016322-x64.cab" file signed by Microsoft and it should work

    maybe we should create MSU files with original time and date on all files inside of it (include files inside of created cabs)?
    or this is some integration issue with W10UI, or Microsoft's fault
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,711
    340
    @Paul Mercer
    Thanks for testing

    W10UI integration with MSU resulted in correct (original) mum file date

    i don't know why the file timestamp change to to current time with create_virtual_editions
    could be due wimlib-imagex.exe extraction, or copying to C:\Windows\temp\update.mum

    i can try to use 7z.exe for extracting Package_for_RollupFix .mum
     
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,194
    84,711
    340
  20. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,332
    2,909
    60
    it's not for 22621.232 and 25151.1010 builds with W10UI and UUP->ISO converter, but it's correct for 22000.795 build
    as far as I understand it create_virtual_editions is working as expected and something has changed with MSU integration with DISM

    I don't have ISO now but let me create 25151.1010 ISO again with uup-converter-wimlib-81f and I'll attach screenshot of Package_for_RollupFix*.mum file
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...