• 0

[VB6] Extract file from self-extracting cabinet?


Question

13 answers to this question

Recommended Posts

  • 0

Have you tried i6comp.exe?

The command to extract like a file named....345.dat from say data1.cab would be

i6comp e data1.cab 345.dat

then to put back

i6comp r data1.cab 345.dat

You must place i6comp in the dir of the cab, open cmd and then execute. I and many others have used this on the install material for Audigy disc software suite. I am not aware in the very least if this adds up to your scenario, but oddly the MSI file on setup is required to start install for the Audigy stuff, and I'm assuming that it uses some sort of VB to run. Also, winzip or winrar command line or not will not touch these cab files for the audigy stuff. Gives an error, saying something regarding something something ended prior to when it should have ......bah... Anyway here is the link to i6comp

http://hobbes.nmsu.edu/cgi-bin/h-viewer?sh.../i6comp103b.zip (You will need DLL from this file)ZD51145.DLL

and get this main one (included s0urce C0d3) http://hobbes.nmsu.edu/cgi-bin/h-viewer?sh...2/i6comp020.zip the file is located in the Release folder.

Hope that helps

XP GOD.....out

  • 0

Geez, I'm batting 1000 today. I could have sworn that I read the -x switch on extract.exe ( which there isn't an -x switch ) would handle sfx files. Doh!

[edit]

Looking at an sfx and looking at the CAB file format, it wouldn't be hard to write a tool or library to do the extraction with that SDK. Time is my only issue, otherwise, I'd do it. It would be a fun exercise.

Edited by weenur
  • 0

yes i have come this close: convert the exe to a cab (remove the initial header before 4D53434600000000 appears in HEX) and then extract it... but doing that on a >200 mb files can take some while... so im looking for a way to directly extract a file off of the SFX... just ignore the first header and treat the rest as the CAB file... but i would need to get much info on how to handle CAB files natively...

  • 0
  Vaichilds said:
Have you tried i6comp.exe?

The command to extract like a file named....345.dat from say data1.cab would be

i6comp e data1.cab 345.dat

then to put back

i6comp r data1.cab 345.dat

You must place i6comp in the dir of the cab, open cmd and then execute.  I and many others have used this on the install material for Audigy disc software suite.  I am not aware in the very least if this adds up to your scenario, but oddly the MSI file on setup is required to start install for the Audigy stuff, and I'm assuming that it uses some sort of VB to run.  Also, winzip or winrar command line or not will not touch these cab files for the audigy stuff.  Gives an error, saying something regarding something something ended prior to when it should have ......bah...  Anyway here is the link to i6comp

http://hobbes.nmsu.edu/cgi-bin/h-viewer?sh.../i6comp103b.zip (You will need DLL from this file)ZD51145.DLL

and get this main one (included s0urce C0d3) http://hobbes.nmsu.edu/cgi-bin/h-viewer?sh...2/i6comp020.zip  the file is located in the Release folder.

Hope that helps

XP GOD.....out

Thats for InstallShield 6 CAB files (not MS CABs)... they got some humor though...

  Quote
─════════════════════════════════════════════════════════─

■InstallShield 5.x Cabinet Compression & Maintenance Util■

■Version 2.00  -]fOSSiL - 2000 [-                      ■

■InstallShield 6.x Cabinet Compression & Maintenance Util■

■Version 1.03b -] Morlac - 2000 [-                      ■

─════════════════════════════════════════════════════════─

This does not look like IShield 6 cab =)

Are u sure u know what u are doing ?

LOL

  • 0
  nw_raptor said:
yes i have come this close: convert the exe to a cab (remove the initial header before 4D53434600000000 appears in HEX) and then extract it... but doing that on a >200 mb files can take some while... so im looking for a way to directly extract a file off of the SFX... just ignore the first header and treat the rest as the CAB file... but i would need to get much info on how to handle CAB files natively...

That is what the CAB SDK is for. Compressing and Decompressing CAB files.

  • 0
  nw_raptor said:
... but doing that on a >200 mb files can take some while...

Removing the header will be the best possible way.. unless you find the decompression algorithm and modify it so it can bypass the sfx header. Since you will only need to remove the header i don't think it will take much doing so. just temporarily remove the header from the sfx file, use the expand system command then add the header back to the file.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Files still rely on classic windows indexing rather than methods that 'everything' uses. So search is suboptimal. The compression algorithm list is really lacking not comparable to winrar, 7zip and peazip... The gui looks nice, but windhawk is a thing. I don't understand what files brings in 2025.
    • I think I only know of a handful of people that don't have WhatsApp - somewhat frustratingly they're my OAP group that I support. But in those situations they always prefer to phone rather than text anyway, so this won't really do much to help me. If the functionality of Guest mode is only one-to-one messages and no media transfers, I can't see it getting used that much. A group option with photo attachments would be useful for my other business to send out a notification to our clients including those that don't have WhatsApp.
    • Firefox 141.0.2 is out, fixes crashes on systems with Nvidia GPUs and more by Taras Buria A small update is rolling out for Firefox in the Release channel. Version 141.0.2 delivers three fixes to address problems with crashes on systems with Nvidia cards, web compatibility issues, and Web Developer Tool issues. Starting with the Nvidia bug, users reported that on Linux systems with older drivers, such as 560.35.03, an instant crash on startup occurs (bug 1978911). This issue does not affect Windows users. Next, the update fixed a web compatibility issue that was causing problems with canvas objects (bug 1978673). The third fix resolves Web Developer Tools crashes when inspecting pages with iframe elements (bug 1975277). Here is the full changelog from the official documentation. Firefox 141.0.2 is currently available from Mozilla's FTP only. It will start rolling out to existing users in a couple of hours. You will be able to get the update by heading to Menu > Help > About Firefox or by downloading an installer from the official website. On Windows, Firefox is also available in the Microsoft Store via this link. In case you missed it, Firefox 141 arrived a few weeks ago with a couple of new features, including AI-powered tab groups, vertical tab improvements, memory optimizations for Linux users, WebGPU support on Windows, and more features for the address bar. You can find full release notes for the update in our dedicated article.
    • Clearly a lot of gamers. And I'm sorry but you are wrong, my 7800x3d (single ccd) offers huge benefits to me as a AAA 1440p gamer. And it's pretty dumb to crap on 1080p gamers as they make up like 90+% of steam gamers. But no, the x3d does not just offer benefits to esport gamers (one of the stupidest things I've seen in a while AND THATS SAYING SOMETHING.) Abd when I built my rig with my 7800x3d, I paired it with a RX7900xt and couldn't be happier.
  • Recent Achievements

    • First Post
      Soeaker4thedead earned a badge
      First Post
    • First Post
      kryptickid earned a badge
      First Post
    • First Post
      Nemesis-IV earned a badge
      First Post
    • First Post
      Aidan Helfrich earned a badge
      First Post
    • Collaborator
      bullgod69 earned a badge
      Collaborator
  • Popular Contributors

    1. 1
      +primortal
      760
    2. 2
      ATLien_0
      187
    3. 3
      +FloatingFatMan
      151
    4. 4
      Xenon
      117
    5. 5
      wakjak
      113
  • Tell a friend

    Love Neowin? Tell a friend!