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: http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/RegistryTips/Security/InstallingMSIPackageswithElevatedPrivileges.html


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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.