[GUIDE] [DISCUSSION] Windows Editions Reconstructions

Discussion in 'Windows 10' started by TesterMachineOS, Sep 3, 2024.

  1. pp03

    pp03 MDL Expert

    Apr 12, 2014
    1,482
    524
    60
    can you test it please? i wonder if you will have same error
     
  2. winosr25

    winosr25 MDL Senior Member

    May 14, 2024
    442
    547
    10
    Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~pl-PL~10.0.22621.1 is not up to date, therefore an error occurs. The language pack with ESD or SXS source is better; with the SXS pack, all files are up to date and it avoids duplicates in the SXS folder. This is also the principle of rebuilding: avoid having an SXS file that exceeds 7 GB compressed.
     
  3. winosr25

    winosr25 MDL Senior Member

    May 14, 2024
    442
    547
    10
    SXS source code required for the language pack with live update for rebuilding
    example 28000.1 to 28000.1340

    Microsoft-Windows-Client-LanguagePack-Package28000.1 error

    rebuilding


    Microsoft-Windows-Client-LanguagePack-Package28000.1340 ok
     
  4. pp03

    pp03 MDL Expert

    Apr 12, 2014
    1,482
    524
    60
    if i understand well, do i need for example Microsoft-Windows-Client-LanguagePack-Package 22621.2428?
     
  5. xinso

    xinso MDL Guru

    Mar 5, 2009
    15,089
    15,292
    340
    Code:
    C:\windows\system32>dism /english /logpath:z:\1.log /image:K: /apply-unattend:z:\winsxs\1.xml
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22621.1
    
    Removing package Microsoft-Windows-WinPE-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Removing package Microsoft-Windows-WinPE-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    [==========================100.0%==========================]
    
    The operation completed successfully.
    
    C:\windows\system32>dism /english /logpath:z:\1.log /image:K: /add-package:z:\winsxs\Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1.mum
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    C:\windows\system32>dism /english /image:k: /get-currentedition
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22621.1
    
    Current edition is:
    
    Current Edition : EnterpriseS
    
    The operation completed successfully.
    
    C:\windows\system32>
    
     
  6. pp03

    pp03 MDL Expert

    Apr 12, 2014
    1,482
    524
    60
    how did you do it?
     
  7. winosr25

    winosr25 MDL Senior Member

    May 14, 2024
    442
    547
    10
    if i understand well, do i need for example Microsoft-Windows-Client-LanguagePack-Package 22621.2428?
    yes source sxs
     
  8. winosr25

    winosr25 MDL Senior Member

    May 14, 2024
    442
    547
    10
    #3948 winosr25, Dec 28, 2025
    Last edited: Dec 28, 2025
    You create your OS 22621.2428 with UUP Dump, the 4 versions (core, coren, pro, pron), and you extract the files, and then you use

    Microsoft-Windows-Client-LanguagePack-Package22621.2428 mum
     
  9. xinso

    xinso MDL Guru

    Mar 5, 2009
    15,089
    15,292
    340
    By "official" Neutral winre.wim.
     
  10. xinso

    xinso MDL Guru

    Mar 5, 2009
    15,089
    15,292
    340
  11. pp03

    pp03 MDL Expert

    Apr 12, 2014
    1,482
    524
    60
    i'm trying with winpe (index:1 from boot.wim)
     
  12. pp03

    pp03 MDL Expert

    Apr 12, 2014
    1,482
    524
    60
    downloading right now
     
  13. xinso

    xinso MDL Guru

    Mar 5, 2009
    15,089
    15,292
    340
  14. Ace2

    Ace2 MDL Guru

    Oct 10, 2014
    2,206
    1,909
    90
    #3954 Ace2, Dec 28, 2025
    Last edited: Dec 28, 2025
    Code:
    You need to correct
    
    [HKEY_LOCAL_MACHINE\zSOFTWARE\Microsoft\Windows\CurrentVersion]
    "ProgramFilesDir"="X:\\$windows.~bt\\Program Files"
    "CommonFilesDir"="X:\\$windows.~bt\\Program Files\\Common Files"
    
    [HKEY_LOCAL_MACHINE\zSOFTWARE\Microsoft\Windows NT\CurrentVersion]
    "SystemRoot"="X:\\$windows.~bt\\Windows"
    
    Should be
    
    [HKEY_LOCAL_MACHINE\zSOFTWARE\Microsoft\Windows\CurrentVersion]
    "ProgramFilesDir"="X:\\Program Files"
    "CommonFilesDir"="X:\\Program Files\\Common Files"
    
    [HKEY_LOCAL_MACHINE\zSOFTWARE\Microsoft\Windows NT\CurrentVersion]
    "SystemRoot"="X:\\Windows"
    
    need to remove $windows.~bt\\
     
  15. pp03

    pp03 MDL Expert

    Apr 12, 2014
    1,482
    524
    60
    still the same :(
     
  16. Ace2

    Ace2 MDL Guru

    Oct 10, 2014
    2,206
    1,909
    90
    which version are you building ? 22621.1 Pro working for me...
     
  17. pp03

    pp03 MDL Expert

    Apr 12, 2014
    1,482
    524
    60
    22621.1 pro
     
  18. Ace2

    Ace2 MDL Guru

    Oct 10, 2014
    2,206
    1,909
    90
    Code:
    C:\Users\User>Dism /Image:C:\mount /Apply-Unattend:C:\1.xml
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.22621.1
    
    [==========================100.0%==========================]
    
    The operation completed successfully.
    
    C:\Users\User>Dism /Image:C:\mount /Apply-Unattend:C:\2.xml
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.22621.1
    
    [==========================100.0%==========================]
    
    
    The operation completed successfully.
    
    C:\Users\User>Dism /Image:C:\mount /Apply-Unattend:C:\3.xml
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.22621.1
    
    Removing package Microsoft-Windows-WinPE-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    C:\Users\User>
     
  19. pp03

    pp03 MDL Expert

    Apr 12, 2014
    1,482
    524
    60
    error 0x800700a1 (error 161) when adding languagepack

    can you share your 1.xml, 2.xml and 3.xml?
     
  20. Ace2

    Ace2 MDL Guru

    Oct 10, 2014
    2,206
    1,909
    90
    #3960 Ace2, Dec 28, 2025
    Last edited: Dec 28, 2025
    Code:
    *
    Extract boot.wim Index 1 to install.wim
    
    Dism /Mount-Image /ImageFile:C:\install.wim /Index:1 /MountDir:C:\mount
    
    *
    
    Dism /Image:C:\mount /Cleanup-Image /StartComponentCleanup /ResetBase
    
    *
    
    Reg.exe load    HKLM\zSOFTWARE C:\mount\Windows\System32\config\SOFTWARE
    Reg.exe delete "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion" /v "ProgramFilesDir" /f
    Reg.exe delete "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion" /v "CommonFilesDir" /f
    Reg.exe delete "HKLM\zSOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "SystemRoot" /f
    Reg.exe add    "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion" /v "ProgramFilesDir" /t REG_SZ /d "X:\Program Files" /f
    Reg.exe add    "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion" /v "CommonFilesDir" /t REG_SZ /d "X:\Program Files\Common Files" /f
    Reg.exe add    "HKLM\zSOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "SystemRoot" /t REG_SZ /d "X:\Windows" /f
    Reg.exe unload  HKLM\zSOFTWARE
    
    *
    
    Reg.exe load HKLM\zSOFTWARE C:\mount\Windows\System32\config\SOFTWARE
    
    Reg.exe query "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages" > %USERPROFILE%\Desktop\Owners.reg
    
    EDIT %USERPROFILE%\Desktop\Owners.reg
    
    ADD Windows Registry Editor Version 5.00
    
    REPLACE ALL HKEY WITH [-HKEY
    
    REPLACE ALL 10.0.22621.1 WITH 10.0.22621.1\Owners]
    
    Reg.exe import %USERPROFILE%\Desktop\Owners.reg
    
    Reg.exe unload HKLM\zSOFTWARE
    
    *
    
    Dism /Image:C:\mount /Get-Packages
    
    *
    
    Dism /Image:C:\mount /Remove-Package /PackageName:Microsoft-Windows-WinPE-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-ATBroker-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-AudioCore-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-AudioDrivers-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-EnhancedStorage-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-Narrator-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-Scripting-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-SecureStartup-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-Speech-TTS-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-SRH-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-SRT-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-WDS-Tools-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-WMI-Package~31bf3856ad364e35~amd64~en-US~10.0.22621.1
    
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-ATBroker-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-AudioCore-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-AudioDrivers-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-EnhancedStorage-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-Narrator-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-Scripting-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-SecureStartup-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-Speech-TTS-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-SRH-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-SRT-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-WDS-Tools-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    Dism /Image:C:\mount /Remove-Package /PackageName:WinPE-WMI-Package~31bf3856ad364e35~amd64~~10.0.22621.1
    
    *
    
    Windows 10.0.22621.1 Pro install.wim as sxs.wim
    
    Dism /Mount-Image /ImageFile:C:\sxs.wim /Index:1 /MountDir:C:\sxs
    
    move C:\sxs\Windows\servicing\Packages\*.cat    C:\sxs\Windows\WinSxS
    move C:\sxs\Windows\servicing\Packages\*.mum    C:\sxs\Windows\WinSxS
    move C:\sxs\Windows\WinSxS\Manifests\*.manifest C:\sxs\Windows\WinSxS
    
    *
    
    Dism /Image:C:\mount /Apply-Unattend:C:\1.xml
    Dism /Image:C:\mount /Apply-Unattend:C:\2.xml
    Dism /Image:C:\mount /Apply-Unattend:C:\3.xml
    
    *
    
    Dism /Image:C:\mount /Set-Allintl:en-US
    
    *
    
    Dism /Image:C:\mount /Get-CurrentEdition
    Dism /Image:C:\mount /Get-TargetEditions
    Dism /Image:C:\mount /Set-Edition:IoTEnterprise
    
    *

    Code:
    1.xml
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <servicing>
            <package action="stage">
                <assemblyIdentity name="Microsoft-Windows-ProfessionalEdition" version="10.0.22621.1" processorArchitecture="amd64" language="neutral" buildType="release" publicKeyToken="31bf3856ad364e35" />
                <source location="C:\sxs\Windows\WinSxS\Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.22621.1.mum" />
            </package>
            <package action="stage">
                <assemblyIdentity name="Microsoft-Windows-Client-LanguagePack-Package" version="10.0.22621.1" processorArchitecture="amd64" language="en-US" buildType="release" publicKeyToken="31bf3856ad364e35" />
                <source location="C:\Microsoft-Windows-Client-LanguagePack-Package_en-us-amd64-en-us.esd" />
            </package>
        </servicing>
    </unattend>
    
    2.xml
    
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <servicing>
            <package action="stage">
                <assemblyIdentity name="Microsoft-Windows-WinPE-Package" version="10.0.22621.1" processorArchitecture="amd64" language="neutral" buildType="release" publicKeyToken="31bf3856ad364e35" />
            </package>
            <package action="install">
                <assemblyIdentity name="Microsoft-Windows-ProfessionalEdition" version="10.0.22621.1" processorArchitecture="amd64" language="neutral" buildType="release" publicKeyToken="31bf3856ad364e35" />
            </package>
            <package action="install">
                <assemblyIdentity name="Microsoft-Windows-Client-LanguagePack-Package" version="10.0.22621.1" processorArchitecture="amd64" language="en-US" buildType="release" publicKeyToken="31bf3856ad364e35" />
            </package>
        </servicing>
    </unattend>
    
    3.xml
    
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <servicing>
            <package action="remove">
                <assemblyIdentity name="Microsoft-Windows-WinPE-Package" version="10.0.22621.1" processorArchitecture="amd64" language="neutral" buildType="release" publicKeyToken="31bf3856ad364e35" />
            </package>
        </servicing>
    </unattend>

    Untouched Microsoft-Windows-Client-LanguagePack-Package_en-us-amd64-en-us.esd