[wix-users] How to execute a custom action with user privileges (non elevated)
joel.budreau at gmail.com
Mon Nov 27 12:04:46 PST 2017
You can execute a custom action and set Impersonate=“yes”. This will make the custom action execute with the user’s credentials (not the SYSTEM account).
> On Nov 16, 2017, at 1:51 AM, Roland Kieslinger via wix-users <wix-users at lists.wixtoolset.org> wrote:
> Is it possible to execute a custom action with user privileges (non elevated)?
> If a user with local admin rights logs on on windows, 2 tokens are generated. One token without admin rights (filtered token) and one token with admin rights. If he maps a network drive, this usually happens using the filtered token, except he does it explicitly with admin rights, for example by starting cmd elevated and using "net use...". But if he does the mapping with the filtered token, I have no chance to access the network drive in my setup, because I always get the token with admin rights there.
> I thought I get the filtered token, when I'm executing a custom action in the immediate phase, but it seems that's not the case.
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users