It is currently Thu Jul 29, 2010 5:40 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 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: 3731
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

_________________
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  
 
 Post subject:
PostPosted: Wed Aug 27, 2008 2:13 pm 
Offline
Addict
Addict

Joined: Sat Dec 31, 2005 5:24 pm
Posts: 2566
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  
 
 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: 3731
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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 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