How can I run .msi installer with administrator rights?
Solution 1
See: Special Installation Instructions for the ActiveGanttVBA & ActiveGanttCSA Gantt Scheduler Components
To circumvent this error, extract and double click on the:
Install_As_Administrator.reg
File that is included in the Install_As_Administrator.zip file distribution that can be downloaded from the top link on this page. This file will modify the Windows Registry to include the following information:
[HKEY_CLASSES_ROOT\Msi.Package\shell\runas] @="Install &As Administrator..." [HKEY_CLASSES_ROOT\Msi.Package\shell\runas\command] @="msiexec /i \"%1\""
Once the Windows Registry has been modified using the Install_As_Administrator.Reg patch you can right click on any Windows Installer (*. msi) file and select the option Install As Administrator and the .msi file will run using elevated permissions (Administrator Permissions).
Solution 2
Hitting Shift while clicking on the MSI and then running as a different user and putting in my credentials allowed me to run my MSI. I did this even though I was logged in with those credentials.
Solution 3
Here is a reg file that will add the "Run as Administrator" option to the right-click menu for .msi files.
Save the .reg file to the desktop.
Double click/tap on the downloaded .reg file to merge it.
When prompted, click/tap on Run, Yes (UAC-Windows 7/8) or Continue (UAC-Vista), Yes, and OK to approve merging the .reg file.
You can now delete the downloaded .reg file if you like.
Solution 4
I believe you need to hold shift then right click on the msi (or application) to get the 'Run as Administrator' option. As detailed here: http://mockbox.net/windows-7/235-windows-7-run-program-as-a-different-user.html
Related videos on Youtube
Jacek Koralik
Updated on September 18, 2022Comments
-
Jacek Koralik over 1 year
As in topic. I want to run .msi installer but I cannot install a program because it requires administrator rights. As for .exe files I know how to do that.
EDIT:
My problem is that I don't have 'Run as the administrator' when i righ-click, shift-click, control-click or anything. On .exe files I can see that option but not with .msi.-
Admin almost 13 yearsWhat exactly is your problem?
-
Admin almost 13 yearsEdited my queston.
-
Admin almost 13 yearsDuplicate Voting to close other post
-
Admin over 6 yearsI browsed the answers, and all seem to be more or less OK. However, the easiest way to install an MSI with admin rights in my view is to launch the install of the MSI file from an elevated command prompt (right click cmd.exe and select "run as administrator"). Install with a command line something like this:
msiexec.exe /I "MyFile.msi" /QN /L*V "C:\msilog.log"
(update paths as appropriate).
-
-
Andrey Rubshtein about 11 yearsDoes not work on .msi files! See @Ichibann solution
-
Gangnus about 10 yearsA very convenient solution. +1
-
Kristen Waite about 9 yearsThis worked for me when the accepted answer (modifying registry) did not work.
-
pacoverflow over 4 yearsWhat does the
&
in front ofAs
do? -
VoteCoffee about 4 yearsIt makes the letter "A" a keyboard shortcut