Geeks With Blogs

Blue Probe It’s the parting gift when you host an alien abduction

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

Posted on Sunday, March 2, 2008 8:07 AM | Back to top


Comments on this post: Run an .msi installer file as Administrator

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
It might also help to do a:

runas /user:domain\user msiexec /a "Microsoft .NET Pet Shop 4.0.msi"
Left by AW on Nov 11, 2008 7:49 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
easier method is run cmd.exe as administrator and then launch .msi file
Left by Marti on Aug 31, 2009 9:29 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
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

Left by Lee Powers on Sep 12, 2009 3:37 PM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
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. :)
Left by Magius on Sep 21, 2009 4:02 PM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
Lee's solution is the only one that worked for me (though I couldn't use it exactly as described - just went under Accessories and right-clicked Command).

I had tried changing, renaming, adding, and deleting registry values (and entire trees). I had executed various command-line attempts. This was the one that fixed my problem, and now the latest ActivePerl installation is on my Vista Home 32 computer.
Left by Gerry Seymour on Dec 14, 2009 8:18 PM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
Another way is just go to start menu
look for the command promt icon
put the curson on it
press down ctrl and RIGHT-click
then you get the option to run CMD as admin
then you browse to the MSI and run it
Left by Tyler Sysro on Jan 06, 2010 9:14 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
runas /noprofile /user:domain\username "msiexec /i \"full file path\program name.msi\""
Left by Gumby on Jan 18, 2010 7:49 PM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
@Magius
Thanks alot this worked! You are of great help keep it up.
Left by kp on Apr 20, 2010 8:38 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
We also had the same problem with the .msi files we were creating. It was very frustrating. After googling for a very long time we found the preceding post by Magius, we adapted it and came up with the following:

http://www.sourcecodestore.com/Article.aspx?ID=10

So that the registry editing part is contained in a .reg file. Once the Install_As_Administrator.Reg patch is applied, it makes any .msi file run with elevated permissions.
Left by Julio Luzardo on Oct 26, 2010 6:41 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
Hi! the runas command I's better in my opinion, you can also use runasspc:
http://runakay.blogspot.com/2011/03/running-applications-as-administrator.html
Left by Rony on Mar 13, 2011 5:33 PM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
Fantastic! Thank you v.much, the last posters' suggestion worked like a charm.
Left by zoltan on Mar 30, 2011 8:17 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
awesome. worked fine...
Left by Gauri on Aug 19, 2011 5:43 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
it keep asking for password for encryted
file:instal.msi
help
Left by Gitarrero.Beginner.Guitar.Lesson on Sep 12, 2011 11:21 PM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
thanks very much
Left by michael on Jan 19, 2012 12:05 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
works for me .great!!! thank you
Left by mourad on May 03, 2012 6:50 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
@Julio Luzardo:
Thanks for this work around. It really worked for me.
Left by skhalid on May 22, 2012 12:22 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
@Julio Luzardo thank you very, very, very mutch, help me a lot!
Left by Maycon Almeida (MrMayconAlmeida) on Nov 19, 2012 9:40 PM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
i have tried the following in windows XP:

go to C:\WINDOWS\system32

right click on cmd.exe
click on "run as ..."

then search the location of your msi file

type the name and enter.

worked fine for me.
Left by ralbanez on Jan 04, 2013 8:55 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
Great. Worked like a charm through CMD run as administrator. Thank you
Left by Joe on Feb 17, 2013 12:06 PM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
Nice !!
Thank you guy ^^
Left by reber on Mar 06, 2013 5:00 PM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
Some time back, I wrote a tool to enable 'Run as Administrator' context menu option for .MSI files. Alternative to all the methods posted here, you may download a copy here - https://runasadminmsiexttink.codeplex.com/
Left by gmaran23 on Mar 11, 2013 8:22 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
So may said that fixed their issue, what did, which comment???
Left by Jack on May 20, 2013 2:18 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
Just read above... modify the registry works for me and it's a permanent solution
Left by ... on Jul 24, 2013 9:43 PM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
I did a right click on the cmd.exe in program files, runas admin on that, drug\dropped the .msi file to the cmd window. That worked! It did not work when dragging it from the network drive I had to save a copy on the desktop 1st.
Left by Lynne on Jan 10, 2014 8:24 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
I opened cmd and ran as administrator. It opened and by default location came as c:\windows\system32
Then I typed msiexec /a "C:\Users\Gaurav\Downloads\SQLServer2005_SSMSEE_x64.msi" and pressed enter. It prompt of installing and the got a prompt that completing the installation. Then nothing happened.
Kindly help.

Gaurav
Left by Gaurav Sotani on Jan 12, 2014 1:37 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
thanks for the tip
Left by Eric on May 23, 2014 5:46 AM

# re: Run an .msi installer file as Administrator
Requesting Gravatar...
I found running the command prompt as admin, and then dragging the MSI into the CMD window the easiest way to run one without the 'run as' option.
Left by Luke Davis on Sep 23, 2014 12:34 AM

Your comment:
 (will show your gravatar)


Copyright © Ken Hortsch | Powered by: GeeksWithBlogs.net