13

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.

4
  • What exactly is your problem?
    – Michael K
    May 18, 2011 at 10:52
  • Edited my queston. May 18, 2011 at 11:49
  • Duplicate Voting to close other post
    – Dave M
    May 18, 2011 at 14:17
  • 2
    I 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). Sep 7, 2017 at 21:08

7 Answers 7

7

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).

3
  • A very convenient solution. +1
    – Gangnus
    Feb 9, 2014 at 15:34
  • What does the & in front of As do? Aug 11, 2019 at 21:36
  • It makes the letter "A" a keyboard shortcut
    – VoteCoffee
    Feb 18, 2020 at 17:38
5

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.

0
1

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

1
  • This worked for me when the accepted answer (modifying registry) did not work. Mar 17, 2015 at 19:57
1

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.

0

Right click, Run as. Administrator -Easy as pie. By right windows SHOULD recognise its an installer and kick up UAC tho

1
  • 4
    Does not work on .msi files! See @Ichibann solution Apr 25, 2013 at 13:24
0

A quick solution that worked for me was to start a CMD as administrator and call/execute the .msi from there, by simply changing to the right folder and typing the "filename".msi.

I really like Ichibann's way for a more permanent solution.

-1

This worked here. YMMV. Some versions of windows block executables including .msi files. Find that in file properties: Right click, find and click Properties (at bottom on my computer). Click the General tab (that's presented first here) At the bottom find Security: There's a message, "This file came from another computer and might be blocked to help protect this computer." There is a button "Unblock" Click it and the installer will start and perform correctly.

You may have to wait for the UAC dialog. If you don't OK execution in the UAC dialog, the installer will fail.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .