Sunday 9 October 2011

Installing ActiveX using installer

In the installer project in the FileSystem View add the activex project's primary output, and set property "Register" to "vsdrpCOM", doing this ensures the installers installs and removes the ActiveX control from the system.

If using in JavaScript and ActiveX control is not initializing then go to security setting and click customise and update "initialize and script activex controls not marked as safe for scripting" from disable to "enable (not secure)", 

Note: this is not the recommended setting, only provide here for development purpose only, not for deployment scenario.

To implement an activex control which is safe to execute see following post


http://www.atalasoft.com/cs/blogs/rickm/archive/2009/06/03/net-2-0-activex-control-gotchas-safe-for-scripting-and-hooking-into-events.aspx

No comments:

Post a Comment