[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
    Even if 22000/20348/22621 starter is not activatable, as a base sku it's still very useful since you can create starter first and use dism /image /set-edition to create all editions
     
  2. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
    #8402 xinso, Jun 17, 2022
    Last edited: Jun 17, 2022
    amd64_microsoft-windows-s..mponent-sku-starter_31bf3856ad364e35_10.0.10586.0_none_78b37292066e0cf0.manifest (Last wrong one)
    &
    amd64_microsoft-windows-s..mponent-sku-starter_31bf3856ad364e35_10.0.10586.0_none_f186847888092ccd.manifest (This right one)
     
  3. zhanglin

    zhanglin MDL Expert

    Jan 11, 2018
    1,014
    552
    60
    #8403 zhanglin, Jun 17, 2022
    Last edited: Jun 17, 2022
    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>
    Code:
      <IMAGE INDEX="5">
        <DIRCOUNT>19534</DIRCOUNT>
        <FILECOUNT>88435</FILECOUNT>
        <TOTALBYTES>15696249486</TOTALBYTES>
        <HARDLINKBYTES>6799025662</HARDLINKBYTES>
        <CREATIONTIME>
          <HIGHPART>0x01D8668F</HIGHPART>
          <LOWPART>0x94474321</LOWPART>
        </CREATIONTIME>
        <LASTMODIFICATIONTIME>
          <HIGHPART>0x01D87DB1</HIGHPART>
          <LOWPART>0xC991589E</LOWPART>
        </LASTMODIFICATIONTIME>
        <WIMBOOT>0</WIMBOOT>
        <WINDOWS>
          <ARCH>9</ARCH>
          <PRODUCTNAME>Microsoft® Windows® Operating System</PRODUCTNAME>
          <EDITIONID>Starter</EDITIONID>
          <INSTALLATIONTYPE>Client</INSTALLATIONTYPE>
          <SERVICINGDATA>
            <GDRDUREVISION>0</GDRDUREVISION>
            <PKEYCONFIGVERSION>10.0.22621.1;2016-01-01T00:00:00Z</PKEYCONFIGVERSION>
            <IMAGESTATE>IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE</IMAGESTATE>
          </SERVICINGDATA>
          <PRODUCTTYPE>WinNT</PRODUCTTYPE>
          <PRODUCTSUITE>Terminal Server</PRODUCTSUITE>
          <LANGUAGES>
            <LANGUAGE>zh-CN</LANGUAGE>
            <FALLBACK LANGUAGE="zh-CN">en-US</FALLBACK>
            <DEFAULT>zh-CN</DEFAULT>
          </LANGUAGES>
          <VERSION>
            <MAJOR>10</MAJOR>
            <MINOR>0</MINOR>
            <BUILD>22621</BUILD>
            <SPBUILD>1</SPBUILD>
            <SPLEVEL>0</SPLEVEL>
            <BRANCH>ni_release</BRANCH>
          </VERSION>
          <SYSTEMROOT>WINDOWS</SYSTEMROOT>
        </WINDOWS>
        <NAME>Windows 11 入门版</NAME>
        <DESCRIPTION>Windows 11 入门版</DESCRIPTION>
        <FLAGS>Starter</FLAGS>
        <DISPLAYNAME>Windows 11 Starter</DISPLAYNAME>
        <DISPLAYDESCRIPTION>Windows 11 Starter</DISPLAYDESCRIPTION>
      </IMAGE>
    </WIM>
     
  4. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
    #8404 xinso, Jun 17, 2022
    Last edited: Jun 17, 2022
    abbodi1406
    gailium119
    pivotman319

    MDL has, at least, these three experts on package production. Real, not fake, IMHO. Good.

    Who can deal with xrm-ms?

    As of now,
    abbodi1406 --> ?
    gailium119 --> No
    pivotman319 --> ?
     
  5. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    What do you mean? Create a new one or use existing?The point is, I don't have these xrm-ms licenses.
     
  6. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
    #8406 xinso, Jun 17, 2022
    Last edited: Jun 17, 2022
    I've never said that you are not able to. But you did show that you failed to deal with EnterpriseG-ppdlic.xrm-ms about language restriction recently.

    No worries. I was just talking to myself.
     
  7. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    How is this related to package creation?
    Package=Testsignable
    xrm-ms=Not Testsignable
    Even insider certs are incompatible with production builds.
    However, maybe using override product policy as the default one and remove EnterpriseG-ppdlic.xrm-ms can solve the problem
     
  8. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
    #8408 xinso, Jun 17, 2022
    Last edited: Jun 17, 2022
    I don't know about it.

    As an end-user, I just wish to have EnterpriseG working for all languages.
     
  9. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
    #8409 xinso, Jun 17, 2022
    Last edited: Jun 17, 2022
    Good job. Thank you.

    Here is the situation I just met with:

    Manual installation, OK.
    Reconstruction, NO.

    I found that, at least, Microsoft-Windows-Editions-Starter-Package installs without these two components:
    Code:
    EditionMatrix.xml
    UpgradeMatrix.xml
    
    Code:
    C:\windows\system32>dism /english /image:Z:\1 /get-currentedition
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.10586.0
    
    Current edition is:
    
    Error: 2
    
    The system cannot find the file specified.
    
    The DISM log file can be found at C:\windows\Logs\DISM\dism.log
    
    C:\windows\system32>
    
    And missing Branding. i.e. These two components were not installed.
    Code:
    amd64_microsoft-windows-branding-base-starter_31bf3856ad364e35_10.0.10586.0_none_84f22a3de2042ad4
    amd64_microsoft-windows-branding-shell-starter_31bf3856ad364e35_10.0.10586.0_none_6766b0c0b3fabdb9
    
    Same issue: Packages Installed without components in place.
     
  10. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
  11. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
    #8411 xinso, Jun 17, 2022
    Last edited: Jun 17, 2022
    Retest if reconstructed 16299.15 Windows 10 Starter is not complete or with edundant.
    Code:
    
    ====================================================================================================
    Create 16299.15 Windows 10 Starter amd64 en-US
    ====================================================================================================
    
    ------------------------------------------------------------
    Mount Core image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Remove Education
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.16299.15
    
    Removing package Microsoft-Windows-EducationEdition~31bf3856ad364e35~amd64~~10.0.16299.15
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Remove Professional
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.16299.15
    
    Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.16299.15
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Remove ProfessionalEducation
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.16299.15
    
    Removing package Microsoft-Windows-ProfessionalEducationEdition~31bf3856ad364e35~amd64~~10.0.16299.15
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Remove ProfessionalWorkstation
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.16299.15
    
    Removing package Microsoft-Windows-ProfessionalWorkstationEdition~31bf3856ad364e35~amd64~~10.0.16299.15
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Convert Core to Starter
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.16299.15
    
    Removing package Microsoft-Windows-CoreEdition~31bf3856ad364e35~amd64~~10.0.16299.15
    Removing package Microsoft-Windows-CoreEdition~31bf3856ad364e35~amd64~~10.0.16299.15
    [==========================100.0%==========================]
    
    The operation completed successfully.
    
    ------------------------------------------------------------
    Add en-US language pack
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.16299.15
    
    Processing 1 of 1 - Adding package Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.16299.15
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Remove capability
    ------------------------------------------------------------
    
    Quick Assist
    Internet Explorer
    
    ------------------------------------------------------------
    Remove old Store
    ------------------------------------------------------------
    
    Microsoft.BingWeather_4.21.2492.0_neutral_~_8wekyb3d8bbwe
    Microsoft.DesktopAppInstaller_1.8.4001.0_neutral_~_8wekyb3d8bbwe
    Microsoft.GetHelp_10.1706.1811.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Getstarted_5.11.1641.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Messaging_2017.815.2052.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Microsoft3DViewer_1.1707.26019.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MicrosoftOfficeHub_2017.715.118.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MicrosoftSolitaireCollection_3.17.8162.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MicrosoftStickyNotes_1.8.2.0_neutral_~_8wekyb3d8bbwe
    Microsoft.MSPaint_2.1709.4027.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Office.OneNote_2015.8366.57611.0_neutral_~_8wekyb3d8bbwe
    Microsoft.OneConnect_3.1708.2224.0_neutral_~_8wekyb3d8bbwe
    Microsoft.People_2017.823.2207.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Print3D_1.0.2422.0_neutral_~_8wekyb3d8bbwe
    Microsoft.SkypeApp_11.18.596.0_neutral_~_kzf8qxf38zg5c
    Microsoft.StorePurchaseApp_11706.1707.7104.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Wallet_1.0.16328.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Windows.Photos_2017.37071.16410.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsAlarms_2017.828.2050.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsCalculator_2017.828.2012.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsCamera_2017.727.20.0_neutral_~_8wekyb3d8bbwe
    microsoft.windowscommunicationsapps_2015.8241.41275.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsFeedbackHub_1.1705.2121.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsMaps_2017.814.2249.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsSoundRecorder_2017.605.2103.0_neutral_~_8wekyb3d8bbwe
    Microsoft.WindowsStore_11706.1002.94.0_neutral_~_8wekyb3d8bbwe
    Microsoft.Xbox.TCUI_1.8.24001.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxApp_31.32.16002.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxGameOverlay_1.20.25002.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxIdentityProvider_2017.605.1240.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxSpeechToTextOverlay_1.17.29001.0_neutral_~_8wekyb3d8bbwe
    Microsoft.ZuneMusic_2019.17063.24021.0_neutral_~_8wekyb3d8bbwe
    Microsoft.ZuneVideo_2019.17063.24021.0_neutral_~_8wekyb3d8bbwe
    
    ------------------------------------------------------------
    Add new Store
    ------------------------------------------------------------
    
    Microsoft.WindowsStore_12004.1001.113.0_neutral_~_8wekyb3d8bbwe
    Microsoft.StorePurchaseApp_12004.1001.113.0_neutral_~_8wekyb3d8bbwe
    Microsoft.XboxIdentityProvider_12.58.1001.0_neutral_~_8wekyb3d8bbwe
    Microsoft.DesktopAppInstaller_2019.1019.1.0_neutral_~_8wekyb3d8bbwe
    
    ============================================================
    Current Edition : Starter (Retail)
    ============================================================
    
    ------------------------------------------------------------
    Reset Starter base
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image Version: 10.0.16299.15
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Save and Unmount Starter image
    ------------------------------------------------------------
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.746
    
    Image File : Z:\16299.15_Core_to_Starter_amd64_Activated_Updatable\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ------------------------------------------------------------
    Optimize Starter image
    ------------------------------------------------------------
    
    "install.wim" original size: 3510453 KiB
    Using LZX compression with 12 threads
    Archiving file data: 6293 MiB of 6293 MiB (100%) done
    "install.wim" optimized size: 2949822 KiB
    Space saved: 560631 KiB
    
    ====================================================================================================
    16299.15 Windows 10 Starter amd64 en-US has been successfully created
    ====================================================================================================
    
    Press any key to continue . . .
    
    
    OK. This is the best I can do.
     
  12. pivotman319

    pivotman319 MDL Novice

    Mar 6, 2022
    14
    27
    0
  13. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
    #8413 xinso, Jun 17, 2022
    Last edited: Jun 17, 2022
    Q: How to auto-detect existent editions in an image?

    [Fact]
    Each edition has this Microsoft-Windows-Editions-%EDITION%-Package.

    e.g.
    Code:
    Microsoft-Windows-Editions-Education-Package~31bf3856ad364e35~amd64~~10.0.16299.15
    
    So, we can detect it and remove its edition "Microsoft-Windows-EducationEdition~31bf3856ad364e35~amd64~~10.0.16299.15".
    Code:
    dir /b %MT%\Windows\servicing\Packages\*Edition~*.mum >temp\temp.txt
    findstr /I /V "%SOURCE%Edition" temp\temp.txt >temp\target.txt
    powershell -Command "(gc temp\target.txt) -replace 'Microsoft-Windows-', '' | sc temp\target.txt" >NUL 2>&1
    powershell -Command "(gc temp\target.txt) -replace 'Edition~31bf3856ad364e35~%ARCH%~~%LVER%.mum', '' | sc temp\target.txt" >NUL 2>&1
    for /f %%x in ('findstr /i . temp\target.txt 2^>nul') do (
    copy /y files\sxs\1.xml temp >NUL 2>&1
    powershell -Command "(gc temp\1.xml) -replace '#TARGET#', '%%x' | sc temp\1.xml"
    powershell -Command "(gc temp\1.xml) -replace '#LVER#', '%LVER%' | sc temp\1.xml"
    powershell -Command "(gc temp\1.xml) -replace '#ARCH#', '%ARCH%' | sc temp\1.xml"
    echo.
    echo ------------------------------------------------------------
    echo Remove %%x
    echo ------------------------------------------------------------
    dism /english /image:%MT% /apply-unattend:temp\1.xml
    )
    
    1.xml
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <servicing>
            <package action="remove">
                <assemblyIdentity name="Microsoft-Windows-#TARGET#Edition" version="#LVER#" processorArchitecture="#ARCH#" publicKeyToken="31bf3856ad364e35" language="neutral" />
            </package>
        </servicing>
    </unattend>
    
     
  14. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
  15. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
    #8416 xinso, Jun 17, 2022
    Last edited: Jun 17, 2022
    Looking foward to it. Thanks.
     
  16. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    @xinso 16299.15 zh-TW EnterpriseG ACTIVATED!
    upload_2022-6-17_15-35-51.png
    Q: What did I do to ppdlic?
    A: I replaced EnterpriseG-ppdic.xrm-ms with Defaultppd-EnterpriseG-ppdlic.xrm-ms
     

    Attached Files:

    • fix.zip
      File size:
      233 KB
      Views:
      33
  17. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
    #8418 xinso, Jun 17, 2022
    Last edited: Jun 17, 2022
    Wish you the best finding a working solution for your package creation in official way.
     
  18. gailium119

    gailium119 MDL Addicted

    Oct 12, 2021
    790
    510
    30
    I can't create a new xrm-ms, so I use Microsoft's.
    DefaultPPd doesn't have Kernel-Mui-Language-Allowed zh-CN
    Note that I exported the productpolicy registry from an installed 16299.15 zh-cn image to replace the one in amd64_microsoft-windows-s..enterpriseg-default_31bf3856ad364e35_10.0.16299.16384_none_09dbd2554c338d53.manifest
     
  19. xinso

    xinso MDL Guru

    Mar 5, 2009
    13,695
    14,422
    340
    #8420 xinso, Jun 17, 2022
    Last edited: Jun 17, 2022
    Good finding.