Windows 11 Hotfix Repository

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

Tags:
  1. BetaWorld

    BetaWorld MDL Member

    Jan 9, 2015
    111
    272
    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
    111
    272
    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
    825
    614
    30
    Has anyone’s store got borked on this preview update?
     
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,192
    90,676
    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
    825
    614
    30
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,192
    90,676
    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,763
    7,695
    210
    Eww. :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    Of course it can:)
     
  9. adric

    adric MDL Expert

    Jul 30, 2009
    1,380
    1,498
    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
    49,647
    103,306
    450
    We always use a pristine .1 ISO for offline updates integration.
     
  11. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    More often than my wife does lately;):D
     
  12. tavrez

    tavrez MDL Addicted

    Sep 28, 2015
    512
    345
    30
    #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
    49,647
    103,306
    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 Addicted

    Sep 28, 2015
    512
    345
    30
    #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
    17,192
    90,676
    340