How to Export a set of capabilities into a new repository (better use ready FOD iso)

Discussion in 'Windows 10' started by sebus, Dec 7, 2019.

  1. sebus

    sebus MDL Guru

    Joined:
    Jul 23, 2008
    Messages:
    6,201
    Likes Received:
    1,945
    Trophy Points:
    210
    #1 sebus, Dec 7, 2019
    Last edited: Dec 7, 2019
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,067
    Likes Received:
    55,427
    Trophy Points:
    340
    I believe the files in C:Windows\servicing\FodMetadata & InboxFodMetadataCache are the key to accomplish that
    but i were not able to get it to work

    can you post the files/folders structure of FOD iso?
     
  3. sebus

    sebus MDL Guru

    Joined:
    Jul 23, 2008
    Messages:
    6,201
    Likes Received:
    1,945
    Trophy Points:
    210
    Attached

    I have not yet tested if the mounted iso as source is enough without internet conenction
     

    Attached Files:

  4. sebus

    sebus MDL Guru

    Joined:
    Jul 23, 2008
    Messages:
    6,201
    Likes Received:
    1,945
    Trophy Points:
    210
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,067
    Likes Received:
    55,427
    Trophy Points:
    340
    I had a success
    Code:
    dism /image:Z:\ /Export-Source /Source:UUP\18362\ar-sa /Target:UUP\new /CapabilityName:Language.Basic~~~ar-sa~0.0.1.0
    Source folder contents:
    Code:
    \metadata\DesktopTargetCompDB_ar-sa.xml.cab
    \metadata\DesktopTargetCompDB_Neutral.xml.cab
    FoDMetadata_Client.cab
    Microsoft-Windows-Client-LanguagePack-Package_ar-sa~31bf3856ad364e35~x86~ar-sa~.esd
    microsoft-windows-languagefeatures-basic-ar-sa-package~31bf3856ad364e35~x86~~.cab
    microsoft-windows-languagefeatures-ocr-ar-sa-package~31bf3856ad364e35~x86~~.cab
    microsoft-windows-languagefeatures-texttospeech-ar-eg-package~31bf3856ad364e35~x86~~.cab
    microsoft-windows-languagefeatures-texttospeech-ar-sa-package~31bf3856ad364e35~x86~~.cab
    
    created-contents in Target folder:
    Code:
    \metadata\DesktopTargetCompDB_ar-sa.xml
    \metadata\DesktopTargetCompDB_ar-sa.xml.cab
    \metadata\DesktopTargetCompDB_Neutral.xml
    \metadata\DesktopTargetCompDB_Neutral.xml.cab
    \metadata\DeviceInventory.xml
    \metadata\UpdateAgent.dll
    FoDMetadata_Client.cab
    Microsoft-Windows-LanguageFeatures-Basic-ar-sa-Package~31bf3856ad364e35~x86~~.cab
    
    it seems the only purpose of offline image is to verify the capabilities, it cannot be used to actually export (i.e. create) fod files to the target custom repo

    i could not get /IncludeImageCapabilities to work, always return error about invalid arguments

    i found reference to Recipe file in CbsCore.dll, but could not get it to work either
    Code:
    <?xml version='1.0' encoding='utf-8'?>
    <Recipe xmlns="urn:schemas-microsoft-com:os-recipe">
        <Features>
            <Feature Id="Language.Basic~en-us~1.0" />
        </Features>
    </Recipe>
    
     
  6. sebus

    sebus MDL Guru

    Joined:
    Jul 23, 2008
    Messages:
    6,201
    Likes Received:
    1,945
    Trophy Points:
    210
    #6 sebus, Dec 14, 2019
    Last edited: Dec 14, 2019
    (OP)
    Thanks, but it is usual MS half baked solution

    So there is no /online option?

    Did you create source by hand (copy/extract from UUP)

    Full set of UUP in all languages or just Arabic (Saudi Arabia)
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,067
    Likes Received:
    55,427
    Trophy Points:
    340
    No, Dism is clear about it
    Code:
    Export repository is only supported offline
    yes, i created it manually, based on your posted FOD structure.txt
    i have en-us files also

    these log files can give a clear hint on how it works
    C:\Windows\Logs\DISM\dism.log
    C:\Windows\Logs\MoSetup\UpdateAgent.log