Register DLLs (elevated) using the context menu
There are tips available on the Web on how to add the Register and Unregister comands in the context menu for .DLL files. The option is quite handy, instead of us having to manually type the regsvr32.exe command line.
But what if you’re using Windows Vista?
In Windows Vista with User Account Control (UAC) enabled, you require to elevate a task whenever a system-wide operation is to be carried out. Registering system DLLs from a non-elevated state may cause an error. For example, try to register the system module JScript.dll from Start, Search box (i.e. without elevating it). You’re sure to see the error 0×80004005 (ACCESS IS DENIED) when you do so.

Whereas, registering the DLL from an elevated Command Prompt window should work fine:

REGISTER DLLs (elevated) from the CONTEXT MENU
To add the Register command in the context menu that’ll run the Regsvr32.exe command under elevated rights, you need to use the runas verb. Here is a .reg file that I created, a runas verb for .DLLs and .OCX files, in the following registry keys:
1. Download the file register_runas.reg and save to Desktop.
2. Right-click on the file and choose Merge.
3. Click Yes when you’re asked for confirmation.
You should now see the Register command in the context menu of DLL and OCX file types.

MORE INFORMATION
To recollect things, we’ve used the runas verb in the past to do the following:
- Open an elevated Command Prompt from the folder context menu
- Elevate a Vbscript file using the "runas" parameter in ShellExecute
Likewise, the runas verb can be used with any file type.
RELATED POSTS
- Adding the Run as Administrator option for .VBS and .JS files
- Calendar Gadget in Windows Sidebar is blank with orange background
- Add “Edit HOSTS file” option in the context menu
- How to Take Ownership of a file or folder using command-line in Windows Vista?
- Open an elevated Command Prompt from the Desktop context menu
Bookmark this Page!BlinkList | del.icio.us | Digg it | Furl | reddit | Spurl | StumbleUpon | Wink |


If you enjoyed this post, make sure you
Prefer an E-mail subscription?
Pingback by Add “Edit HOSTS file” option in the context menu - The Winhelponline.com Blog on 26 March 2008:
[...] Register DLLs (elevated) using the context menu [...]
Pingback by Adding the Run as Administrator option for .VBS and .JS files - The Winhelponline.com Blog on 27 March 2008:
[...] Register DLLs (elevated) using the context menu [...]
Pingback by How to Take Ownership of a file or folder in Windows Vista? - The Winhelponline Blog on 3 May 2008:
[...] option for .VBS and .JS filesAdd “Edit HOSTS file” option in the context menuRegister DLLs (elevated) using the context menuOpen Command Window Here - Make available from folder treeSave and Restore Desktop icon layoutOpen [...]