[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

dhtmled.ocx and InstallShield X

Posted on 2006-04-20
8
Medium Priority
?
477 Views
Last Modified: 2010-04-05
Hi,
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?

Regards,
Bill
0
Comment
Question by:bilgehanyildirim
  • 6
  • 2
8 Comments
 
LVL 6

Expert Comment

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

Author Comment

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

Expert Comment

by:wimmeyvaert
ID: 16496543
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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:bilgehanyildirim
ID: 16496564
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?
0
 
LVL 6

Accepted Solution

by:
wimmeyvaert earned 2000 total points
ID: 16496592
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 ?
0
 
LVL 6

Expert Comment

by:wimmeyvaert
ID: 16496603
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
0
 
LVL 6

Expert Comment

by:wimmeyvaert
ID: 16496637
Are you sure you only need this ocx-file ?
Maybe you also need to install more than just this one file onto the Client ?
0
 
LVL 6

Expert Comment

by:wimmeyvaert
ID: 16696898
Thanks for the points and the grade.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month18 days, 17 hours left to enroll

834 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