Posted By

karlhorky on 12/03/09


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


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

 / Published in: Windows Registry


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:

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

Report this snippet  

You need to login to post a comment.