Forcing Internet Explorer to unload an ActiveX
-
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!
-
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!
-
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?
-
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?
As far as i know, ActiveX is a passive side. And you can't enforce IE to unload it.
-
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?
-
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).
Okay, I get it. So what do I do? A new CLSID for each version of the component?
-
Okay, I get it. So what do I do? A new CLSID for each version of the component?
-
haha :) Thanks, very helpful ;)
-
haha :) Thanks, very helpful ;)
-
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
-
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