[version]
Signature=”$CHICAGO$”
AdvancedINF=2.0
[Add.Code]
BiDib.ocx=BiDib.ocx
BiDib.dll=BiDib.dll
[BiDib.ocx]
file-win32-x86=thiscab
clsid={D2797899-BE27-4CDB-892F-4FDC26EA9BA9}
FileVersion=10,4,4,0
ReisterServer=yes
DestDir=11
[BiDib.dll]
file-win32-x86=thiscab
FileVersion=10,4,4,0
DestDir=11
“file-win32-x86” means that the CAB file is specific to x86 platforms.
The “clsid” is the CLSID of the control to be installed.
You can get the version number of a file by right clicking the file and selecting Properties and then select the Version tab. If the file on the system is an older version of the file in the CAB, it will be replaced.
RegisterServer indicates whether or not to register the component on the target system. In order to use any of the Black Ice ActiveX controls from a web page, the control must be registered. Please note that the Black Ice DLLS do not have to be registered.
The “DestDir” is the directory where the file will be copied: 11 specifies the system directory WINDOWS/SYSTEM or WINNT/SYSTEM32.
Build the CAB file
CAB files can be built by running the CABARC Utility. The CABARC utility is available from the Platform SDK. CABARC should be run from the directory containing the INF, OCX, and DLL files. The files should be listen on the command line in the same order as listed in the INF file. For example;
C:\Black Ice\ CABARC –s 6144 n BlackIce.CAB BiDib.ocx BiDib.dll BlackIce.INF
Running CABARC with the above parameters will create a CAB file called BlackIce.CAB