Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What permissions/rights are needed to run regsvr32 /s /c "myocx.ocx"

Tags:

regsvr32

ocx

I have a WindowsXP configured as a build machine. The build process runs under an account which isn't an administrator.

Some projects register as a last step an ocx control with something like

regsvr32 /s /c ".\debug\myocx.ocx"

This step fails and I assume that this has something to do with rights because doing the same under an admin account works fine.

What rights/permissions/policies do I need to give the build account and where do I do it? (Browsing Local Users and Groups and Local Security Settings haven't helped me)

like image 928
Christian Rodemeyer Avatar asked Feb 20 '09 11:02

Christian Rodemeyer


People also ask

How do I register a DLL without admin rights?

Just use RegisterDLL "C:\Path\To\File. DLL" to automatically add the required entries. These scripts require no references, and no admin access. They should generally run fast and allow for setting on application startup, and cleaning on application shutdown, if conflicts might be an issue.

What is C System32 Regsvr32 Exe?

Regsvr32 is a command-line utility to register and unregister OLE controls, such as DLLs and ActiveX controls in the Windows Registry. Regsvr32.exe is installed in the %systemroot%\System32 folder in Windows XP and later versions of Windows.


1 Answers

Via regedit you need to give the build account rights on "HKEY_CLASSES_ROOT.

Right-click on HKEY_CLASSES_ROOT and choose Permissions...Full Control.

like image 56
Christian Rodemeyer Avatar answered Oct 13 '22 19:10

Christian Rodemeyer