Convert MSU files to CAB

Discussion in 'Application Software' started by BT 1, Nov 19, 2020.

  1. BT 1

    BT 1 MDL Junior Member

    Feb 16, 2017
    77
    8
    0
    Hi

    Does anyone know some software that can do this conversion?
    So far i have only found WinToolkit.
     
  2. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,763
    450
    MSU contains the cab.

    7zip can extact the cab from the msu.

    And the expand command can extract the files from the cab:
    Code:
    expand test.cab -f* C:\Test
     
  3. ch100

    ch100 MDL Addicted

    Sep 11, 2016
    829
    694
    30
    Most if not all of the times extracting the files from .msu using 7-zip will generate an error which can be ignored.
    To avoid the error, the msu can be opened with 7-zip and files copies out of the msu in another location.
    Alternatively, the official way is similar to the command shown in the other post using expand -f:*

    expand -f:* "C:\Temp\windows10.0-kb4584642-x64_msedge.msu" C:\Temp
     
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,763
    450
    #4 Enthousiast, Nov 19, 2020
    Last edited: Nov 19, 2020
    I never saw an error appear when i extract the cab from the msu for my W10UI tests:thinking:

    Oh wait, i manually drag and drop the cab from the msu in the 7zip file manager window, not by command line use:)
     
  5. ch100

    ch100 MDL Addicted

    Sep 11, 2016
    829
    694
    30
    Right-click on the file, select 7-zip from the menu, extract to...

    upload_2020-11-20_6-24-52.png
     
  6. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,311
    1,938
    120
    I use :
    expand XXXXXXXXXX.msu . -F:* (Where X is the name of the file)
    cab file is extracted in the root of the msu folder. Never had any issues :)
     
  7. BT 1

    BT 1 MDL Junior Member

    Feb 16, 2017
    77
    8
    0

    So it could, thank you.