dhtmled.ocx and InstallShield X

Posted on 2006-04-20
Last Modified: 2010-04-05
I have a software which is using
C:\Program Files\Common Files\Microsoft Shared\Triedit\dhtmled.ocx

The software works perfect on my computer but when I install it one a different computer, it gives "No interface supported" error whenever I try to use the component which belongs to this activex. I checked and there are version and filesize differences between my ocx and the client pc ocx.

How can I distribute this ocx with my software using Installshield?

Question by:bilgehanyildirim
    LVL 6

    Expert Comment

    Have you registered this ocx by using c:\windows\system32\regsvr32.exe ?

    Author Comment

    I have done
    start>run>regsrv32 "C:\Program files\myprogramdir\dhtmled.ocx" it said it successfully registered but nothing changed,
    LVL 6

    Expert Comment

    What version of Delphi are you using ?

    I have Delphi 5 and ther you can use Install shield Express to make a setup.
    This is a wizard-using application, which let you include your own files into the setup (like ini-files, db-files, ocx-files, ...).

    Then these included files will also be installed on the client.
    But I'm not sure if the ocx-file will also be registered in Windows or not.
    I guess it will just be copied to the specified directory.
    So you will need to register it from within your application I guess by using the RegSvr.exe program, provided in Windows.

    Usage: regsvr32.exe /s "C:\Program Files\Common Files\Microsoft Shared\Triedit\dhtmled.ocx"

    The '/s' parameter is for SilentMode (no interaction with user).

    Best regards,

    The Mayor.

    Author Comment

    I am using Delphi 7 and I don't have the installshield express which comes with delphi, I think..

    I have standalone Install Shield X

    >>regsvr32.exe /s "C:\Program Files\Common Files\Microsoft Shared\Triedit\dhtmled.ocx"

    There is already an older version of my ocx in this directory. can i do like this

    >>regsvr32.exe /s "C:\Program Files\myprogramdir\dhtmled.ocx"
    and it will register my ocx and will copy/overwrite the older one under C:\Program Files\Common Files\Microsoft Shared\Triedit\. is this correct?
    LVL 6

    Accepted Solution

    It is situated in the 'Specify Components and Files'v Section of 'InstallShield Express'.
    There you can add a new Group and set its 'Destination Directory' to <WINSYSDIR>.
    Then Insert the OCX-File into this group.
    After that Select this file and click on 'Properties'. Make sure you checked 'Allow express to Self-register this file'.

    This should result in the OCX-File being copied to the system32-Map of Windows during install. And it should also be registered during install too.

    I never tested this out, but normally this should work.

    I will see if I can make some little demo-app which uses an ocx.
    Have you Delphi 5 too ?
    LVL 6

    Expert Comment

    Hm, point is that we should get this to work automaically during setup/install of your application.

    I will see what I can do to make a small demo.

    Maybe in the meantime you can try to do what I explained in my previous comment.
    Maybe you have the same things in your version of InstallShield.

    I'll keep in touch
    LVL 6

    Expert Comment

    Are you sure you only need this ocx-file ?
    Maybe you also need to install more than just this one file onto the Client ?
    LVL 6

    Expert Comment

    Thanks for the points and the grade.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now