bnsgroup
Posts: 10
Joined: Tue Aug 28, 2012 10:59 am

Running an MSI elevated

We are a Microsoft ISV required to run our MSI elevated to install various windows services in our install. We are using AI 10.6 current version.

We are aware that we can select in AI run as an Administrator and an exe and msi are created side by side. You can right-click the exe and run as administrator and the install will run correctly. We contacted Microsoft support to determine why we cannot right-click on an msi and run as an administrator, here is their response.

------------
Hello Clive

Sorry for the late reply. I’ve followed up this issue with the product group and engineers for a long while, and there is the information of your request:

This is a by design behavior of Windows Shell, that context menu doesn’t integrate “Run as administrator” item. This is because we should never have to upfront elevate an MSI. If an MSI needs elevation, it should prompt at the time it needs it. Otherwise the MSI is authored incorrectly. This is by design and not an issue.

If an MSI package neither prompt for elevation nor work properly, the MSI package is not authorized properly and needs to be fixed.

There is an article to explain this design since Windows Vista: http://msdn.microsoft.com/en-us/library ... s.85).aspx

In summary, the MSI package’s authorization should be designed by the service part, rather than user itself, no matter the user is administrator or normal ones.

-------------------

So in conclusion can I request you examine why the AI created MSI cannot run standalone elevated.

Clive
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Running an MSI elevated

Hi Clive,

Usually and MSI created with Advanced Installer tries to elevate the moment you press the button "Install". If this is not the case for you please check the install type you set in Install Parameters page, and make sure you set the package to be installer per machine, or per user (with admin rights required).

Also, please check to see if UAC is disabled on the machines you are testing the package.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”