MSI is built for enterprise users so they can deploy to groups of computers using SCCM, assuming that the MSI will be started from an elevated process.
However, it happens very often that users use the MSI by double-clicking it. In that case, installation completes successfully, but the add-in registration which is done by a custom action (that executes adxregistrator.exe) fails with the error:
Code: Select all
Exception Source: AddinExpress.MSO.2005
Exception Type: System.ComponentModel.Win32Exception
Exception Message: Access is denied
Exception Target Site: CreateSubKey ...
The problem, from the user's perspective, is that the MSI installer seemed to run, and seemed to complete but the add-in doesn't appear in the Outlook.
We need a way to successfully register the add-in when a user, that has necessary permissions, starts the installation by double-clicking it and stop the installation with a meaningful message for the user without required permissions.
If this is not possible we need a way to stop the installation if it is launched by double-clicking the MSI and display a message instructing the user to use msiexec from an elevated command prompt.