It is currently Fri Jan 15, 2021 4:24 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: PureCAB library : compress / extract CAB archives
PostPosted: Thu Mar 20, 2008 10:29 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
PureCAB library

Overview
Code:
The purpose of PureCAB is to handle CAB files [MS-Cabinet].

Note : This library does not support InstallShield archives [also CAB extension].

Functions
PB4.xx : http://gnozal.ucoz.com/PureCAB_.htm

Example
Code:
; Compression callback
Procedure.l MyCustom_Compression_StatusCallBack(Filename.s, PerCent.f)
  ; Filename : current processed filename
  ; PerCent  : current compression progression [0-100%]
  Debug "Packing " + Filename + " - " + StrF(PerCent, 2) + "%"
EndProcedure
; Set compression callback
PureCAB_SetCompressionCallback(@MyCustom_Compression_StatusCallBack())
; Create Archive
Handle = PureCAB_Create("c:\PureBasic410\Program\test.cab")
If Handle
  PureCAB_Compress(Handle, "c:\WINDOWS\Coffee Bean.bmp", "Another Name.bmp")
  PureCAB_Compress(Handle, "c:\PureBasic410\Help\Win32.hlp")
  PureCAB_Compress(Handle, "c:\WINDOWS\FeatherTexture.bmp")
  PureCAB_Compress(Handle, "c:\WINDOWS\Gone Fishing.bmp")
  PureCAB_Compress(Handle, "c:\PureBasic410\Help\SOCK2.HLP")
  PureCAB_Close(Handle)
  Debug "Done"
Else
  Debug "Failed creating cab"
EndIf


Download
Only available for Purebasic Windows x86
PB4.0x-4.2x : http://gnozal.ucoz.com/PureCAB_.zip
PB4.3x : http://gnozal.ucoz.com/PureCAB_430.zip
PB4.4x : http://gnozal.ucoz.com/PureCAB_440.zip
PB4.5x : http://gnozal.ucoz.com/PureCAB_450.zip
PB4.6x : http://gnozal.ucoz.com/PureCAB_460.zip
PB5.0x : http://gnozal.ucoz.com/PureCAB_500.zip

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Last edited by gnozal on Wed Dec 10, 2008 11:21 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 27, 2008 2:13 pm 
Offline
Addict
Addict

Joined: Sat Dec 31, 2005 5:24 pm
Posts: 2970
Location: Where ya would never look.....
Nice little Library, thank you :)

By any chance are you planning on expanding it to support InstallShield archives (.cab) maybe in the near future?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 27, 2008 3:06 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
SFSxOI wrote:
By any chance are you planning on expanding it to support InstallShield archives (.cab) maybe in the near future?
No chance, sorry !
IS archives are completely different from m$ cabinet files, the only thing in common is the extension.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject: Re: PureCAB library : compress / extract CAB archives
PostPosted: Thu Jun 16, 2011 9:15 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue May 01, 2007 3:49 am
Posts: 137
Location: Germany
Please would you also offer an unicode version?
Thanks!

_________________
M.Sc. Aerospace Engineering

My Free Setup Creator for Windows | My 3D Ego Shooter made in PB


Top
 Profile  
Reply with quote  
 Post subject: Re: PureCAB library : compress / extract CAB archives
PostPosted: Thu Jun 16, 2011 12:18 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
Forge wrote:
Please would you also offer an unicode version?

The PB4.6x version should be unicode compatible.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject: Re: PureCAB library : compress / extract CAB archives
PostPosted: Tue Aug 23, 2011 9:58 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Apr 04, 2006 6:27 am
Posts: 311
It is great that you have all of these libraries and tools. What prevents them from being released in a a x64 flavor?


Top
 Profile  
Reply with quote  
 Post subject: Re: PureCAB library : compress / extract CAB archives
PostPosted: Wed Aug 24, 2011 9:47 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 4229
Location: Strasbourg / France
X wrote:
It is great that you have all of these libraries and tools. What prevents them from being released in a a x64 flavor?
Let's see...
I don't use a x64 OS. But the OS is the easy part, and a user already sent me a Se7en x64 CD !
The big part is the library conversion, and some of them (very few actually) may use some older public domain C code not ported to x64.

The other issues on my side are :
- (free) time
- a PC recent enough to run Se7en
- a x64 version of jaPBe ;-)

However, only x86 software will run on all OS's, and there are still a lot of x86 machines out there.

I will migrate to x64 eventually, but don't expect any schedule.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
Reply with quote  
 Post subject: Re: PureCAB library : compress / extract CAB archives
PostPosted: Wed Aug 24, 2011 4:59 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Apr 04, 2006 6:27 am
Posts: 311
Oh no problemo. I was curious. Wonderful libraries and tools!


Top
 Profile  
Reply with quote  
 Post subject: Re: PureCAB library : compress / extract CAB archives
PostPosted: Thu Dec 12, 2013 1:31 pm 
Offline
PureBasic Protozoa
PureBasic Protozoa
User avatar

Joined: Fri Apr 25, 2003 3:08 pm
Posts: 4597
Location: Not Sydney!!! (Bad water, no goats)
Gnozal, I realise you are busy these days but I am desperate..Is there any chance to update PureCAB to PB 5.21?

Unfortunately, I had to update and that broke PureCAB and I can run my tool..

Regards and Merry Christmas, Fang.

_________________
Amateur Radio, D-STAR/VK3HAF


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye