-
hey,
i am trying to register an ocx through the IE.
1. i created a wshom.inf and it looks like that:
; Sample INF file for WSHOM.OCX
[version]
; version signature (same for both NT and Win95) do not remove
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
WSHOM.OCX=WSHOM.OCX
; needed OCX
[wshom.ocx]
file-win32-x86=thiscab
clsid={F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}
[wshom.ocx] - FileVersion=1,1,1,1
DestDir=10
RegisterServer=yes
; end of INF file
2. i created a cab file that holds the wshom.ocx and wshom.inf
3. i wrote an html file that looks like that:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<OBJECT language="vbscript" ID="WScriptObject" CLASSID="CLSID:F935DC22-1CF0-11D0-ADB9-00C04FD58A0B" CODEBASE="wshom.cab#Version=-1,-1,-1,-1">
</OBJECT>
</BODY>
</HTML>
the problem is very simple :
IT DONT WORD !!! AND I DONT KNOW WAY .
please help me
tnx
LirLir
-
Ok.. you don't need an .inf file, you need to create a package (looks like you did- that's the cab file).
You also, by looking at the object tag you have posted, need to put the .cab file into the web site's main directory. Also, users will get a warning message about possibly unsafe ActiveX controls and will be given the option to download or not.
You should use versioning (i.e. CODEBASE="wshom.cab#Version=1,1,1,1")
Web installs are based STRONGLY on versioning. Older versions of a file will not install if a newer one exists on the client.
Make sure your .Cab and your actual .ocx versioning and the version stamp in your OBJECT tag match.
Additionally, if you are distributing a control from MS, you have to also create a license pack for it to install.