Results 1 to 2 of 2

Thread: HowTo:<object> Element and .cab .inf

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    156
    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
    The MORE I get to know,
    I realize that I know NOTHING !

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width