If you are facing problems registering an OCX file on Windows Vista even though you are logged in as an administrator, its probably the UAC kicking in. But this post is not about UAC, but about what can be done quickly to resolve this.
What you need to do is that you need to open a command prompt with elevated privileges in order to register that OCX file. To do that:
- Press the Windows Key.
- Type ‘cmd’.
- Press Ctrl+Shift+Enter.
- Press Alt+C to confirm and continue with your activity (this is the dialog box which is asking you whether you want to run in an elevated mode).
Once you have done all that, you should have a command prompt open which is in an elevated mode. You should try registering your OCX file now.
Obviously, this technique can be used for other purposes as well.
Note: Some people try to do this by pressing Windows Key+R and then typing cmd followed by Ctrl+Shift+Enter. This does not work.