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

/ Published in: Windows Registry
Save to your folder(s)

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:

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.