First, as I have been rightly reminded, this is an old question and ActiveX isn't supported these days, however I hope my answer will still serve whoever need to create a .cab file and I know that even today, .cab files are used and required.
You need to use the MakeCab.exe which is part of any Windows system.
Cabinet Maker - Lossless Data Compression Tool
MAKECAB [/V[n]] [/D var=value ...] [/L dir] source [destination]
MAKECAB [/V[n]] [/D var=value ...] /F directive_file [...]
source File to compress.
destination File name to give compressed file. If omitted, the
last character of the source file name is replaced
with an underscore (_) and used as the destination.
/F directives A file with MakeCAB directives (may be repeated). Refer to
Microsoft Cabinet SDK for information on directive_file.
/D var=value Defines variable with specified value.
/L dir Location to place destination (default is current directory).
/V[n] Verbosity level (1..3).
Using it is a bit tricky as you would expect to just add to the call the destination .cab name and the files / folder you wish to add. In fact, you need to create a file which is then given as the one and only parameter to the call to MakeCab.exe.
This file ends with .ddf.
You call:
makecab /f script.ddf
A typical .ddf file will be like this:
;*** script.ddf example
;
.OPTION EXPLICIT ; Generate errors
.Set CabinetFileCountThreshold=0
.Set FolderFileCountThreshold=0
.Set FolderSizeThreshold=0
.Set MaxCabinetSize=0
.Set MaxDiskFileCount=0
.Set MaxDiskSize=0
.Set CompressionType=MSZIP
.Set Cabinet=on
.Set Compress=on
;Specify file name for new cab file
.Set CabinetNameTemplate=script.cab
; Specify the subdirectory for the files.
; Your cab file should not have files at the root level,
; and each driver package must be in a separate subfolder.
.Set DestinationDir=script
;Specify files to be included in cab file
Bellow, these lines, before you close and save this file, add each file you wish to be part of the .cab to be created.
Makecab will then create your installation "disk" (disk1) where you will find the .cab file.