Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Forcing Internet Explorer to unload an ActiveX

Forcing Internet Explorer to unload an ActiveX

Scheduled Pinned Locked Moved COM
javascriptcomsysadmintutorialquestion
11 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    advance512
    wrote on last edited by
    #1

    Hey, I have an in-proc ActiveX control I developed myself. It does not use the standard .CAB based deployment strategy, rather - I have my own setup program, and my own version checking via a website. Now, imagine the following: 1. User enters the website with an old ActiveX, which is loaded. 2. Website has JavaScript that loads the ActiveX, tells the user that it is old and moves him to a different page with a download link for a new setup program that contains the new ActiveX. 3. User runs the setup program, but cannot upgrade the ActiveX - the OCX is locked by Internet Explorer. Note that during step 3 there is NO webpage which uses the ActiveX - the download page has no JavaScript at all, in fact. Does anyone have any tips as to what I can do in such a situation? Or, better yet, does anyone know how to force Internet Explorer to unload an OCX? Thank you!

    S 1 Reply Last reply
    0
    • A advance512

      Hey, I have an in-proc ActiveX control I developed myself. It does not use the standard .CAB based deployment strategy, rather - I have my own setup program, and my own version checking via a website. Now, imagine the following: 1. User enters the website with an old ActiveX, which is loaded. 2. Website has JavaScript that loads the ActiveX, tells the user that it is old and moves him to a different page with a download link for a new setup program that contains the new ActiveX. 3. User runs the setup program, but cannot upgrade the ActiveX - the OCX is locked by Internet Explorer. Note that during step 3 there is NO webpage which uses the ActiveX - the download page has no JavaScript at all, in fact. Does anyone have any tips as to what I can do in such a situation? Or, better yet, does anyone know how to force Internet Explorer to unload an OCX? Thank you!

      S Offline
      S Offline
      serzh83
      wrote on last edited by
      #2

      The simplest way is to restart Internet Explorer

      A 1 Reply Last reply
      0
      • S serzh83

        The simplest way is to restart Internet Explorer

        A Offline
        A Offline
        advance512
        wrote on last edited by
        #3

        Is there a way to do this without restarting Internet Explorer? I was thinking of instantiating a specific version of the ActiveX, perhaps via AppIDs. Is this possible? If I do not have a specific version, I can try and spawn a "generic" ActiveX (with no specific version), and test its version. Is this feasible?

        C L 2 Replies Last reply
        0
        • A advance512

          Is there a way to do this without restarting Internet Explorer? I was thinking of instantiating a specific version of the ActiveX, perhaps via AppIDs. Is this possible? If I do not have a specific version, I can try and spawn a "generic" ActiveX (with no specific version), and test its version. Is this feasible?

          C Offline
          C Offline
          cariolihome
          wrote on last edited by
          #4

          As far as i know, ActiveX is a passive side. And you can't enforce IE to unload it.

          1 Reply Last reply
          0
          • A advance512

            Is there a way to do this without restarting Internet Explorer? I was thinking of instantiating a specific version of the ActiveX, perhaps via AppIDs. Is this possible? If I do not have a specific version, I can try and spawn a "generic" ActiveX (with no specific version), and test its version. Is this feasible?

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            One of the basics of ActiveX (COM) is that you can have only one version of a component in a machine. When you register a newer version, the older version is automatically unregistered (leading to what is known as DLL hell).

            A 1 Reply Last reply
            0
            • L Lost User

              One of the basics of ActiveX (COM) is that you can have only one version of a component in a machine. When you register a newer version, the older version is automatically unregistered (leading to what is known as DLL hell).

              A Offline
              A Offline
              advance512
              wrote on last edited by
              #6

              Okay, I get it. So what do I do? A new CLSID for each version of the component?

              L 1 Reply Last reply
              0
              • A advance512

                Okay, I get it. So what do I do? A new CLSID for each version of the component?

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Probably yes, but you are the best judge :)

                A 1 Reply Last reply
                0
                • L Lost User

                  Probably yes, but you are the best judge :)

                  A Offline
                  A Offline
                  advance512
                  wrote on last edited by
                  #8

                  haha :) Thanks, very helpful ;)

                  L 1 Reply Last reply
                  0
                  • A advance512

                    haha :) Thanks, very helpful ;)

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    Why not mark it an answer if that really helped ?

                    A 1 Reply Last reply
                    0
                    • L Lost User

                      Why not mark it an answer if that really helped ?

                      A Offline
                      A Offline
                      advance512
                      wrote on last edited by
                      #10

                      Because it honestly didn't help. What would help would be guidelines that assist me in the activity of creating updaters for ActiveX controls, etc. Alon

                      L 1 Reply Last reply
                      0
                      • A advance512

                        Because it honestly didn't help. What would help would be guidelines that assist me in the activity of creating updaters for ActiveX controls, etc. Alon

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #11

                        What is your problem with restarting IE, all ActiveX controls (including those from Microsoft) are updated that way, it means there is no way to update the controls without restarting IE. Let me know if you find a way of doing it :thumbsup:

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups