Home > Quick Tips > Add “Run As” to MSI Files

Add “Run As” to MSI Files

January 25th, 2009 azlon Leave a comment Go to comments
Run as on EXE file

One thing I have found annoying about Windows XP is the fact that they don’t put Run as in the context menu for MSI files. I have an admin user/pass for some computers and like to install a few small applications to make life easier. To do this on restricted computers you simply right click on the file, select Run as and enter the user/pass. An MSI file is similar to an EXE file because they install software to the computer.

If you need to enter a username and password to install files, there is a way to do it via command line, but what fun is that? Here is how you can add Run as to the context menu of MSI files on Windows XP.

  • Run regedit.exe under an account with administrative privileges

Run Regedit as administrator

  • Create the key HKEY_CLASSES_ROOT\Msi.Package\shell\runas\
  • Set the default value to Run &as…

Create the runas key

  • Create the key HKEY_CLASSES_ROOT\Msi.Package\shell\runas\command\
  • Set the default value to msiexec /i “%1″

Create the command key

Now when you right click on your MSI file, you have the Run as command!

Run as on MSI files
Categories: Quick Tips Tags:
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.