Aunty Mel's Cheap And Nasty SxS File Expander (Updated 2013/09/29)

Discussion in 'MDL Projects and Applications' started by SuperBubble, Sep 25, 2013.

  1. Mr Jinje

    Mr Jinje MDL Expert

    Joined:
    Aug 19, 2009
    Messages:
    1,773
    Likes Received:
    1,098
    Trophy Points:
    60
  2. pepernicka

    pepernicka MDL Novice

    Joined:
    Dec 1, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    CAB created or very small

    Hello i extract WinPE-SRT-Package. Have now 7,7 MB. Structure i see OK, or after DISM to ADK image DISM write after 30% - The source files could not be found. I use Bubles in Windows 7.

    After start in Windows 8 (i have admin permision and UAC disable) error 740
     
  3. assbutt

    assbutt Guest

    you have a bug, it opens the input file for write access, it shouldn't
     
  4. danndan

    danndan MDL Novice

    Joined:
    Feb 10, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello, I tried to extract winpe-srt-package from an windows 8.1 with update image and it's not working. I get only a cab file with a size of 7kb. I tried to run the script as a system account but the same result. Anyboby can help? Thank you.
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,067
    Likes Received:
    55,424
    Trophy Points:
    340
  6. ashish_29

    ashish_29 MDL Novice

    Joined:
    Aug 18, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    I am working on a issue for expanding the Manifest files. And I was wondering from where did you get the source file to apply delta for windows manifests.

    Basically I am concerned about the second parameter input in below API.

    BOOL WINAPI ApplyDeltaW(
    DELTA_FLAG_TYPE ApplyFlags,
    LPCWSTR lpSourceName,
    LPCWSTR lpDeltaName,
    LPCWSTR lpTargetName
    );
     
  7. Stannieman

    Stannieman MDL Guru

    Joined:
    Sep 4, 2009
    Messages:
    2,236
    Likes Received:
    1,814
    Trophy Points:
    90
    What are you trying to fix? You think you can solve the problems with extracting?
     
  8. ashish_29

    ashish_29 MDL Novice

    Joined:
    Aug 18, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    My problem is reading of Manifest files, which are compressed in Win 8.1. I was trying to expand these files using MSDelta APIs, but I am stuck with the source file input for ApplyDeltaW API.
    Any help is appreciated.
     
  9. SuperBubble

    SuperBubble MDL Member

    Joined:
    Nov 18, 2011
    Messages:
    150
    Likes Received:
    281
    Trophy Points:
    10
    It's a resource in WCP.DLL. Because I wanted my tool to work on as many versions of Windows as possible, I copied said resource into my tool. Feel free to chop into it with Resource Hacker FX or similar. :)
     
  10. roytam1

    roytam1 MDL Novice

    Joined:
    Oct 3, 2014
    Messages:
    5
    Likes Received:
    4
    Trophy Points:
    0
    Not working for Win10TP files, it said: I/O error - input file uses unknown SxS BDC method.
    The starting bytes of files I tried is "DCS[0x01]"
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,067
    Likes Received:
    55,424
    Trophy Points:
    340
    Which files exactly? i tried it on .manifest files and it's working
     
  12. roytam1

    roytam1 MDL Novice

    Joined:
    Oct 3, 2014
    Messages:
    5
    Likes Received:
    4
    Trophy Points:
    0
    files with .ttf extension.
     
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,067
    Likes Received:
    55,424
    Trophy Points:
    340
    You mean the files in C:\Windows\WinSxS\Backup
    yeah, apparently they changed the compression method for these

    but those files are used only by sfc.exe utilty to fix corruption errors, so not a big deal a guess :biggrin:
     
  14. roytam1

    roytam1 MDL Novice

    Joined:
    Oct 3, 2014
    Messages:
    5
    Likes Received:
    4
    Trophy Points:
    0
    No I mean places like x86_microsoft-windows-font-truetype-aldhabi_31bf3856ad364e35_6.4.9841.0_none_1f12bf451885bd3c or x86_microsoft-windows-ehome-font_31bf3856ad364e35_6.4.9841.0_none_5a00ee43571e7b2c, those are not expended during installation
     
  15. cactusjuice

    cactusjuice MDL Novice

    Joined:
    Nov 5, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    "Microsoft decided to save disk space by compressing parts of WinSxS that aren't being used"

    Does this mean that these compressed files can be deleted without any issues since they are not being used?

    or

    Does this mean that Windows will automatically uncompress them when these files need to be used?
     
  16. murphy78

    murphy78 MDL DISM Enthusiast

    Joined:
    Nov 18, 2012
    Messages:
    6,943
    Likes Received:
    10,704
    Trophy Points:
    210
    It's still registered and cataloged by the system and will cause problems when processing the files if they are missing.
    It's generally considered unsafe to manually delete or modify things in the WinSxS folder.
    You are better off running cleanmgr.exe and selecting the system files button. That will remove superseded updates, but leave the option to uninstall previous versions.
     
  17. SuperBubble

    SuperBubble MDL Member

    Joined:
    Nov 18, 2011
    Messages:
    150
    Likes Received:
    281
    Trophy Points:
    10
    The number of compression methods appears to be multiplying - there's also a 'D1' compression method, as it turns out.

    Maybe I should update this tool... [wink]
     
  18. KNARZ

    KNARZ MDL Addicted

    Joined:
    Oct 9, 2012
    Messages:
    896
    Likes Received:
    475
    Trophy Points:
    30
    I really would like to see some progress here. I still think this is still one of a kind "hack" for Windows since the Vista basement. Unfortunatly not enough people seem to understand what is possible with repacking cabs. - The last ingredient to get a real benefit from it would be if someone find's a good way to compromise sppsvc in some parts. - In in this case I'm still going with some rootkit/bootloader like konboot to glitch some protected registry values.
     
  19. SuperBubble

    SuperBubble MDL Member

    Joined:
    Nov 18, 2011
    Messages:
    150
    Likes Received:
    281
    Trophy Points:
    10
    #59 SuperBubble, Nov 30, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    KNARZ! :hug:

    Despite appearances (I haven't posted on this topic since October), I am still poking it with a stick in my spare time, hoping something interesting will fall out, honest!

    Quite frankly, I can't figure what 'S1' compression actually is... though I have established a few things - most, unfortunately, in the category of 'what S1 isn't', which I will cut-and-paste now, in the hopes that inspiration/an epiphany will strike one (or more!) of you which you'll be willing to share. From my notes:
    On the bright side, 'D1' compression was easy, and I have an unreleased version of this tool that handles it (well, should - as with all my code, it isn't very well tested). If I don't have a flash of inspiration in the next few days and beat S1, I'll just tidy it up and release it:
     
  20. Stannieman

    Stannieman MDL Guru

    Joined:
    Sep 4, 2009
    Messages:
    2,236
    Likes Received:
    1,814
    Trophy Points:
    90