Ask Leo! by Leo A. Notenboom

How do I install an msi file that requires administrative privileges in Windows Vista?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Windows » Windows Oddities

Summary: Installation packages that use msi files may require administrative rights in Windows Vista, but it might not be obvious how to grant those rights.

I was trying to install software on Windows Vista Home Premium, but it required admin rights. It's an msi package, which doesn't include "Run as administrator" in the context menu. How do I install it?

I'm somewhat surprised that "Run as administrator" wasn't available. I'm also somewhat surprised that the install just failed, rather than asking for permission to run as administrator - I believe that the installer can take care of that itself with your permission.

However, it is what it is, and thus we need to find a way to work around it.

The good news is that there are a couple of ways.

What most people don't realize is that most files that have a program association can be executed directly from the command line in the Windows Command Prompt. ".msi" files are no different, and are associated with the Windows installer. That realization gives us perhaps the quickest and easiest work around to this problem.

Locate the Windows Command Prompt shortcut in your Programs menu (typically Programs -> Accessories -> Command Prompt), and right click on it:

Run as Administrator on Command Prompt

"... most files that have an program association can be executed directly from the command line ..."

As you can see, "Run as Administrator" is present. After confirming with the admin password, you can now use this instance of the Command Prompt to run whatever you like. Including an MSI:

C:\> whatever.msi
C:\>

The command prompt may return immediately, but Windows Installer will also launch in a new window, with the administrative privileges it needs.

I also have to be honest and say that I don't use this approach.

For my security needs, the whole concept of confirming each time that I want to do something as administrator is overkill. Hence, I turn off user access (or account) control in Windows Vista.

If I'm logged in as a user with administrative privileges, this means two things:

  • Just running the Command Prompt normally would result in it being run as administrator.

  • More importantly, just running the ".msi" file, through Windows Explorer or the Command Prompt, would also give it the administrative rights it needs.

Yes, this approach bypasses some of the additional security measures built into Windows Vista, so use this approach only if you're certain that it's appropriate for your situation.

But on the other hand, realize that this approach is no less secure than logging in as an administrator in Windows XP.

Related:

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

Article C3527 - October 10, 2008

Recent Comments
4 Comments

I'm running Vista home Premium and when I right click on "Run", I don't see the "Run as administrator" option. I haven't turned off USer Access or Account Control, but could it be that my machine came from HP that way? How can I verify?

It's not "Run" that you right click on. Right click on the shortcut to the program you want to run.
- Leo
15-Oct-2008

Posted by: Mike Santarcangelo at October 14, 2008 12:16 PM

Mike, I also have a new HP with Vista Home Premium. Right clicking on "Run" doesn't do anything, but a left click brings up a new window to type in the name of the program. Below the box is a statement: "This task will be created with administrative privileges." I was thinking that maybe whenever run in used that it automatically runs as administrator and therefore no additional options are needed. I don't know, just a guess.

Posted by: Kitty Ashenbrenner at October 14, 2008 1:55 PM

I had a similar problem with a downloaded update file from HP for my scanner. Every attempt to run it, even using "Run as Administrator" failed with a comment that it must be run by the administrator.

The solution: right clicking on the file and getting the properties showed at the bottom this statement:

"This file came from another computer and might be blocked to help protect this computer" and next to it was an unblock button.

I click on it and then clicked Apply. When I clicked the Apply the message disappeared and it ran with just a double click as it should

Posted by: Kirk Ransom at February 5, 2009 5:38 AM

This is brilliant. It worked.

To run .msi file as an Administrator.

Thanks.

Posted by: Adolph Kpesese at May 7, 2009 7:27 AM

Post a comment on "How do I install an msi file that requires administrative privileges in Windows Vista?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!