How to download and install/register ActiveX

hmstechsupport
hmstechsupport used Ask the Experts™
on
Hello experts!

This is a long shot because I don't think it's possible but we are having an extremely difficult time with our ActiveX controls as of late and hopefully we can get some advice.

Background
Our product has been a web based product for YEARS and we have always used ActiveX (cab) controls built in Delphi 5. The controls are still working great in today's browsers. However, we realize the technology is aging and we are slowly weening away from them. To display the ActiveX controls we've always just used an <object> tag and let IE simply download and install the controls and this still works great for the most part.

The Issue
Part of the cause could be that the ActiveX controls are build by old technology or IE could just be a terrible product, or we are build the controls differently than we used too but either way we have an issue. Now, in almost 100% of cases, when IE is download and installing controls the browser gets hung up and dies a miserable death, however, the controls are still downloaded and installed correctly and work just fine when returning to it (after killing the IE process). Because of this issue we are looking into possible solutions to fixing the issue, or, we would even prefer a method to download and register the controls ourselves programmatically (we are now upgrading our technology to c# .NET and hopefully have this capability).

Anyone able to assist? Thanks in advance.

Yes, we are aware we have a current issue open that is similar but this question is more to try and discover a better way to download and register the controls rather then fix the issue with IE crashing. We are capable of packaging our ocx in both cab and msi packages if one is easier to work with than the other.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
Good article. However, not all of our clients use Active Directory and have the ability to push MSIs. We actually already have clients doing this themselves with MSIs we provide them. We are looking for a solution to install/register ActiveX controls at run-time through code.
Top Expert 2010
Commented:


Cant you provide a separate installer (say setup.exe) which user can download before accessing the page having the activex control. This setup.exe can copy the activex control file(mycontrol.ocx) and other dependent files to a folder (or c:\windows\system32 folder as I did this five years back). The setup program will also register mycontrol.ocx using regsvr32 command as below:
Regsvr32 /s c:\windows\mycontrol.ocx

See if this works for you...
Top Expert 2010

Commented:
Instead of .exe installer (as I said above) it can be a .msi as well which would copy the files and register the .ocx using regsvr32

Author

Commented:
The solutions provided were both accurate for a normal ActiveX installation and that is why I have accepted them both.  We were however having trouble with the build portion so the solutions did not really address our specific issue so our issue is not resolved.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial