/build/static/layout/Breadcrumb_cap_w.png

registering ActiveX objects

Hi,

I have the following dilemma. I need to know what settings I should set to register my ActiveX objects so that they are not over written and can be removed. Here is the situation. I have built an MSI lets say version 1. It includes two files,

ActiveX_1.DLL
ActiveX.INF

I install this on the production machine.

Then I create an update to the previous ActiveX_1.DLL and call it ActiveX_2.DLL with the same named ActiveX.INF file.
When I install the the second MSI it overwrites the INF file of the first one. Both ActiveX are registered. However, when I try to uninstall both, I get strage behaviour.

First, when uninstalling the ActiveX.INF, it removes the ActiveX.DLL and ActiveX.INF files. When I try to uninstall the ActiveX_1.DLL, it un registers the object, but does not remove the DLL.

Also, the reason for INF file, the install comes from a CAB file. A cab file can not be installed from IE because of security policy. In that case, do I really need the INF File, would I be fine by just installing the ActiveX_1.DLL and ActiveX_2.DLL as the only files in the MSI. Or do I need INF?

Any help?

Thanks
Al

0 Comments   [ + ] Show comments

Answers (1)

Posted by: MSIPackager 15 years ago
3rd Degree Black Belt
0
As far as I know you do not need to include the .INF file. You just need the .DLL and associated registration info (preferably using the correct tables) all written by the same component.

If you want the .DLL etc removed during uninstall then ensure you don't have the permanent component attribute set (value 16 when viewing the component table). You should then be able to create a neat upgrade package which will remove ActiveX_1.DLL and install ActiveX_2.DLL as long as you do the ActiveX_2.DLL package it in the same way.

Hope this makes sense.

Regards,
Rob.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ