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.
- Run regedit.exe under an account with administrative privileges
- Create the key HKEY_CLASSES_ROOT\Msi.Package\shell\runas\
- Set the default value to Install &as...
- Create the key HKEY_CLASSES_ROOT\Msi.Package\shell\runas\command\
- 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
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 http://www.scottes.com/MSIRunAs.reg