leo

I need help with cab archives

9 posts in this topic

Any zip program can extract files from cab archives but how do you import a modified file back into the cab archive?

Edited by leo
0

Share this post


Link to post
Share on other sites

You don't...

You need to "dump" the whole CAB contents (folders and all) then use the appropriate CABARC or MAKECAB programs. "CabPack" uses Makecab and should work for you (GUI interface).

Temporarily unavailable?

http://www.larshederer.homepage.t-online.de/cabpack.htm

You can also get it here -

http://www.ryanvm.net/forum/viewtopic.php?t=2056&sid=2347ec2364e2bfd07947340482072eea

Above doesn't work for me. You can try if you want. :(

Look for "cabpck14.zip" here -

http://ftp.sunet.se/pub/simtelnet/win95/compress/

Version 1.4a name is "upgr_14a.zip" - haven't found an alternate for it yet BUT it's inside the "SUPP.CAB" within this -

http://www.htasoft.com/u98sesp/

edit - AHHHH! Good old Wayback!

http://web.archive.org/web/20110717101929/http://www.larshederer.homepage.t-online.de/cabpack.htm

Edited by submix8c
0

Share this post


Link to post
Share on other sites

Version 1.4a name is "upgr_14a.zip" - haven't found an alternate for it yet BUT it's inside the "SUPP.CAB" within this -

http://www.htasoft.com/u98sesp/

I put it there for Win98 users who want to create their own packages. It installs with IEXPRESS.EXE, MAKECAB.EXE and WEXTRACT.EXE :w00t:

New site for CABPACK

http://www.larshederer.homepage.t-online.de/cabpack.htm

Edited by PROBLEMCHYLD
0

Share this post


Link to post
Share on other sites
This is what I use with right-click send to..Cab Maker V 3.3

http://www.wincert.net/forum/topic/6895-addon-cab-maker-v-33/

Nice! But bear in mind that the OP's OS is Windows 98. In addition, some certain CABS (depending on what reads it) uses MSZIP and I notice in the link that you don't have much control over the CAB creation.
0

Share this post


Link to post
Share on other sites
This is what I use with right-click send to..Cab Maker V 3.3

http://www.wincert.n...cab-maker-v-33/

Nice! But bear in mind that the OP's OS is Windows 98. In addition, some certain CABS (depending on what reads it) uses MSZIP and I notice in the link that you don't have much control over the CAB creation.

I converted the addon to a silent install commmand line batch file and it uses the LZX compression Just another option dont know about 98 as I havent used it in years..There is another send to cab app that I use with XP called CabTool and that one may do the job for the OP.

http://www.wincert.n...to-style-build2

0

Share this post


Link to post
Share on other sites

Thanks for all the responses. I used 7-zip 9.20 to extract all files in PRECOPY2.CAB from win98 and then modified file setupx.dll with exescope

using these instructions.

"In eXescope, expand "Resource" then "String" & find number "96"

Click on "96", on the left you will see this number "1526,111" or "1526,

121" or "1526, 115"... ... The last 2 digits may vary depending on the

version you have. In any case, change "1526,1xx" into "1526,100" and save.

Now, each time you run the install for Win98, you won't have to enter any

serial number, nor will there be an upgrade/OEM/full check."

Then I used cabpack 1.4a to remake PRECOPY2.CAB.

There are still some things I don't understand. Both the modified and original PRECOPY2.CAB use LZX:21 compression yet the

modified one now is 2,584KB and the original is 1,305KB. Also when viewing the files inside the modified version using 7-zip, the

block column shows all 0's while the original shows mostly 2's and 3's. could someone explain this to me.

0

Share this post


Link to post
Share on other sites

Sure!

It's called (for want of a better term) Cabinet Spanning.

If you look in the documentation (heavy reading for sure) about the Cabinet SDK, you'll see that SOME files are only PARTIALLY with a CAB-1 and may have the SECOND part in CAB-2.

In other words, there is ALSO a Precopy1.cab. When you "dumped" Precopy2, it only "dumped" the Full Files that are listed by Name within.

For your purposes, DON'T BOTHER putting the file back into the CAB. Juts leave it in the Install folder.

All of the Original Cabinets are created with a very specific version of Diamond.exe. As for the "spanning", did you notice that there exists xxxx1.cab, xxxx2.cab, xxxx3.cab, xxxx4.cab (where xxxxx is "whatever")? That's done via the "template" field and "limiting" the CABS to a specific maximum size (thus forcing the "spanning"). In fact, you'll "break" the Install because you have to know EXACTLY what order to insert the files in so that they go into the CORRECT CAB (see LAYOUT.INF, LAYOUT1.INF, etc).

LoneCrusader can tell you a LOT about the ins/outs and purchased a special toolset just for doing what you want to do (but don't need to).

edit - Actually, I'm unsure of why you'd even want to do that. You already have Win98SE, don't you?

edit2 - and here's a reference to show what I'm talking about (same "problem")

http://translate.google.com/translate?sl=de&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&eotf=1&u=http%3A%2F%2Fwww.cc-community.net%2Fwie-womit-file-ms-cab-datei-t12865.html

Post #32 -

Edited by submix8c
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.