abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    Add it to what version?
    it's added by LCU for 17763 (except LTSC or Server), 18362, 1904x builds (include LTSC)
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
  3. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    258
    152
    10
    I use uup-converter v77 make 22557 and above ISO,

    But the Windows Installer is missing background in start installer, "setup is starting" text is missing too.

    Installer in Windows PE missing lots of localization files. (Like you seeing, my mother language is Chinese)
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    W10UI v10.17

    - Added support for updates new file name "Windows11.0-KB*"
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
  7. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,668
    103,485
    450
    #1807 Enthousiast, Mar 8, 2022
    Last edited: Mar 8, 2022
    It seems some errors still exist:
    Code:
    
    ============================================================
    Running UUP -> ISO v78f
    ============================================================
    
    ============================================================
    Checking UUP Info . . .
    ============================================================
    
    ============================================================
    Configured Options . . .
    ============================================================
    
    AutoStart 1
    AddUpdates 1
    NetFx3
    SkipBootFiles
    
    ============================================================
    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_bcf87a03
    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_25668e60
    Microsoft-Windows-LanguageFeatures-Handwriting-en-us-Package-amd64_3455a5da
    Microsoft-Windows-LanguageFeatures-OCR-en-us-Package-amd64_17129d04
    Microsoft-Windows-LanguageFeatures-Speech-en-us-Package-amd64
    Microsoft-Windows-LanguageFeatures-TextToSpeech-en-us-Package-amd64_fbb04e7d
    Microsoft-Windows-MediaPlayer-Package-amd64_74373fad
    Microsoft-Windows-MediaPlayer-Package-wow64
    Microsoft-Windows-Notepad-System-FoD-Package-amd64_8b595ea2
    Microsoft-Windows-Notepad-System-FoD-Package-wow64_d1bb3d8b
    Microsoft-Windows-PowerShell-ISE-FOD-Package-amd64_f00a238e
    Microsoft-Windows-PowerShell-ISE-FOD-Package-wow64
    Microsoft-Windows-Printing-PMCPPC-FoD-Package-amd64_565fc9a9
    Microsoft-Windows-QuickAssist-Package-amd64
    Microsoft-Windows-StepsRecorder-Package-amd64
    Microsoft-Windows-StepsRecorder-Package-wow64_fde54971
    Microsoft-Windows-TabletPCMath-Package-amd64_6405be91
    Microsoft-Windows-Wallpaper-Content-Extended-FoD-Package-amd64_7112989a
    Microsoft-Windows-Wifi-Client-Broadcom-Bcmpciedhd63-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63a-FOD-Package-amd64_3911942f
    Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63al-FOD-Package-amd64_a1ec9420
    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_f79bf268
    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_9f21cf51
    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_67fcd22c
    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_f8cffef0
    Microsoft-Windows-Wifi-Client-Realtek-Rtl8192se-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtl819xp-FOD-Package-amd64_37a60423
    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_e4492fed
    Microsoft-Windows-Wifi-Client-Realtek-Rtwlane13-FOD-Package-amd64
    Microsoft-Windows-WordPad-FoD-Package-amd64_9d7f7928
    Microsoft-Windows-WordPad-FoD-Package-wow64_11f0e276
    OpenSSH-Client-Package-amd64_27df2eac
    
    ============================================================
    Creating Setup Media Layout . . .
    ============================================================
    
    
    ============================================================
    Creating install.wim . . .
    ============================================================
    
    Using LZX compression with 16 threads
    Archiving file data: 6606 MiB of 6606 MiB (100%) done
    
    ============================================================
    Creating Cumulative Update MSU . . .
    ============================================================
    
    Extracting required files...
    
    Creating: DesktopDeployment_x86.cab
    
    Creating: onepackage.AggregatedMetadata.cab
    
    Creating: Windows11.0-KB5012432-x64.msu
    
    ============================================================
    Updating install.wim / 1 image(s) . . .
    ============================================================
    
    1/5: Windows11.0-KB5012432-x64.msu [Combined UUP]
    2/5: SSU-22567.100-x64.cab [SSU]
    3/5: Windows11.0-KB5012428-x64.cab
    4/5: Windows11.0-KB5012429-x64.cab [WinPE]
    5/5: Windows11.0-KB5012430-x64.cab [Setup DU]
    The system cannot find the drive specified.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    
    Error: 0xc1420115
    
    The user attempted to mount to a directory that does not exist.  This is not supported.
    
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    
    Error: 50
    
    The request is not supported.
    
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    
    "ISOFOLDER\sources\install.wim" original size: 2826316 KiB
    Using LZX compression with 16 threads
    Archiving file data: 6606 MiB of 6606 MiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 2826316 KiB
    Space saved: 0 KiB
    
    ============================================================
    Adding setup dynamic update(s) . . .
    ============================================================
    
    Windows11.0-KB5012430-x64.cab
    
    ============================================================
    Creating winre.wim . . .
    ============================================================
    
    Using LZX compression with 16 threads
    Archiving file data: 1164 MiB of 1164 MiB (100%) done
    
    ============================================================
    Updating winre.wim / 1 image(s) . . .
    ============================================================
    
    The system cannot find the drive specified.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    
    Error: 0xc1420115
    
    The user attempted to mount to a directory that does not exist.  This is not supported.
    
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1
    
    
    Error: 50
    
    The request is not supported.
    
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    
    "temp\winre.wim" original size: 447086 KiB
    Using LZX compression with 16 threads
    Archiving file data: 1164 MiB of 1164 MiB (100%) done
    "temp\winre.wim" optimized size: 447086 KiB
    Space saved: 0 KiB
    
    ============================================================
    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 (944 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 4104978432 bytes (before optimization)
    
    Writing 944 files in 86 directories to 22567.1.220225-1325.NI_RELEASE_CLIENTPRO_OEMRET_X64FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 24 files, 14135296 bytes (1% of image)
    
    After optimization, image file is 4092989440 bytes
    Space saved because of embedding, sparseness or optimization = 14135296
    
    Done.
    Finished.
    
    
    ============================================================
    Removing temporary files . . .
    ============================================================
    
    Press 0 to exit.
    
    
    Running in debug mode now, will send you the log asap at the usual place:)
     
  8. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,397
    2,381
    60
    May be of interest... Removed Line 241 from convert-UUP.cmd ... ran test... apparently sucessful, even gives correct build no. 22567.200
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
  10. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,710
    210
    #1811 Carlos Detweiller, Mar 9, 2022
    Last edited: Mar 9, 2022
    W10UI 10.17


    I wanted to know why it does not work verbatim for my 19044 build. Had a lot of fun with breakpoints and found the issue (I think).


    - The _build variable is set (from the Servicing\Version path) at line 329. (Btw, does the 1* target there also work for builds >19999?)

    - However, that variable was never set, as there are conditional jumps ("goto :check" in this case) at line 313. That causes the variable to stay uninitialized.

    - Then, finally, in the ":tmprenssu" module, at line 1670, the uninitialized variable is queried. As it is a null string, the whole line gets messed up and the script crashes.


    I think that moving the line 329 a few lines up (new line 313), before the conditional jumps occur, could get around this. Checking...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    W10UI v10.17f

    Fixed

    adding this after line 379
    Code:
    set _build=%winbuild%
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,206
    90,780
    340
    1* here is to catch the NT version 10.0 (or 11.0 in future) vs. NT 6.x
     
  13. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,710
    210
    Ah, OK. Shouldn't debug late in the night, I guess. We'll speak again when Windows NT 20.0 arrives. :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,942
    4,167
    60
    Please update PSFX MSU Maker for Windows10.0 and Windows11.0 cabs support, thank you
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. jokkell

    jokkell MDL Novice

    Jan 2, 2009
    47
    5
    0
    #1816 jokkell, Mar 13, 2022
    Last edited: Mar 13, 2022
    Can we ask questions here? [if not, please move the post to a better place]
    I'd have one:
    When executing the YAOCTRI_Configurator.cmd script, I cannot select the update channel for LTSC (Perpetual2021 VL). Only the following are displayed, no matter which suite or app I take: MSShell.png
    What am I doing wrong? Did I not understand something correctly?
    I intend to install LTSC 2021.
    Mounted image is ProPlus2021Retail.img
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Lex24

    Lex24 MDL Junior Member

    Apr 14, 2018
    51
    47
    0
    I have run into problems with W10UI_10.17f when updating Win11 from 22000.527 to 22000.556. The window shown on the second screenshot below would not open (the screenshots show an earlier update, just to illustrate the files layout and where the problem is):

    https://imagizer.imageshack.com/img923/1403/TqCbi7.png

    This window won't open:

    https://imagizer.imageshack.com/img922/8126/NYz74z.png

    Everything works ok with W10UI_10.16. Here is my W10UI.ini:

    Code:
    [W10UI-Configuration]
    Target        =
    Repo          =
    DismRoot      =dism.exe
    
    Net35         =0
    Net35Source   =
    Cleanup       =1
    ResetBase     =1
    LCUwinre      =0
    WinRE         =0
    SkipBootFiles =1
    SkipEdge      =0
    
    _CabDir       =W10UItemp
    MountDir      =W10UImount
    WinreMount    =W10UImountre
    
    wim2esd       =0
    wim2swm       =0
    ISO           =0
    ISODir        =
    Delete_Source =0
    
    AutoStart     =0
    
     
  17. Windows_Addict

    Windows_Addict MDL Expert

    Jul 19, 2018
    1,364
    4,295
    60
    The option to select Perpetual2019/21 VL is only available if Office files are of the same update channel. (You have retail update channel files)
    You can use YAOCTRU to download files for that update channel,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. jokkell

    jokkell MDL Novice

    Jan 2, 2009
    47
    5
    0
    #1819 jokkell, Mar 13, 2022
    Last edited: Mar 13, 2022
    Hi Windows_Addict, I try the link to the (I thought so) LTSC image files from abbodi's post which came from the first post of the [DISCUSSION] Microsoft Office LTSC 2021 thread.
    I had read, the LTSC is always a volume license. Confusing!
    What makes it all even more confusing is the fact that the test installation with YAOCTRI from the source ProPlus2021Retail.img (I chose the Professional Plus 2021 Suite) has been installed as Office LTSC Professional Plus!
    Nevermind...
    So I must necessarily download the image file with YAOCTRU or similar tools to get the LTSC VL?

    Edit: Okay, so I have a LTSC volume license with a retail update channel now...
    @Enthousiast
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,668
    103,485
    450
    Afaik all office 2021 ISOs are retail, when Office 2021 is Volume activated it will show as LTSC.