December 15, 2005

Useful registry hack to "Run As" MSI packages

Oh man what a find today! I noticed a post on Michael Willer's blog where he shows how to tweak the registry so you can finally right click and "Run As" MSI packages when you are running with least privilege in Windows.

  1. Run regedit.exe under an account with administrative privileges
  2. Create the key HKEY_CLASSES_ROOT\Msi.Package\shell\runas\
  3. Set the default value to Install &as...
  4. Create the key HKEY_CLASSES_ROOT\Msi.Package\shell\runas\command\
  5. Set the default value to msiexec /i "%1"

This is uber kewl. It drives me nuts when I download an MSI and can't simply right-click and Run-As to install. Thanks for the tip Michael!

Posted by SilverStr at December 15, 2005 02:23 PM | TrackBack

Cool tip. Thx

However, I've found that you can simply copy the runas key from HKCR\exefile\shell as well. This is a slightly different form, and labels it as "Run as..." on the context menu, but seems to be functionally equivalent. I put it in a .reg file at

Posted by: Scotte at December 15, 2005 04:38 PM


Posted by: Mike at December 16, 2005 03:17 AM