Convert MSU files to CAB

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

  1. BT 1

    BT 1 MDL Junior Member

    Joined:
    Feb 16, 2017
    Messages:
    65
    Likes Received:
    6
    Trophy Points:
    0
    Hi

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

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,566
    Likes Received:
    59,629
    Trophy Points:
    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

    Joined:
    Sep 11, 2016
    Messages:
    629
    Likes Received:
    523
    Trophy Points:
    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

    Joined:
    Oct 30, 2009
    Messages:
    35,566
    Likes Received:
    59,629
    Trophy Points:
    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

    Joined:
    Sep 11, 2016
    Messages:
    629
    Likes Received:
    523
    Trophy Points:
    30
    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

    Joined:
    Oct 30, 2009
    Messages:
    35,566
    Likes Received:
    59,629
    Trophy Points:
    450
  7. coleoptere2007

    coleoptere2007 MDL Guru

    Joined:
    Apr 8, 2008
    Messages:
    3,182
    Likes Received:
    1,796
    Trophy Points:
    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

    Joined:
    Feb 16, 2017
    Messages:
    65
    Likes Received:
    6
    Trophy Points:
    0

    So it could, thank you.