"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, adds the runas verb for DLL and OCX file types in the following registry keys:
HKEY_CLASSES_ROOT \ Dllfile \ runas
HKEY_CLASSES_ROOT \ Ocxfile \ runas
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 (as Administrator) command in the right-click menu for DLL and OCX file types.
" winhelponline.com
No comments:
Post a Comment