[wix-users] When should an installation ask for administrative privileges

Rob Mensching rob at firegiant.com
Wed Mar 14 02:32:04 PDT 2018


Best practice is to prompt for elevation only when you absolutely need it. For example, clicking the "Install" button.

Prompting up front means too much of your processing is elevated (for example, the UI should not be elevated).

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Sean Farrow via wix-users
Sent: Wednesday, March 14, 2018 2:09 AM
To: wix-users at lists.wixtoolset.org
Cc: Sean Farrow <sean.farrow at seanfarrow.co.uk>
Subject: [wix-users] When should an installation ask for administrative privileges

Hi all,

I've got an installer that I have not developed but have been asked to look at. One of the things this installer does is ask for administrative privelleges when the user clicks the install button. Is this best practice, or should the request for admin privelleges come before the installer starts?
To my mind it should be the latter, but I want to check what the best practice advice is.
Any advice appreciated.
Kind regards
Sean.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list