How can I run .msi installer with administrator rights?

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

7 Answers

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

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

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:

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.

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

1

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.

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like