How can I run .msi installer with administrator rights?

49,037

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

Share:
49,037

Related videos on Youtube

Jacek Koralik
Author by

Jacek Koralik

Updated on September 18, 2022

Comments

  • Jacek Koralik
    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
      Admin almost 13 years
      What exactly is your problem?
    • Admin
      Admin almost 13 years
      Edited my queston.
    • Admin
      Admin almost 13 years
      Duplicate Voting to close other post
    • Admin
      Admin over 6 years
      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).
  • Andrey Rubshtein
    Andrey Rubshtein about 11 years
    Does not work on .msi files! See @Ichibann solution
  • Gangnus
    Gangnus about 10 years
    A very convenient solution. +1
  • Kristen Waite
    Kristen Waite about 9 years
    This worked for me when the accepted answer (modifying registry) did not work.
  • pacoverflow
    pacoverflow over 4 years
    What does the & in front of As do?
  • VoteCoffee
    VoteCoffee about 4 years
    It makes the letter "A" a keyboard shortcut