I'm having an issue with Microsofts Cabinet file methods for downloading and installing ActiveX controls and related files. My control has two dependant DLL's and these DLL's require a .dat and a .ini file to run. However the .dat and .ini files do not have any version numbers associated with them to control whether they are downloaded or not. The default behaviour seems to be that if the files can be found somewhere on your path, they are not downloaded. This is turning into a major issue as we cannot avoid having other versions of these files present on the path. Does anyone know of a method to force the download of non versioned files to the occache directory. I've tried everything I can think of such as
FileVersion=-1,-1,-1,-1. Any suggestions would be greatly appreciated.
This is my .inf file which I use to create the Cabinet File
---------------------------------------------------------------------
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
MYWEBX.OCX=MYWEBX.OCX
MYUWVED.DLL=MYUWVED.DLL
MYUWV001.DLL=MYUWV001.DLL
MYUWVED.001=MYUWVED.001
MYUWVED.044=MYUWVED.044
MYLCL.DAT=MYLCL.DAT
MYWORLD.INI=MYWORLD.INI
msvcrt.dll=msvcrt.dll
mfc42.dll=mfc42.dll
olepro32.dll=olepro32.dll
[MYWEBX.OCX]
file-win32-x86=thiscab
clsid={9580E8A7-E34C-40CC-8A75-D6B0382A3DA6}
RegisterServer=yes
DestDir=
FileVersion=5,0,0,0
[MYUWVED.DLL]
file-win32-x86=thiscab
RegisterServer=no
DestDir=
FileVersion=5,0,0,0
[MYUWV001.DLL]
file-win32-x86=thiscab
RegisterServer=no
DestDir=
FileVersion=5,0,0,0
[MYUWVED.001]
file-win32-x86=thiscab
RegisterServer=no
DestDir=
FileVersion=
[MYUWVED.044]
file-win32-x86=thiscab
RegisterServer=no
DestDir=
FileVersion=
[MYLCL.DAT]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
FileVersion=
[MYWORLD.INI]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
FileVersion=
[msvcrt.dll]
FileVersion=6,1,9359,0
hook=mfc42installer
[mfc42.dll]
FileVersion=6,0,8665,0
hook=mfc42installer
[olepro32.dll]
FileVersion=5,0,4518,0
hook=mfc42installer
[mfc42installer]
file-win32-x86=InfFile=mfc42.inf
run=%EXTRACT_DIR%\mfc42.exe
FileVersion=-1,-1,-1,-1. Any suggestions would be greatly appreciated.
This is my .inf file which I use to create the Cabinet File
---------------------------------------------------------------------
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
MYWEBX.OCX=MYWEBX.OCX
MYUWVED.DLL=MYUWVED.DLL
MYUWV001.DLL=MYUWV001.DLL
MYUWVED.001=MYUWVED.001
MYUWVED.044=MYUWVED.044
MYLCL.DAT=MYLCL.DAT
MYWORLD.INI=MYWORLD.INI
msvcrt.dll=msvcrt.dll
mfc42.dll=mfc42.dll
olepro32.dll=olepro32.dll
[MYWEBX.OCX]
file-win32-x86=thiscab
clsid={9580E8A7-E34C-40CC-8A75-D6B0382A3DA6}
RegisterServer=yes
DestDir=
FileVersion=5,0,0,0
[MYUWVED.DLL]
file-win32-x86=thiscab
RegisterServer=no
DestDir=
FileVersion=5,0,0,0
[MYUWV001.DLL]
file-win32-x86=thiscab
RegisterServer=no
DestDir=
FileVersion=5,0,0,0
[MYUWVED.001]
file-win32-x86=thiscab
RegisterServer=no
DestDir=
FileVersion=
[MYUWVED.044]
file-win32-x86=thiscab
RegisterServer=no
DestDir=
FileVersion=
[MYLCL.DAT]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
FileVersion=
[MYWORLD.INI]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
FileVersion=
[msvcrt.dll]
FileVersion=6,1,9359,0
hook=mfc42installer
[mfc42.dll]
FileVersion=6,0,8665,0
hook=mfc42installer
[olepro32.dll]
FileVersion=5,0,4518,0
hook=mfc42installer
[mfc42installer]
file-win32-x86=InfFile=mfc42.inf
run=%EXTRACT_DIR%\mfc42.exe