Search code examples
windowscompermissionsprivileges

How to Register a COM Object for All Users


I use regsvr32 MyCOM.dll to register my com object for my application. This works fine under my admin account. if a switch the user to a non admin, the program fails. It seems that the COM object is not loaded for the non admin user. Any ideas on why this might be or a possible solution?


Solution

  • COM objects need to be registered by an admin user, usually. (There are subtleties and exceptions that I won't get into here, because based on your description that's not what's going on.)

    However, once the COM object has been registered, all users should be able to use it provided that the object was registered with appropriate permissions.