ocxregsvr32

What permissions/rights are needed to run regsvr32 /s /c "myocx.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)


Solution

  • 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.