Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Автоматическая установка Windows 2000/XP/2003 (http://forum.oszone.net/forumdisplay.php?f=32)
-   -   makecab + 2 files (http://forum.oszone.net/showthread.php?t=50132)

desoto 06-06-2005 13:57 330367

makecab + 2 files
 
как запаковать сразу два файла в один cab файл?

VseDoFeNi 06-06-2005 14:16 330371

desoto
To produce this disk layout with MakeCAB, a DDF is prepared which lists all of the files forthe product, along with some optional MakeCAB settings to control parameters such as: 1) the capacity of the disks which are being used, 2) the naming convention of the cabinet files , 3) the visible (user-readable) labels on each disk, 4) how much random access is desired for files within a cabinet. The following is an example of a DDF that might be appropriate:
Код:

;*** MakeCAB Directive file example
;
.OPTION EXPLICIT                        ; Generate errors on variable typos

.Set DiskLabel1=Setup                ; Label of first disk
.Set DiskLabel2=Program              ; Label of second disk
.Set DiskLabel3="Program Continued"        ; Label of third disk
.Set CabinetNameTemplate=EXCEL.*        ; EXCEL.1, EXCEL.2, etc.
.set DiskDirectoryTemplate=Disk*        ; disk1, disk2, etc.
.Set MaxDiskSize=1.44M                      ; 3.5" disks

;** Setup.exe and setup.inf are placed uncompressed in the first disk
.Set Cabinet=off
.Set Compress=off
.Set InfAttr=                        ; Turn off read-only, etc. attrs
bin\setup.exe                              ; Just copy SETUP.EXE as is
bin\setup.inf                              ; Just copy SETUP.INF as is

;** The rest of the files are stored, compressed, in cabinet files
.Set Cabinet=on
.Set Compress=on
bin\excel.exe                              ; Big EXE, will span cabinets
bin\excel.hlp
bin\olecli.dll
bin\olesrv.dll
;...                                                                                ; Many more files
;*** <the end>                        ; That’s it

Now, you run MakeCAB to create the disk layout:
MakeCAB /f excel.ddf

desoto 06-06-2005 15:03 330399

благодарствую, заработало!!!

Debugger 06-06-2005 16:43 330432

можно воспользоваться программой стороннего разработчика для создания CAB-файлов. Я использую Microlog Cabinet Manager 2003


Время: 11:41.

Время: 11:41.
© OSzone.net 2001-