How to Create Cabinet Files in Windows XP
Have you ever seen those .CAB files on software CDs or with programs you download? They store the files that are to be installed. Have you ever wanted to create one of these files? Follow these instructions to find out how.
Steps
-
1First, you must create a .DDF file. This is a plain text (ASCII) file. It stands for Diamond Directive File. An example one can be found here.Ad
-
2Load Notepad and type in the contents of the file. (See the example mentioned above for the syntax, replacing the example filename with your file name after CabinetNameTemplate and change "off" after Compress to "on" without quotes if you want compression.)
-
3Save the file as anything with the extension DDF.
-
4Open a command prompt (Start/Run/cmd)
-
5Type "makecab /f" (without quotes) and a space,and press= but don't press Enter yet.
-
6Type in the filename of the DDF file, with the full path if it is not in the current directory.
-
7Press Enter.
-
8Delete all the files that were created except for the Disk1 folder.
-
9Move the CAB file out of the Disk1 folder and delete the empty folder.
-
10Ad
Tips
- If you do not know the full path/filename of the DDF file, instead of typing in the name, you can drag it into the command prompt window.
Warnings
- If you have "Hide extensions for known file types" checked (the default), be sure to put the filename in quotes when you save the DDF file. Otherwise it will be saved as something like cabfile.ddf.txt!
Article Info
Thanks to all authors for creating a page that has been read 21,494 times.
About this wikiHow