WindowsIdentity.GetCurrent() returns SYSTEM when ran from custom action

Posted by jwarzech on Stack Overflow See other posts from Stack Overflow or by jwarzech
Published on 2010-05-03T16:04:30Z Indexed on 2010/05/03 16:08 UTC
Read the original article Hit count: 258

I have an install project that launches a custom action at commit which starts the application that was just installed. During the startup of this application I have a method that checks the current user's name to perform some authentication. When launched from this custom action I am getting 'NTAUTHORITY\SYSTEM' instead of 'DOMAIN\USER'

© Stack Overflow or respective owner

Related posts about .NET

Related posts about visual-studio-2008