How can I run .msi installer with administrator rights?

11

3

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.

Jacek Koralik

Posted 2011-05-18T10:49:05.660

Reputation: 233

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). – Stein Åsmul – 2017-09-07T21:08:13.303

What exactly is your problem? – Michael K – 2011-05-18T10:52:50.493

Edited my queston. – Jacek Koralik – 2011-05-18T11:49:40.270

Duplicate Voting to close other post – Dave M – 2011-05-18T14:17:43.143

Answers

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

Ichibann

Posted 2011-05-18T10:49:05.660

Reputation: 186

What does the & in front of As do? – pacoverflow – 2019-08-11T21:36:09.953

It makes the letter "A" a keyboard shortcut – VoteCoffee – 2020-02-18T17:38:50.473

A very convenient solution. +1 – Gangnus – 2014-02-09T15:34:41.573

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.

veedgo

Posted 2011-05-18T10:49:05.660

Reputation: 51

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.

Rust

Posted 2011-05-18T10:49:05.660

Reputation: 145

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

ovann86

Posted 2011-05-18T10:49:05.660

Reputation: 1 106

This worked for me when the accepted answer (modifying registry) did not work. – Kristen Waite – 2015-03-17T19:57:51.180

0

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

Journeyman Geek

Posted 2011-05-18T10:49:05.660

Reputation: 119 122

4Does not work on .msi files! See @Ichibann solution – Andrey Rubshtein – 2013-04-25T13:24:55.087

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

david b teague

Posted 2011-05-18T10:49:05.660

Reputation: 1