Sunday, April 11, 2010

ActiveX Version Registration

On Friday I spent some time for investigation of ActiveX versioning issue when it is installed using msi package. This msi package registers the ActiveX control as a COM server using regasm tool.

The problem was the version part of the codebase attribute did not work properly. I have found some similar complaints at different sites.

As a result there is a need to create a registry key:

HKCR/CLSID/{GUID}/InstalledVersion/(Default)

where default value is the version referenced in the Html (decimals replaced by commas).

Per-user, this value is at:

HKCU/Software/Classes/{GUID}/InstalledVersion/(Default).

NOTE: You have to create this key, regasm does not create it.

No comments: