Windows 11 Hotfix Repository

Discussion in 'Windows 11' started by Tito, Jul 1, 2021.

Tags:
  1. BetaWorld

    BetaWorld MDL Member

    Jan 9, 2015
    109
    249
    10
    PSFExtractor worked fine for extract files, however CABARC didn't work with long filenames. If you want to repack CAB then you should put the files in a folder with shorter path, eg. D:\test.

    Currently all tools except Dism++ rely on PSFExtractor to extract CAB+PSF. It wasn't designed to handle baseless PSFs, only express. Baseless CAB/PSFs aren't necessary for installing updates.
     
  2. BetaWorld

    BetaWorld MDL Member

    Jan 9, 2015
    109
    249
    10
    #282 BetaWorld, Oct 16, 2021
    Last edited: Oct 16, 2021
    Or manually repack CAB+PSF:
    1. Rename CAB and PSF file with the same name, eg. Windows10.0-KB5006746-x64.cab and Windows10.0-KB5006746-x64.psf. Put them in a folder with shorter path name, eg. D:\test. Otherwise CABARC will fail.
    2. Run PSFExtractor.exe <filename>.cab (or simply drag the CAB file onto PSFExtractor.exe). PSFExtractor.exe is included with UUP converter, W10UI, etc. Make sure PSFExtractor.exe has a version number >=1.0.7.0.
    3. Now you have a folder with the same name. (optional) Delete express.psf.cix.xml and historycix.cab. Run cmd or PowerShell from that folder (or cd to the folder) and execute
      Code:
      PATH\TO\cabarc.exe -r -p -m LZX:21 n ..\<new filename>.cab *
      CABARC is Microsoft Cabinet Tool and is included in Cabinet SDK and IEAK, etc.
    4. Both the folder and the new CAB will work with dism.
    Note that the method will only work with less than 65535 files as it's the limit of CAB format. Microsoft themself pack multiple CABs inside another CAB when the number of files exceeds limit. However we can't do that.
     
  3. d5aqoëp

    d5aqoëp MDL Addicted

    Jan 19, 2017
    780
    574
    30
    Has anyone’s store got borked on this preview update?
     
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,315
    340
    Yes
    both cab/psf must have the same file name, or keep the original hashed UUP name (without adding _282)
     
  5. d5aqoëp

    d5aqoëp MDL Addicted

    Jan 19, 2017
    780
    574
    30
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,315
    340
    KB5006670 is big > 2 GB update, you must use psfx2esd_CLI to convert to esd file
     
  7. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,316
    7,022
    210
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,006
    93,800
    450
    Of course it can:)
     
  9. adric

    adric MDL Expert

    Jul 30, 2009
    1,244
    1,303
    60
    Okay, I remember seeing something about not using 22000.1 for something specific in one of the MDL threads and forgot what that applied to.
     
  10. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,006
    93,800
    450
    We always use a pristine .1 ISO for offline updates integration.
     
  11. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,006
    93,800
    450
    More often than my wife does lately;):D
     
  12. tavrez

    tavrez MDL Senior Member

    Sep 28, 2015
    484
    315
    10
    #296 tavrez, Oct 20, 2021
    Last edited: Oct 20, 2021
    A question:
    Win 11 Updates in .msu format contain both .cab and .psf files in them and we can integrate them using dism command, can we create a cab file like those .msi files and integrate Win 11 updates? I mean instead of using PSFX_repack, we just create a cab and put .psf and .cab into it(plus some other config maybe)
     
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,006
    93,800
    450
    Afaik, that is what repack_psfx is made for, if it was that simple it wouldn't be needed.

    Why not just use W10UI?

    ps, it's .MSU
     
  14. tavrez

    tavrez MDL Senior Member

    Sep 28, 2015
    484
    315
    10
    #298 tavrez, Oct 20, 2021
    Last edited: Oct 21, 2021
    Typo, thanks.
    I just wanted to suggest a faster solution for it, W10UI is perfect, but what if it can be faster using this way? :D
    It was created before we saw a .msu, maybe now we know more?
    It looks like onepackage.AggregatedMetadata.cab have some good information inside of it to make this achieveable, if you like and have time, extract cab, psf, ssu cab and onepackage.AggregatedMetadata.cab from msu and repack them in another cab, and see if you can install update with dism :D
     
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,315
    340