VB5, VB6Include an INF File in a CAB File
[version]
signature="$CHICAGO$"
AdvancedINF=2.0

[Add.Code]
myctl.ocx= myctl.ocx
MSSTKPRP.DLL=MSSTKPRP.DLL
MSVBVM60.DLL=MSVBVM60.DLL
OLEAUT32.DLL=OLEAUT32.DLL
OLEPRO32.DLL=OLEPRO32.DLL
ASYCFILT.DLL=ASYCFILT.DLL
STDOLE2.TLB=STDOLE2.TLB
COMCAT.DLL=COMCAT.DLL

[myctl.ocx]
file-win32-x86=thiscab
RegisterServer=yes
clsid={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
DestDir=
FileVersion=1,0,0,0

Listing 3 This INF file is typical of CAB files that include only the ActiveX control itself. The FileVersion entry ensures the component will be downloaded only if it is not present on the client machine or if the CAB contains a newer version of the component.