How To Run .msi File as Administrator in Windows 7
Run .msi File as Administrator in Windows 7 and Windows Server 2008. Today i had tried to install .msi file in my windows server 2008 and windows 7 machine but got “You do not have sufficient privileges to complete this installation for all users of the machine. Log on as administrator and then retry this installation” message.
What changes should I make in the msi? How should I make them. I don’t want to write another program to run my msi like using shellexecute. I just want to change my msi so that it can run as administrator on windows7 and windows server 2008 both.
- 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.
Steps to Run .msi File as Administrator in Windows 7
1) Locate the Windows Command Prompt shortcut in your Programs menu.
- Typically Programs >> Accessories >> Command Prompt), and right click on it:
2) Now change the directory path. (Example: Your msi file is located at d:Setupabc.msi, then you should go the root of that folder through command prompt and done).
- Most of the problems in windows 7 and windows server 2008 are coming because of the administrative privileges issues. Right click and Run as Administrator option can start most of them.
- And voila! my setup runs like a charm
, hope if you will get this aritcle useful when you are coping up with windows server 2008 and window 7.










It is working! Thanks!
Remember the “.msi” at the end of the file name