Jump to content

Recommended Posts

Posted (edited)

Windows Vista Ultimate.

I can only unregister and register dlls with REGSRV32, like in

regsvr32 /u c:\windows\system32\DivXDec.ax

or

regsvr32 "C:\Program Files\Common Files\Roxio Shared\9.0\DivX\DivXDec.ax"

with UAC turned off. With UAC on, all I get is an error message (didn't wrote it down).

Can someone tell me if this is normal behaviour? I'm afraid that if it isn't, it may have consequences to the successful installation of software on my system.

Thank you.

Pedro

Edited by pfragoso

Posted

This is normal - you need to open a command prompt by right-clicking on the icon and selecting "Run as administrator", or use runas to elevate, before you can run regsvr32 with UAC enabled.

Posted

Cluberti,

Thanks for the explanation.

Could you be so nice as to tell me how do I create a shortcut/icon for Run that I can put in the Start Menu and that can be right clicked with the option to Run as Administrator?

And, how does one use RunAs? I tried to find out, but couldn't.

If you could just provide urls that I could consult or the name of a book, it would be great.

Thank you.

Pedro

Posted

pedro,

if you create a normal shortcut on the desktop to the run command, when you right click on that shortcut you will get the option to run the shortcut as a administrator

Posted

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dllfile\shell\Reg]
@="Register DLL"

[HKEY_CLASSES_ROOT\dllfile\shell\Reg\Command]
@="regsvr32 %1"

[HKEY_CLASSES_ROOT\dllfile\shell\UnReg]
@="UnRegister DLL "

[HKEY_CLASSES_ROOT\dllfile\shell\UnReg\Command]
@="regsvr32 /u %1"

[HKEY_CLASSES_ROOT\ocxfile\shell\Reg]
@="Register OCX"

[HKEY_CLASSES_ROOT\ocxfile\shell\Reg\Command]
@="regsvr32 %1"

[HKEY_CLASSES_ROOT\ocxfile\shell\UnReg]
@="UnRegister OCX"

[HKEY_CLASSES_ROOT\ocxfile\shell\UnReg\Command]
@="regsvr32 /u %1"

Copy this code and Save As with .reg extension

Patch It !

Now You will get Register and Unregister contect menu for registeration of DLL and OCX on Windows Vista and XP also.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...