[wix-users] How to detect Non-Admin User with UAC On and terminate Installation
Das, Krishnendu (GE Healthcare)
Krishnendu.Das at ge.com
Fri Sep 11 13:20:30 PDT 2015
Hi Jeremy,
Thank you. I already have CA19 in InstallExecuteSequence, and it is working fine. The issue I am having is for InstallUISequence, where the "Priveleged' is getting set (with UAC on) prior to evaluating the condition.
Thanks,
Krishnendu Das (Kris Das)
Senior Software Engineer
Speciality Solutions - PACS
GE Healthcare IT
T + 1 802 859 6852
C + 1 337 739 2500
E Krishnendu.Das at ge.com
http://www.gehealthcare.com
40 IDX Drive
South Burlington, VT, 05403, USA
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Jeremy Drake
Sent: Friday, September 11, 2015 3:51 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] How to detect Non-Admin User with UAC On and terminate Installation
https://urldefense.proofpoint.com/v2/url?u=https-3A__msdn.microsoft.com_en-2Dus_library_aa368772-2528v-3Dvs.85-2529.aspx&d=BQICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=uLju3dJ-CgmCi1EWs84QMAc5yDaGaeqLoLy7HXAtx_o&m=NLPsHupg_Dxodrij_nNv4tYmK-Z7qV37KUC5K3rkPTA&s=xYMZa_1RkZGj2cGKE_MkGYdxTIOK-9nH5GeQZYZpwpk&e=
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
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_
> &d=BQICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=uLju3dJ-CgmC
> i1EWs84QMAc5yDaGaeqLoLy7HXAtx_o&m=NLPsHupg_Dxodrij_nNv4tYmK-Z7qV37KUC5
> K3rkPTA&s=Dl1M1vUaBSRxUrZ5SMeuUk9quhRbwLLFrTex_EDOJUw&e=
>
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=BQICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=uLju3dJ-CgmCi1EWs84QMAc5yDaGaeqLoLy7HXAtx_o&m=NLPsHupg_Dxodrij_nNv4tYmK-Z7qV37KUC5K3rkPTA&s=Dl1M1vUaBSRxUrZ5SMeuUk9quhRbwLLFrTex_EDOJUw&e=
More information about the wix-users
mailing list