[wix-users] How to detect Non-Admin User with UAC On and terminate Installation

Jeremy Drake jeremydrake+wix at eacceleration.com
Fri Sep 11 12:50:50 PDT 2015


https://msdn.microsoft.com/en-us/library/aa368772%28v=vs.85%29.aspx

When including the installation context with the installation launch 
conditions, use a Custom Action Type 19 in the InstallExecuteSequence 
table and make the custom action conditional upon the Privileged property. 
Do not use an action in the LaunchCondition table with a condition based 
on the AdminUser property or Privileged property.


On Fri, 11 Sep 2015, Das, Krishnendu (GE Healthcare) wrote:

> Hello,
>
> I am trying to put a condition (in LaunchCondition) using the 'Privileged' variable for admin install only. However,  I am running into the following issue.
>
>
> -          With UAC On (User logged in as Non Admin), the 'Privileged' variable is still getting set.
>
> MSI (c) (04:90) [15:17:29:420]: MSI_LUA: Setting AdminUser property to 1 because this is the client or the user has already permitted elevation
> MSI (c) (04:90) [15:17:29:420]: PROPERTY CHANGE: Adding AdminUser property. Its value is '1'.
> MSI (c) (04:90) [15:17:29:420]: PROPERTY CHANGE: Adding Privileged property. Its value is '1'.
>
> I do not want to use MSIUSEREALADMINDETECTION or MsiRunningElevated since those property require Windows Installer 4.0
>
> Please note that the Package InstallPrivileges is set to "elevated".
>
> Any suggestion? Is this a Windows issue?
>
> Thanks,
>
> Kris Das
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
>



More information about the wix-users mailing list