abbodi1406's Batch Scripts Repo

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

  1. pp03

    pp03 MDL Guru

    Apr 12, 2014
    2,019
    857
    90
    not working
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,875
    101,772
    340
  3. Super-Magician

    Super-Magician MDL Novice

    Mar 11, 2011
    10
    9
    0
    Thanks. That worked for preview update KB5124010, but not when I swapped it out for the 9/14 OOB security update (KB5129195 26x00.9457).
     
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,875
    101,772
    340
    How it did not work?
     
  5. pp03

    pp03 MDL Guru

    Apr 12, 2014
    2,019
    857
    90
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,875
    101,772
    340
    https://pixeldrain.com/u/6uEcTyF6 - https://download.ru/files/SLmigSiE
    W10UI-10.64u:
    - fix the missing lcuwpe in line 1652
    - check and force LCU msu for boot.wim only if the integrated LCU is not Baseline

    ===
    https://pixeldrain.com/u/q272hrR4 - https://download.ru/files/UzbDaf8H
    W10UI-10.64z:
    - above fixes
    - precheck boot.wim to avoid unnecessary LCU expand, or copying LCUs msu to temp directory

    when the boot.wim contain integrated non-Baseline LCU:
    if the target is mounted boot.wim or direct boot.wim file, LCUmsuExpand value will be auto changed to 3
    if the target is distribution (iso), LCU msu will be used for boot.wim, regardless LCUmsuExpand original value
     
  7. Super-Magician

    Super-Magician MDL Novice

    Mar 11, 2011
    10
    9
    0
    I will test again with your latest uploads. After initially making your suggested fix on line 1652, it integrated KB5124010 properly, but when I ran the fixed version with KB5129195, I saw it was again missing during the boot.wim phase. I tried to reproduce the issue another time but then it started working, so I'm not sure what I did wrong. Maybe I confused two runs. If I don't post again, assume I figured it out.
     
  8. June's Hill

    June's Hill MDL Member

    Jul 1, 2021
    159
    184
    10
    Hello abbodi1406, will these fixes be ported to UUP Converter? Or it's not neccessary?
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,875
    101,772
    340
    Not needed
    UUP files set is always without pre-integrated updates
     
  10. BELNN

    BELNN MDL Member

    Apr 2, 2016
    150
    98
    10
    abbodi1406, how can I forcefully integrate LCU into Winre.wim in 26340 using uup-converter-wimlib? When I change the LCUwinre =1 in the ConvertConfig.ini file, nothing happens, as if the designation =0 is used. Everything goes smoothly when integrating into 19045 or 22631.
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,875
    101,772
    340
    You can't
    even if i add support for it, LCU msu is designed to skip winre

    it would work only if LCUmsuExpand=1 is active
    but for 26340, expanded LCU installation fail anyway

    why do you want to bloat winre.wim with LCU?
    SafeOS update is already mini LCU
     
  12. BELNN

    BELNN MDL Member

    Apr 2, 2016
    150
    98
    10
    Thank you for the clarification. I’m just seeing that the original 26340 images in Winre.wim contain LCU, and MumX is also needed there. Perhaps this will soon change the entire update in the future, for 26100 and above.
     
  13. Super-Magician

    Super-Magician MDL Novice

    Mar 11, 2011
    10
    9
    0
    Thanks for the fixes. I noticed one issue on line 757 as I use wimlib. In the for loop command, the first and last tokens are both double-quoted, so cmd.exe will remove the first and last character, leading to a malformed command and the message "The system cannot find the file specified." is displayed. The command should be quoted again:
    Code:
    if %_wlib% equ 1 for /f %%# in ('^"!_wimlib! dir "!_w_!" 1 --path=Windows\Servicing\Packages ^| findstr /i "Package_for_RollupFix.*.mum"^"') do (
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,875
    101,772
    340
    #4294 abbodi1406, Sep 30, 2026
    Last edited: Oct 1, 2026
    (OP)
    From the log, they already have a feature or a setting check that ignore the ignored LCU msu condition for winre.wim
    Code:
    WinRE OnePackage Servicing allowed; ignoring condition that blocks WinRE LCU install
    so i guess i should allow LCUwinre for 26100+ and let LCU msu decide

    unfortunately yes, MumX thing will probably reach Retail branch sooner or later
     
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,875
    101,772
    340
    W10UI v10.65 released with above changes
     
  16. BELNN

    BELNN MDL Member

    Apr 2, 2016
    150
    98
    10
    Is it expected on uup-converter-wimlib?
     
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,875
    101,772
    340
    Non of the changes required for UUP

    i did not change LCUwinre behavior for now
    will do some tests on 26340
     
  18. BELNN

    BELNN MDL Member

    Apr 2, 2016
    150
    98
    10
    Okay, I understand.
     
  19. June's Hill

    June's Hill MDL Member

    Jul 1, 2021
    159
    184
    10
    Hello @abbodi1406

    In the past, I made an opinion about Windows NT 10.0 Updates Installer (W10UI) and Windows NT 10.0 Multilingual Creator (W10MUI).

    It is known that W10MUI includes W10UI inside. The problem is W10UI is updated more frequently than W10MUI, so if someone wants to create a multilingual and updated ISO, both scripts (W10MUI and W10UI) must be used (because the W10UI inside W10MUI is an ancient version).

    So, there are some approaches that could be made to improve this situation:
    • Merge both scripts in a single one (which would be very nice). There would be a W10UI with multilingual optional features that would be updated frequently.
    • Separate both scripts. Don't include W10UI inside W10MUI, so the user will use the latest version of scripts (separately).
    Thanks, dear abbodi1406 .
     
  20. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,875
    101,772
    340
    - Merging is impossible
    - i could add a simple updater or downloader script for latest W10UI (using bitsadmin or powershell Invoke-WebRequest)