[ARCHIVED] Windows Editions Reconstruction Project

Discussion in 'Windows 10' started by whatever127, Jan 10, 2020.

Thread Status:
Not open for further replies.
  1. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    I've compared the install.wim I created in unstaged method and the uup install.wim with Beyond Compare.
    Also there is a difference in InboxFodMetadataCache (Both files and registry)
     
  2. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    #7082 gailium119, Mar 20, 2022
    Last edited: Mar 21, 2022
    [FIX] 5-installwim_create.cmd
    [Details]
    1.Add Microsoft-Windows-Media-Placeholder-Package
    2.Removed all pauses
    3.Add .NET native images
     

    Attached Files:

  3. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    #7083 gailium119, Mar 21, 2022
    Last edited: Mar 21, 2022
    @xinso Last Problem:WindowsDefenderApplicationGuard.wim
    It only exists in professional esds and is not in sxs.
    Edit: Found it in ppipro_en-us.esd. Updating script...
     
  4. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    Minor problem: \WIndows\Winsxs\migration.xml
    The one in differrent editions are different.Not sure if it's LCU related.
     
  5. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,709
    14,434
    340
    #7085 xinso, Mar 21, 2022
    Last edited: Mar 21, 2022
    It'd be great if the script can download only default packages.

    Language packs 38
    Language features 38
    FOD ?
    FOD language packs ?

    All others, optional for users, WON'T be installed by system. Just a waste of time downloading and expanding.
     
  6. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    #7086 gailium119, Mar 21, 2022
    Last edited: Mar 21, 2022
    I initially created this to store all of them.ALL in esd,less than 7gb.
    Code:
    6.83 GB (7,342,176,214 bytes)
     
  7. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,709
    14,434
    340
    #7087 xinso, Mar 21, 2022
    Last edited: Mar 21, 2022
    4 wim created. How to use?
     
  8. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    Hold on.This is the script I'm writing:
    Code:
    cd /d %~dp0
    echo off
    cls
    del /s /q .\pkgs.vhd >nul 2>nul
    if exist .\pkgs.vhd echo Unmount vhd! &&pause &&exit
    if exist ..\unstaged.wim (set unstaged=..\unstaged.wim) else set unstaged=..\unstaged.esd
    if not exist %unstaged% echo Couldn't find %unstaged% &&pause&&exit
    echo unstaged set to %unstaged%
    pause
    echo ..........................
    echo ...Creating vhd...
    echo ..........................
    echo create vdisk file="%~dp0pkgs.vhd" maximum=161060 type=expandable >vdisk.txt
    echo select vdisk file="%~dp0pkgs.vhd" >>vdisk.txt
    echo attach vdisk  >>vdisk.txt
    echo create partition primary >>vdisk.txt
    echo assign letter=Z >>vdisk.txt
    echo format quick label=pkgs >>vdisk.txt
    diskpart /s .\VDISK.TXT 
    echo ..........................
    echo ...Releasing Unstaged.wim...
    echo ..........................
    rmdir .\logs  /s /q >nul
    md .\logs  >nul
    rmdir .\temp /s /q >nul
    md .\temp >nul
    rmdir .\barebone /s /q >nul
    md .\barebone >nul
    rmdir .\mount /s /q >nul
    md .\mount >nul
    7z x %unstaged% "packages" -y -o"Z:\" 
    copy /y .\wincore.wim ..\install.wim
    rmdir /s /q .\mount >nul 2>nul
    md mount >nul
    dism /mount-wim /wimfile:..\install.wim /mountdir:.\mount /index:1
    rem dism  /logpath:logs\apply.log  /Apply-image /imagefile:..\unstaged.wim /index:1 /applydir:Z: || pause >nul && exit
    echo ..........................
    echo ...Creating barebone.wim...
    echo ..........................
    7z x %unstaged% "windows" -y -o".\mount"
    7z x %unstaged% "users" -y -o".\mount"
    dism /commit-image /mountdir:.\mount
    echo ..........................
    echo ...Adding Edition...
    echo ..........................
    dism /logpath:logs\1.log  /image:mount /apply-unattend:1.xml || pause >nul && exit
    echo ..........................
    echo ...Adding Langpack...
    echo ..........................
    7z x %unstaged% "langpack\zh-cn" -y -o"Z:\"
    dism /logpath:logs\2.log /image:mount /apply-unattend:2.xml || pause >nul && exit
    pause
    echo ...Adding fods...
    echo ..........................
    rem for %%i in (..\fods\*) do dism /logpath:logs\fods.log /scratchdir:"%~dp0temp" /image:mount /add-package:..\fods\%%i || pause >nul && exit
    rem for %%i in (..\fods2\*) do dism /logpath:logs\fods2.log /scratchdir:"%~dp0temp" /image:mount /add-package:..\fods2\%%i || pause >nul && exit
    echo ..........................
    echo ...Saving image...
    echo ..........................
    rem dism /logpath:logs\unmount.log /unmount-wim /mountdir:mount /commit || pause >nul && exit
    
    
     
  9. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,709
    14,434
    340
  10. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,709
    14,434
    340
    #7091 xinso, Mar 21, 2022
    Last edited: Mar 21, 2022
    I've forgotten how to create a ramdisk since I use Primo Ramdisk.
     
  11. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    Any ramdisk is acceptable. I just need to know how to do it without GUI.
     
  12. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,709
    14,434
    340
    #7093 xinso, Mar 21, 2022
    Last edited: Mar 21, 2022
    Ramdisk, WD disabled for running unstaged-gailium119:
    Code:
    Conversion took 1:28:31.00 (5311.00s total)
    
     
  13. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    It'll take three times longer when converting to esd.
     
  14. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    @xinso I've found that generating edition xml and langpack xml seperately is quite inefficient. Can I use this?
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <servicing>
            <package action="install">
                <assemblyIdentity name="Microsoft-Windows-ProfessionalEdition" version="10.0.22000.1"  processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" />
                <source location="Z:\packages\enterprise.mum" />
            </package>
            <package action="install">
                <assemblyIdentity name="Microsoft-Windows-Client-LanguagePack-Package" version="10.0.22000.1"  processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="en-US" />
                <source location="Z:\langpack\en-US\update.mum" />
            </package>
        </servicing>
    </unattend>
    
    
     
  15. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,709
    14,434
    340
    #7096 xinso, Mar 21, 2022
    Last edited: Mar 21, 2022
    You want to make "Unstaged ISO" alike official one, or "Unstaged image(s) in ISO"?
    That is for "Unstaged image".
    "Unstaged ISO" installs an Edition by enterprise.mum in ISO\sources\install.wim\Packages folder. And Language pack in ISO\LangPacks\xx-XX\lp.cab.
    Be aware.
     
  16. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,709
    14,434
    340
    #7097 xinso, Mar 21, 2022
    Last edited: Mar 21, 2022
    Feedback:

    [My way]
    19041.1 Image
    +
    Ngen.exe eqi RunOnce registry
    +
    19044.1566 LCU Offline
    +
    Windows Update 19044.1586
    =
    Update succeeded (This way never fails)

    [Your way]
    19041.1 Image
    +
    19041.1 Native Images & Native Image registry
    +
    19044.1566 LCU Offline
    +
    Windows Update 19044.1586
    =
    Update failed

    Maybe bad luck. But I need assurance , not luck.
     
  17. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    Can you give me the dism.log?
     
  18. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    #7099 gailium119, Mar 21, 2022
    Last edited: Mar 21, 2022
    Neither. I just use a way to store uup files in least space.
     
  19. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    Tested 22000.1 Unstaged WITH TWEAK + 22000.581 SSU +22000.588
    Code:
    C:\SxSStage\_work>dism /image:mount /Add-package:"D:\SSU-22000.581-x64.cab"
    
    部署映像服务和管理工具
    版本: 10.0.22468.1000
    
    映像版本: 10.0.22000.1
    
    正在处理 1 (共 1) - 正在添加程序包 Package_for_ServicingStack_581~31bf3856ad364e35~amd64~~22000.581.1.0
    [==========================100.0%==========================]
    操作成功完成。
    
    C:\SxSStage\_work>dism /image:mount /Add-package:"D:\Windows10.0-KB5011563-x64\update.mum"
    
    部署映像服务和管理工具
    版本: 10.0.22468.1000
    
    映像版本: 10.0.22000.1
    
    正在处理 1 (共 1) - 正在添加程序包 Package_for_RollupFix~31bf3856ad364e35~amd64~~22000.588.1.7
    [==========================100.0%==========================]
    操作成功完成。
    
    C:\SxSStage\_work>dism /image:mount /Cleanup-image /startcomponentcleanup /resetbase
    
    部署映像服务和管理工具
    版本: 10.0.22468.1000
    
    映像版本: 10.0.22000.588
    
    [=====                      10.0%                          ]
    [==========================100.0%==========================]
    操作成功完成。
    
    @xinso I removed the fodmetadata tweak but added the nativeimage tweak.