makecab + 2 files

Ответить
Аватара пользователя
desoto

makecab + 2 files

Сообщение desoto »

как запаковать сразу два файла в один cab файл?
Аватара пользователя
desoto

Re: makecab + 2 files

Сообщение desoto »

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
;*** 			; That’s it

Now, you run MakeCAB to create the disk layout:

MakeCAB /f excel.ddf
Аватара пользователя
desoto

Re: makecab + 2 files

Сообщение desoto »

благодарствую, заработало!!!
Аватара пользователя
Debugger

Re: makecab + 2 files

Сообщение Debugger »

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

Вернуться в «Автоматическая установка Windows 2000/XP/2003»