Home Work Tips and Tricks Installing An MSI File As Another User In Windows XP
Installing An MSI File As Another User In Windows XP PDF Print E-mail
Work - Windows Tips and Tricks
Written by mbrock   
Friday, 23 May 2008 22:46

MSI Install AsAs a .NET developer I frequently find myself having to install or upgrade applications on my work computer. This presents a problem for me at work because my normal Windows account does not have administrative rights on my computer. I have a second account that I have to use for things that require me to have administrative rights. But then my administrative account does not have Internet access. Needless to say, I work in a very secure Windows environment...

Therefore I have to download new applications and updates with one account and install them with another account. Logging in and out of Windows to run installation programs gets old fast. Luckily, for .EXE files anyway, there is the runas command to run executables as another user.

But, for me anyway, there is not a way to readily run .MSI installation files as another user. Apparently a group policy keeps me from running .MSI files as another user - or does it? I have found that it is possible to hack the registry to do this... Read on.

Open up Regedit.

Navigate to HKEY_CLASSES_ROOT\Msi.Package\Shell

Create a New KEY Called "runas" and set the Default value of that key to "Install &as"
Now Create a Sub Key called "Command" and set the default value to "msiexec /i "%1""

The new registry entries should look like this:
[HKEY_CLASSES_ROOT\Msi.Package\shell\runas]
@="Install &as"
 
[HKEY_CLASSES_ROOT\Msi.Package\shell\runas\Command]
@="msiexec /i \"%1\""


Now there should be an "Install As" on the right click menu of your MSI file.

 

 

 

Add your comment

Your name:
Your email:
Your website:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
mbrock.com
Copyright © 2012 mbrock.com. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.