How can I register/unregister ActiveX controls without administrator privileges programatically?
Posted on 2007-12-03
Our old C++/VFP application is setup to allow updating of the individual modules programmatically upon startup. Some of these modules are ActiveX controls and the process works by calling DllUnregisterServer, replacing the ActiveX control and then calling DllRegisterServer entry points within each DLL. The initial install works fine upon initial install and registers the new files. (even under Vista)
On subsequent updates to these modules however, Vista now brings up the annoying dialog requesting "elevation" for permission and will not update these files. If I have the user run as Administrator, then none of these problems exist but the application now does not recognize some of the other ActiveX controls and returns a "Class not Registered" error when accessing them.
So it appears as if I have no good alternative.... so any suggestions you have would be helpful.