Register OCX with regsvr32.exe and accessibility for all users

I have a third-party web application that relies on a specific OCX file to register on a user's computer. I logged on to the computer as an administrator and registered the file with the command:

REGSVR32 / S MyFile.ocx

This works great and I can use the web application without any problems. In regedit, I see that the control is registered correctly.

However, when another user logs on to a computer that is not an administrator and tries to run a web application, it does not work.

If I add this user to the administrators group and run the REGSVR32 command, it is great for them. Unfortunately, it is not possible for me to allow all users to be administrators on their machines.

Is there a way to register an OCX file with REGSVR32 and provide it to all users, even without administrator rights?

Thanks!

+4
source share
1 answer

Normally regsvr32 registers CLSID information in HKEY_LOCAL_MACHINE \ software \ Classes, so the registration should be visible to all users.

The problem may be with your OCX. It can do something at startup, which prevents it from being opened to users who are not administrators. For example, for this you need to write something to the HKEY_LOCAL_MACHINE register, write to the Windows directory, ...

You can check if this OCX is doing something for non-admin users using Process Monitor and check for ACCESS_DENIED errors.

If your OCX does nothing under the administrator account, then you can try to register the OCX under the leverage HKEY_CURRENT_USER using RegSvrEx . This way your OCX will be registered in current_user_level mode

+4
source

All Articles