Posted By

karlhorky on 12/03/09


Tagged

menu as administrator install admin Context privileges run contextMenu rightClick msi installas runas elevation


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


MSI Right-click Context Menu: Install As (other user or administrator)


 / Published in: Windows Registry
 

URL: http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/RegistryTips/Security/InstallingMSIPackageswithElevatedPrivileges.html

RunAs is a great way of temporarily elevating your privileges to admin level when you are logged on as an ordinary user. However, while you can right-click on .exe files and select Run As from the shortcut menu, this doesn't work with Windows Installer (.msi) packages.

Here's a workaround that makes this possible.

Credit for this trick goes to: http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/RegistryTips/Security/InstallingMSIPackageswithElevatedPrivileges.html

  1. Windows Registry Editor Version 5.00
  2.  
  3. [HKEY_CLASSES_ROOT\Msi.Package\shell\runas]
  4. @="Install &as"
  5.  
  6. [HKEY_CLASSES_ROOT\Msi.Package\shell\runas\command]
  7. @="msiexec /i \"%1\""

Report this snippet  

You need to login to post a comment.