Windows XP - Running MSI files as administrator

April 2018

By default , upon right-cliking on an MSI file, the "Run as administrator" is missing. To have it back in the context menu:
  • Open the registry:
  • Click on Start > Run > type regedit
  • Scroll to: HKEY > CLASSES > ROOT > Msi.Package > Shell
  • Click on the Edit menu > New > Key
  • Rename it as "runas"
  • Double click the Default value.
  • Enter the text " Run as administrator" and click OK.
  • Select the runas key . Click the Edit menu, click New > Key.
  • Rename it as "command"
  • Double click on Default value.
  • Enter the command msiexec /i "% 1" and click OK.
  • Close the Registry Editor.

As from now each time you right click on an MSI file , the "Run as administrator" option will be present.
Published by jad05. Latest update on August 7, 2011 at 04:37 AM by jad05.
This document, titled "Windows XP - Running MSI files as administrator ," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
Windows XP - Running a program in fullscreen by default
Windows XP - Limited or no connectivity with SP3