I create OCX using vb5 and use setup wizard to generate Internet download setup.
It's ok for many machine but not work on some machine but show red X sign on my component.
My ocx using msinet.ocx and ADO and molezip.dll. I known about some component will download from microsoft site as default but I download all cab file that I found in .inf file inside .cab and put at the same location of my cabfile and regenerate Internet download setup from wizard using option to reference dependency cab at same location. I searched for fix this problem but that not clear for me. If I should have to have a tool to find what a problem for me please tell direct link to download because I lost a lot of the link for tool eg. "Code Download Log Viewer" (I think may it removed).
I try to fix with my self like this.
- manual regiser my ocx (pass and work fine immediately after this step for some machine!)
- manual regiser dependency ocx (I'm extract from the cab then use regsvr32)
- manual register dependency dll (some machine cannot pass this step It tell "Load file fail or some thing....." I think may I have older version)
For some machine pass all step and It still not work.
### Here is dependency that I downloaded from microsoft and put at same location of my .cab
- MSInet.cab
- mdac_typ.cab
- MsStkPrp.cab
- AsycFilt.cab
- MSVBVM50.cab
### Here is dependency file packed in my cab file
- msado15.dll
- msadox.dll
- MoleZip.dll
### Here is detail of .inf in my .cab
;INF file for Sync.ocx
;DestDir can be 10 for Windows directory, 11 for Windows\System(32) directory, or left blank for the Occache directory.
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
SYNC.OCX=SYNC.OCX
MSSTKPRP.DLL=MSSTKPRP.DLL
MOLEZIP.DLL=MOLEZIP.DLL
MSADOX.DLL=MSADOX.DLL
MSADO15.DLL=MSADO15.DLL
MSINET.OCX=MSINET.OCX
ASYCFILT.DLL=ASYCFILT.DLL
MSVBVM50.DLL=MSVBVM50.DLL
[SYNC.OCX]
file-win32-x86=thiscab
RegisterServer=yes
clsid={8434A691-2052-4438-
86DC-91126
6224D32}
DestDir=
FileVersion=1,0,0,14
[MSSTKPRP.DLL]
hook=MsStkPrp.cab_Installe
r
FileVersion=6,0,81,69
[MsStkPrp.cab_Installer]
file-win32-x86=MsStkPrp.ca
b
InfFile=MsStkPrp.inf
[MOLEZIP.DLL]
file-win32-x86=thiscab
RegisterServer=yes
clsid={F64EBFC5-393D-4D81-
94DF-788B9
D7E886E}
DestDir=
FileVersion=1,8,0,135
[MSADOX.DLL]
file-win32-x86=thiscab
RegisterServer=yes
clsid={00000609-0000-0010-
8000-00AA0
06D2EA4}
DestDir=
FileVersion=2,70,7713,0
[MSADO15.DLL]
file-win32-x86=thiscab
RegisterServer=yes
clsid={00000514-0000-0010-
8000-00AA0
06D2EA4}
DestDir=
FileVersion=2,70,7713,0
[MSINET.OCX]
hook=MSInet.cab_Installer
clsid={48E59293-9880-11CF-
9754-00AA0
0C00908}
FileVersion=6,0,81,69
[MSInet.cab_Installer]
file-win32-x86=MSInet.cab
InfFile=MSInet.inf
[ASYCFILT.DLL]
hook=AsycFilt.cab_Installe
r
FileVersion=2,20,4056,1
[AsycFilt.cab_Installer]
file-win32-x86=AsycFilt.ca
b
InfFile=AsycFilt.inf
[MSVBVM50.DLL]
hook=MSVBVM50.cab_Installe
r
FileVersion=5,2,82,44
[MSVBVM50.cab_Installer]
file-win32-x86=MSVBVM50.ca
b
InfFile=MSVBVM50.inf
[Setup Hooks]
AddToRegHook=AddToRegHook
[AddToRegHook]
InfSection=DefaultInstall
[DefaultInstall]
AddReg=AddToRegistry
[AddToRegistry]
HKLM,"SOFTWARE\Classes\CLS
ID\{8434A6
91-2052-44
38-86DC-91
1266224D32
}\Implemen
ted Categories\{7DD95801-9882-
11CF-9FA9-
00AA006C42
C4}"
HKLM,"SOFTWARE\Classes\CLS
ID\{8434A6
91-2052-44
38-86DC-91
1266224D32
}\Implemen
ted Categories\{7DD95802-9882-
11CF-9FA9-
00AA006C42
C4}"
HKLM,"SOFTWARE\Classes\CLS
ID\{DFB020
CF-089D-41
A8-99BC-FB
5413408322
}\Implemen
ted Categories\{7DD95801-9882-
11CF-9FA9-
00AA006C42
C4}"
HKLM,"SOFTWARE\Classes\CLS
ID\{DFB020
CF-089D-41
A8-99BC-FB
5413408322
}\Implemen
ted Categories\{7DD95802-9882-
11CF-9FA9-
00AA006C42
C4}"
### end of detail
*My ocx and .cab file are signed with verisign both.
I'm sorry if it hard for you to understand.. I'm thai and my english is not good.. Please help me too.
Start Free Trial