[wix-users] Prompt for Windows Credentials in Wix for Admin Privileges
Joseph L. Casale
jcasale at activenetwerx.com
Thu Nov 23 09:56:40 PST 2017
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
Of Ven H via wix-users
Sent: Thursday, November 23, 2017 10:35 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Ven H <venh.123 at gmail.com>
Subject: [wix-users] Prompt for Windows Credentials in Wix for Admin
> My Package element has InstallPrivileges="elevated" and a launch condition
> like below.
> <Condition Message='You need to be an administrator to install
> If I run it in non admin mode, it does display a message, which is
> configured in the launch condition, i.e., You need to be an administrator
> to install the product. But, I would like to display the Windows
> Credentials pop up to capture the Admin user credentials and then validate
> it and proceed with the installation under the Admin credentials. Is this
> possible? Can anyone please help me achieve this?
Remove the condition and let Windows invoke the elevation request? Why
do you need to capture the credentials at all?
More information about the wix-users