Run an .msi installer file as Administrator

I was trying to install the .Net Pet Shop 4.0 on Windows Vista and kept getting the error:  The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.  There is no right click option, Run as administrator for .msi files.  You can, however, run the CMD prompt as Admin, then the following:

msiexec  /a "Microsoft .NET Pet Shop 4.0.msi"

Another useful command to crack open a .msi installer file:

msiexec /a "Microsoft .NET Pet Shop 4.0.msi" /qb TARGETDIR=c:\temp

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted @ Sunday, March 02, 2008 8:07 AM

Comments on this entry:

Gravatar # re: Run an .msi installer file as Administrator
by AW at 11/11/2008 7:49 AM

It might also help to do a:

runas /user:domain\user msiexec /a "Microsoft .NET Pet Shop 4.0.msi"
Gravatar # re: Run an .msi installer file as Administrator
by Marti at 8/31/2009 9:29 AM

easier method is run cmd.exe as administrator and then launch .msi file
Gravatar # re: Run an .msi installer file as Administrator
by Lee Powers at 9/12/2009 3:37 PM

Another option that worked for me:

1. Start Button / key
2. Type in "cmd" without quotes and press Shift+Enter to open a command prompt as an administrator.
3. Type in the full path to the msi and press enter. Put the path inside quotes if it has any spaces like "C:\Users\username\My Documents\SQLServer2005_SSMSEE.msi"
4. Press enter and agree to execute the MSI

Gravatar # re: Run an .msi installer file as Administrator
by Magius at 9/21/2009 4:02 PM

The best solution I've seen so far is posted here:
http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/RegistryTips/Security/InstallingMSIPackageswithElevatedPrivileges.html

Requires some small registry editing, but you get the "Run as Admin" on the right-click menu. :)
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: