Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Registering OCX with regsvr32.exe and having it available for all users

I have a third party web application that relies on a particular OCX file to be registered on the user's computer. I have gone into the computer as an administrator and registered the file with the command:

REGSVR32 /S MyFile.ocx

This works fine and I am able to use the web application without issue. In regedit I can see the control has registered properly.

However when another user logs onto the computer who is not an admin and tries to run the web application it does not work.

If I add that user to the administrators group and have them run the REGSVR32 command it works fine for them. Unfortunately it really isn't feasible for me to allow all users to be administrators on their machines.

Is there a way I can register the OCX file with REGSVR32 and have it available to all users, even those without admin rights?

Thanks!

like image 853
TroggleDorf Avatar asked Dec 16 '12 02:12

TroggleDorf


People also ask

How do I register an OCX file in Windows 10?

OCX files. Start your server in VGA mode. You will need to use the Regsvr.exe, Regsvr16.exe (16-bit), or Regsvr32.exe (32-bit) command to register the OCX file as system global. These commands are included in the development kit when Visual Basic or Visual FoxPro is installed.

How do I register a 32-bit OCX file in Windows 10 64-bit?

Type the command "Regsvr32 ," where is the full path and filename of the OCX file you want to register. Include a "/s" in the command to run in silent mode and keep the system from displaying any messages. Press "Enter."


1 Answers

Usually regsvr32 registers CLSID info in HKEY_LOCAL_MACHINE\software\Classes, so registration should be visible to all users.

The problem could be with your OCX. It might do something on start up that prevents to open it for non-admin users. For instance it requires to write something to HKEY_LOCAL_MACHINE registry, write to Windows directory, ...

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

In case if your OCX doesn't do anything under admin account, what you can try to do is to register you OCX under HKEY_CURRENT_USER lever by using RegSvrEx tool. This way your OCX will be registered under current_user_level

like image 119
Vlad Bezden Avatar answered Sep 28 '22 00:09

Vlad Bezden