[VBScript] Aunty Mel's Cheap And Nasty SxS Package Extractor (Updated 2013/09/30)

Discussion in 'Microsoft Windows' started by SuperBubble, Sep 17, 2013.

  1. #121 Deleted member 1385001, Dec 18, 2021
    Last edited by a moderator: Dec 18, 2021
    Code:
    @echo off
    cd /d %~dp0
    set src=C:\Windows\servicing\Packages
    cscript /nologo SxSExtract.vbs /U /IMAGE:%src% %src%\Packagename.mum ExtractPackage >log.txt 2>&1
    
    Code:
    ' Help text.
    Sub DisplayHelp
       Call LogBare("CSCRIPT.EXE SXSEXTRACT.VBS [/?,/H,/HELP] [/DEBUG,/V] </ONLINE|/IMAGE:<folder>>")
       Call LogBare("  [/INCLUDERES] [/VICIOUSHACKS] [/UPDATEPACK,/U] <source>.mum [<target>[.cab]]")
       Call LogBare("")
       Call LogBare("Parses a Windows Side-by-Side package manifest file, chases up all the")
       Call LogBare("references, and copies all the files associated with the package.")
       Call LogBare("")
       Call LogBare("  /?,/H,/HELP      Display this help text.")
       Call LogBare("  /DEBUG,/V        Enable verbose debug output.")
       Call LogBare("  /ONLINE          Uses %SYSTEMROOT% (usually C:\Windows) as the root folder to")
       Call LogBare("                   search for associated files.")
       Call LogBare("  /IMAGE:<folder>  Uses <folder> as the root folder to search for associated")
       Call LogBare("                   files instead.")
       Call LogBare("  /INCLUDERES      Extract MUI resources as well, for packages that don't have")
       Call LogBare("                   associated language packs.")
       Call LogBare("  /VICIOUSHACKS    Activates a couple of hacks to the script, for extracting")
       Call LogBare("                   'difficult' packages that don't reference assemblies by")
       Call LogBare("                   exact name.")
       Call LogBare("  /UPDATEPACK,/U   Extract package from another package, where all files are")
       Call LogBare("                   within the same <folder>, as in updates or langpacks.")
       Call LogBare("  <source>.mum     Specifies a package manifest file. Wildcards are not")
       Call LogBare("                   permitted.")
       Call LogBare("  <target>[.cab]   Specifies the target folder for extracted files. If the")
       Call LogBare("                   extension '.cab' is specified, the script will call")
       Call LogBare("                   CABARC.EXE to create a cabinet of the extracted files.")
       Call LogBare("")
       Call LogBare("This script requires both SXSEXPAND.EXE and CABARC.EXE, either in the")
       Call LogBare("current folder or on the system PATH, for full functionality.")
    End Sub
    
    Thanks a LOT LOT :)
     
  2. Ace2

    Ace2 MDL Guru

    Oct 10, 2014
    2,206
    1,909
    90
    #122 Ace2, Dec 19, 2021
    Last edited: Dec 19, 2021
    :cool:
     
  3. mhussain

    mhussain MDL Senior Member

    Oct 1, 2012
    384
    161
    10
    @abbodi1406
    dude, i'm in aur of you sir!
    i'm sure that lady super bubble would not mind you inhanseing her work.
    thank you so much for updateing and keeping this alive.
    i'm very greatful.
    I hope that updates will continue in some form?
    stay safe!
    sorry for any errors, I am using a screen reader due to my blindness.
     
  4. bear_aussie

    bear_aussie MDL Senior Member

    Jun 8, 2015
    276
    305
    10
    she doesnt mind
    how do i know ?
    i aksed her :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,875
    3,149
    120
    #125 pm67310, Dec 8, 2022
    Last edited: Dec 8, 2022
    for me SxSExport.cmd not works in ltsc 2021 21h2 : /
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. mhussain

    mhussain MDL Senior Member

    Oct 1, 2012
    384
    161
    10
    could someone kindly repost a link of ssx v1?
    I would be very greatful
    Majid
     
  7. Tito

    Tito Admin / Adviser
    Staff Member

    Nov 30, 2009
    19,091
    19,920
    340
  8. mhussain

    mhussain MDL Senior Member

    Oct 1, 2012
    384
    161
    10
    @Tito
    thank you so much sir!
    your a saint.
    :)
    thank you again.
    i'll keep this safe.
     
  9. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,875
    3,149
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,875
    3,149
    120
    resolved antivirus error ^^ thank @abbodi1406
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Apoly

    Apoly MDL Senior Member

    Aug 21, 2016
    351
    444
    10
    Never knew this existed, will play around with it, thanks a bunch!
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,610
    100,025
    340
    #133 abbodi1406, Jul 19, 2024
    Last edited: Jul 19, 2024
    I forgot to upload :)

    - Add support for NT 6.0 packages ("dependentAssembly" node is little different in Vista manifest)
     

    Attached Files:

  13. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,875
    3,149
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Tito

    Tito Admin / Adviser
    Staff Member

    Nov 30, 2009
    19,091
    19,920
    340
    Why did you re-upload and post @remek002's work without proper citation?

    Besides, what you posted is not even a full-fledged SxS Package Extractor, it's just the SxS File Expander module.
     
  15. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,875
    3,149
    120
    I couldn't remember who the original author was
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Tito

    Tito Admin / Adviser
    Staff Member

    Nov 30, 2009
    19,091
    19,920
    340
    Please do proper research before posting.
     
  17. speedxl

    speedxl MDL Novice

    Oct 31, 2009
    3
    1
    0
    @abbodi1406 Hello, and thank you in advance for your time. As a Windows internals connoisseur, could you please share your insight on whether this script would actually work to extract the MultiPoint feature installation package from Windows Server 2016 and make it installable on Windows Server 2019? Or is this task inherently impossible, or does it require additional steps or complexity beyond what the script can handle?"
     
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,610
    100,025
    340
    @speedxl
    i'm that expert :)

    yes, the script can extract almost all packages correctly
    weither it would work on another version OS is not guaranteed
     
  19. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,875
    3,149
    120
    Search on server essental same as multipoints and package are from server 2016 but work in 2019 / 2022 / 2025

    Because essential gui apps are a net framework apps only
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...