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

Discussion in 'Scripting' 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 Expert

    Oct 10, 2014
    1,411
    1,192
    60
    #122 Ace2, Dec 19, 2021
    Last edited: Dec 19, 2021
    :cool:
     
  3. mhussain

    mhussain MDL Senior Member

    Oct 1, 2012
    352
    139
    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
    271
    292
    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
    2,380
    1,604
    90
    #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
    352
    139
    10
    could someone kindly repost a link of ssx v1?
    I would be very greatful
    Majid
     
  7. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    18,681
    18,589
    340
  8. mhussain

    mhussain MDL Senior Member

    Oct 1, 2012
    352
    139
    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
    2,380
    1,604
    90
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,209
    84,855
    340
    The symbol at beginning means you used accent letter or something
     
  11. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    2,380
    1,604
    90
    resolved antivirus error ^^ thank @abbodi1406
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Apoly

    Apoly MDL Junior Member

    Aug 21, 2016
    69
    46
    0
    Never knew this existed, will play around with it, thanks a bunch!