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
    58
    5
    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
    32,195
    51,008
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ch100

    ch100 MDL Senior Member

    Sep 11, 2016
    359
    319
    10
    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
    32,195
    51,008
    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:)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. ch100

    ch100 MDL Senior Member

    Sep 11, 2016
    359
    319
    10
    Right-click on the file, select 7-zip from the menu, extract to...

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

    Enthousiast MDL Tester

    Oct 30, 2009
    32,195
    51,008
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,079
    1,656
    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 :)
     
  8. BT 1

    BT 1 MDL Junior Member

    Feb 16, 2017
    58
    5
    0

    So it could, thank you.