Question : How to download and install/register ActiveX

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.

Answer : How to download and install/register ActiveX

Ok, try this.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
Sub ImportFromFileAndSend()
    Dim objFSO As Object, _
        objFile1 As Object, _
        objFile2 As Object, _
        olkMsg As Object, _
        strBuffer As String, _
        arrParts As Variant, _
        strTable As String
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    'On the next line edit the file name and path.'
    Set objFile1 = objFSO.OpenTextFile("C:\eeTesting\masterfile.txt")
    Do Until objFile1.AtEndOfStream
        strBuffer = objFile1.ReadLine
        arrParts = Split(strBuffer, ";")
        Set olkMsg = Application.CreateItem(olMailItem)
        With olkMsg
            'On the next line edit the file path.'
            Set objFile2 = objFSO.OpenTextFile("C:\eeTesting\" & arrParts(0))
            'On the next line change the subject as desired.'
            .Subject = "Your Subject Goes Here"
            .To = arrParts(1)
            .BodyFormat = olFormatHTML
            Do Until objFile2.AtEndOfStream
                'On the next line edit the HTML as desired.'
                strTable = strTable & "<tr><td style=""background-color:#d0d0d0"">" & objFile2.ReadLine & "</td><td style=""background-color:#f0f0f0"">&nbsp;</td></tr>"
            Loop
            'On the next line edit the message as desired.'
            .HTMLBody = "Hi,<br><br><table style=""width: 100%""><tr><td style=""background-color:#d0d0d0; width:50%""><b>Software Name</b></td><td style=""background-color:#f0f0f0; width:50%""><b>Comments</b></td></tr>" & strTable & "</table><br><br>Regards<br>Somename"
            .Display
        End With
        objFile2.Close
    Loop
    Set olkMsg = Nothing
    Set objFile1 = Nothing
    Set objFile2 = Nothing
    Set objFSO = Nothing
End Sub
Random Solutions  
 
programming4us programming4us