[ARCHIVED] Windows Editions Reconstruction Project

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

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

    xinso MDL Guru

    Mar 5, 2009
    13,711
    14,436
    340
    Well, ATM it happened to 22000.1041 with 19041.1200 LTSC components.
     
  2. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,711
    14,436
    340
    #9422 xinso, Sep 17, 2022
    Last edited: Sep 17, 2022
    Exactly. Only Dism++ can make it, for me. (I couldn't sleep well these two days all for "Semi-Automatic".)
     
  3. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    Last time I checked (like one year ago) it integrated w/o any problem in a single pass (which was already different than 14393 that requires two steps), maybe the newest LCU have problems like 14393) I'll retest later today.

    That said the only decent way I know to integrate a LCU that requires two pass is to apply the image

    apply the first older CU
    deploy the wim in a VHDx
    start it inside hyper-v (or vmware), virtualbox requires a VHD, not VHDX.
    press Shift+F10 on first boot
    launch sysprep -> generalize/shut down
    capture the image inside a new wim (using dism or wimlib)
    apply the second LCU (this can be done also online before sysprep generalize)

    (not mandatory but suggested, remove some not neded folders that the booted image creates on first boot)

    I know is not quick, but surely better than killing pending.xml
     
  4. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,711
    14,436
    340
    Yeah, I know that. But I'd like the way Dism++ does.
     
  5. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    While I guess the author of dism++ knows what he is doing, I'm still a bit scared given if the official tool of MS refuses to do a thing (supposedly) it does that for a reason.
     
  6. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,711
    14,436
    340
    It seems that Dism++ uses some tweak before install updates.

    (When it was starting to let users test, I saw the dialog mentioned it.)
     
  7. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,014
    552
    60
    Excuse me, how to add the original .1 version to install.wim after adding the cumulatively updated install.wim and reset it with Cleanup-Image /StartComponentCleanup /ResetBase?
     
  8. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,711
    14,436
    340
    #9428 xinso, Sep 17, 2022
    Last edited: Sep 17, 2022
    Sorry, I cannot understand your problem. Would you mind expressing what you need in other way?
     
  9. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,014
    552
    60
    Similar to cn_windows_10_enterprise_ltsc_2021_x64_X22, Microsoft-Windows-EnterpriseSEdition~31bf3856ad364e35~amd64~~10.0.19041.1.mum has been removed, how to add it back?
     
  10. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,711
    14,436
    340
    #9430 xinso, Sep 17, 2022
    Last edited: Sep 17, 2022
    stage 19041.1288 EnterpriseS & install 19041.1 EnterpriseS at the same time (in one xml only)
     
  11. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,014
    552
    60
    #9431 zhanglin, Sep 17, 2022
    Last edited: Sep 17, 2022
    Stage 19041.1288 EnterpriseS and install 19041.1 EnterpriseS. I tried it, but I couldn't do it with Apply-Unattend.
     
  12. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,711
    14,436
    340
    #9432 xinso, Sep 17, 2022
    Last edited: Sep 17, 2022
    You need these packages being expanded
    Code:
    microsoft-windows-client-desktop-required-package.esd
    microsoft-windows-client-desktop-required-wow64-package.esd
    microsoft-windows-client-features-package.esd
    microsoft-windows-client-features-wow64-package.esd
    microsoft-windows-editionpack-professional-package.esd
    microsoft-windows-editionpack-professional-wow64-package.esd
    microsoft-windows-editionspecific-enterprises-package.esd
    microsoft-windows-foundation-package.esd
    microsoft-windows-regulatedpackages-package.esd
    microsoft-windows-regulatedpackages-wow64-package.esd
    microsoft-windows-required-shellexperiences-desktop-package.esd
    microsoft-windows-required-shellexperiences-desktop-wow64-package.esd
    
    +
    Microsoft-Windows-EnterpriseSEdition~31bf3856ad364e35~amd64~~10.0.19041.1.cat
    Microsoft-Windows-EnterpriseSEdition~31bf3856ad364e35~amd64~~10.0.19041.1.mum
    +
    1.xml

    in same folder, e.g. sxs.
    Code:
    echo.
    echo ------------------------------------------------------------
    echo Convert %SEDITION% to %TEDITION%
    echo ------------------------------------------------------------
    dism /english /image:%MT% /apply-unattend:temp\sxs\1.xml
    
     
  13. zwl29107

    zwl29107 MDL Addicted

    Jul 10, 2022
    601
    700
    30
    What is Quick-Switch?
     
  14. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,014
    552
    60
    I've tried and it doesn't work either.
    The difficulty is that the update contains f\r\n, even baseless packages cannot be installed or staged directly with add-package or Apply-Unattend, because f\r\n will disappear after installation.
     
  15. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,014
    552
    60
    Maybe the understanding is different, I have done most of the versions in one install.wim, only StarterEdition targetState="Installed" other targetState="Staged" , through get-targeteditions, Set-Edition to bring the desired version.

    Code:
    Microsoft Windows [版本 10.0.19044.1766]
    (c) Microsoft Corporation。保留所有权利。
    
    C:\Windows\system32>Dism /image:g:\ /get-CurrentEdition
    
    部署映像服务和管理工具
    版本: 10.0.19041.844
    
    映像版本: 10.0.22621.1
    
    当前版本为:
    
    当前版本 : Starter
    
    操作成功完成。
    
    C:\Windows\system32>Dism /image:g:\ /get-targeteditions
    
    部署映像服务和管理工具
    版本: 10.0.19041.844
    
    映像版本: 10.0.22621.1
    
    可以升级的版本:
    
    目标版本 : EnterpriseG
    目标版本 : Professional
    目标版本 : CloudEdition
    目标版本 : ProfessionalEducation
    目标版本 : ProfessionalWorkstation
    目标版本 : Education
    目标版本 : ProfessionalCountrySpecific
    目标版本 : ProfessionalSingleLanguage
    目标版本 : ServerRdsh
    目标版本 : IoTEnterprise
    目标版本 : Enterprise
    目标版本 : EnterpriseS
    目标版本 : IoTEnterpriseS
    目标版本 : CoreCountrySpecific
    目标版本 : Core
    目标版本 : CoreSingleLanguage
    
    操作成功完成。
    
    C:\Windows\system32>DISM /Image:g:\ /Set-Edition:Enterprise
    
    部署映像服务和管理工具
    版本: 10.0.19041.844
    
    映像版本: 10.0.22621.1
    
    开始升级组件...
    开始安装产品密钥...
    产品密钥安装已完成。
    
    正在添加程序包 Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.22621.1
    正在删除程序包 Microsoft-Windows-StarterEdition~31bf3856ad364e35~amd64~~10.0.22621.1
    正在删除程序包 Microsoft-Windows-CoreCountrySpecificEdition~31bf3856ad364e35~amd64~~10.0.22621.1
    正在删除程序包 Microsoft-Windows-CoreEdition~31bf3856ad364e35~amd64~~10.0.22621.1
    正在删除程序包 Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.22621.1
    正在删除程序包 Microsoft-Windows-EnterpriseSEdition~31bf3856ad364e35~amd64~~10.0.22621.1
    [==========================100.0%==========================]
    
    
    
    
    
    组件升级已完成。
    
    开始应用特定于版本的设置...
    特定于版本的设置应用已完成。
    
    操作成功完成。
    
    C:\Windows\system32>
     
  16. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,711
    14,436
    340
    #9436 xinso, Sep 17, 2022
    Last edited: Sep 17, 2022
    Add 19041.1 EnterpriseS to 19044.1288 EnterpriseS

    1.xml

    Do not remove 19041.1288 EnterpriseS
    Install 19041.1 EnterpriseS and set as active
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <servicing>
            <package action="stage">
                <assemblyIdentity name="Microsoft-Windows-EnterpriseSEdition" version="10.0.19041.1288" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" />
            </package>
            <package action="install">
                <assemblyIdentity name="Microsoft-Windows-EnterpriseSEdition" version="10.0.19041.1" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" />
    <source location="Microsoft-Windows-EnterpriseSEdition~31bf3856ad364e35~amd64~~10.0.19041.1.mum" />
            </package>
        </servicing>
    </unattend>
    
    Code:
    
    ------------------------------------------------------------
    Prepare sources
    ------------------------------------------------------------
    
    ------------------------------------------------------------
    Delete temporary folder
    ------------------------------------------------------------
    
    ------------------------------------------------------------
    Extract packages
    ------------------------------------------------------------
    
    microsoft-windows-client-desktop-required-package.esd
    
    Creating files: 18034 of 18034 (100%) done
    Extracting file data: 2453 MiB of 2453 MiB (100%) done
    Applying metadata to files: 18034 of 18034 (100%) done
    Done extracting files.
    
    microsoft-windows-client-desktop-required-wow64-package.esd
    
    Creating files: 6215 of 6215 (100%) done
    Extracting file data: 607 MiB of 607 MiB (100%) done
    Applying metadata to files: 6215 of 6215 (100%) done
    Done extracting files.
    
    microsoft-windows-client-features-package.esd
    
    Creating files: 6573 of 6573 (100%) done
    Extracting file data: 930 MiB of 930 MiB (100%) done
    Applying metadata to files: 6573 of 6573 (100%) done
    Done extracting files.
    
    microsoft-windows-client-features-wow64-package.esd
    
    Creating files: 3157 of 3157 (100%) done
    Extracting file data: 267 MiB of 267 MiB (100%) done
    Applying metadata to files: 3157 of 3157 (100%) done
    Done extracting files.
    
    microsoft-windows-editionpack-core-package.esd
    
    Creating files: 4565 of 4565 (100%) done
    Extracting file data: 486 MiB of 486 MiB (100%) done
    Applying metadata to files: 4565 of 4565 (100%) done
    Done extracting files.
    
    microsoft-windows-editionpack-core-wow64-package.esd
    
    Extracting file data: 39 MiB of 39 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-editionpack-ppipro-package.esd
    
    Creating files: 8655 of 8655 (100%) done
    Extracting file data: 1528 MiB of 1528 MiB (100%) done
    Applying metadata to files: 8655 of 8655 (100%) done
    Done extracting files.
    
    microsoft-windows-editionpack-ppipro-wow64-package.esd
    
    Extracting file data: 57 MiB of 57 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-editionspecific-core-package.esd
    
    Extracting file data: 5815 KiB of 5815 KiB (100%) done
    Done extracting files.
    
    microsoft-windows-editionspecific-corecountryspecific-package.esd
    
    Extracting file data: 5143 KiB of 5143 KiB (100%) done
    Done extracting files.
    
    microsoft-windows-editionspecific-coren-package.esd
    
    Extracting file data: 4898 KiB of 4898 KiB (100%) done
    Done extracting files.
    
    microsoft-windows-editionspecific-enterpriseg-package.esd
    
    Extracting file data: 54 MiB of 54 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-editionspecific-enterprisegn-package.esd
    
    Extracting file data: 54 MiB of 54 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-editionspecific-enterprises-package.esd
    
    Extracting file data: 27 MiB of 27 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-editionspecific-enterprisesn-package.esd
    
    Extracting file data: 26 MiB of 26 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-editionspecific-professional-package.esd
    
    Extracting file data: 82 MiB of 82 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-editionspecific-professional-wow64-package.esd
    
    Extracting file data: 737 KiB of 737 KiB (100%) done
    Done extracting files.
    
    microsoft-windows-editionspecific-professionaln-package.esd
    
    Extracting file data: 77 MiB of 77 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-foundation-package.esd
    
    Extracting file data: 27 KiB of 27 KiB (100%) done
    Done extracting files.
    
    microsoft-windows-not-supported-on-ltsb-package.esd
    
    Extracting file data: 84 KiB of 84 KiB (100%) done
    Done extracting files.
    
    microsoft-windows-not-supported-on-ltsb-wow64-package.esd
    
    Extracting file data: 29 MiB of 29 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-regulatedpackages-package.esd
    
    Extracting file data: 139 MiB of 139 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-regulatedpackages-wow64-package.esd
    
    Extracting file data: 61 MiB of 61 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-required-shellexperiences-desktop-package.esd
    
    Extracting file data: 34 MiB of 34 MiB (100%) done
    Done extracting files.
    
    microsoft-windows-required-shellexperiences-desktop-wow64-package.esd
    
    Extracting file data: 6326 KiB of 6326 KiB (100%) done
    Done extracting files.
    
    ======================================================================================================================
    Convert 19041.1288 EnterpriseS en-US to EnterpriseS (without Store) en-US amd64
    ======================================================================================================================
    
    ------------------------------------------------------------
    Mount EnterpriseS image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Reset EnterpriseS base
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.19044.1288
    
    [===========                20.0%                          ]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Convert EnterpriseS to EnterpriseS
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.19044.1288
    
    [==========================100.0%==========================]
    
    The operation completed successfully.
    
    Press any key to continue . . .
    
    
     
  17. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    I rebranded my method as SKUwitch to avoid confusion with "Quick Switch"
     
  18. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    The index can be 'all'.
    Code:
    wimlib-imagex export install.wim all install.esd --solid --threads=2
    PS. wimlib-imagex can limit threads, helpful when creating solid images.
     
  19. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150

    Thanks, for pointing out. Anyway what I meant was that "optimize" is a shorter/quicker command to do basically one thing, while export is a more complex command meant to do more things. One of such things overlaps what optimize does.

    That said I rarely deal with multi index wims as I prefer to have multiple (virgin or not) VHDS, ready to be booted, stored in a deduped volume to save space, which is roughly what dism does with multi index WIMs). The difference is that I don't have to waste my time applying, and a quick copy is all I need.
     
  20. zwl29107

    zwl29107 MDL Addicted

    Jul 10, 2022
    601
    700
    30
    #9440 zwl29107, Sep 17, 2022
    Last edited: Sep 17, 2022
    Stage each edition, and modify xxxxxxxMatrix.xml?