Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

I need help with cab archives

- - - - -

  • Please log in to reply
8 replies to this topic

#1
leo

leo

    Newbie

  • Member
  • 17 posts
  • OS:98SE
  • Country: Country Flag
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, 15 March 2013 - 03:04 PM.



How to remove advertisement from MSFN

#2
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,258 posts
  • OS:none specified
  • Country: Country Flag
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.larsheder....de/cabpack.htm
You can also get it here -
http://www.ryanvm.ne...947340482072eea

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

Look for "cabpck14.zip" here -
http://ftp.sunet.se/...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.o....de/cabpack.htm

Edited by submix8c, 15 March 2013 - 04:19 PM.

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#3
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,528 posts
  • OS:98SE
  • Country: Country Flag

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.larsheder....de/cabpack.htm

Edited by PROBLEMCHYLD, 15 March 2013 - 04:47 PM.

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#4
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 729 posts
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

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



This is what I use with right-click send to..Cab Maker V 3.3

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

Edited by DosProbie, 15 March 2013 - 04:57 PM.


#5
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,258 posts
  • OS:none specified
  • Country: Country Flag

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.

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#6
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 729 posts
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

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

#7
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,254 posts
  • OS:none specified
  • Country: Country Flag
For the record (and NOT necessarily compatible with Win9x/Me or useful at all):
http://www.codeproje...-and-Extraction

jaclaz

#8
leo

leo

    Newbie

  • Member
  • 17 posts
  • OS:98SE
  • Country: Country Flag
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.

#9
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,258 posts
  • OS:none specified
  • Country: Country Flag
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.goo...tei-t12865.html
Post #32 - http://www.msfn.org/...26-98micro-iso/

Edited by submix8c, 16 March 2013 - 09:39 PM.

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN