MSI installer custom action identity problem

Posted by DkAngelito on Stack Overflow See other posts from Stack Overflow or by DkAngelito
Published on 2010-12-29T20:40:58Z Indexed on 2010/12/29 20:54 UTC
Read the original article Hit count: 370

Filed under:
|
|

Hi,

I'm creating a custom action that executes a script on a database. The problem is that the connectios uses intergrated security, so when I try to open the connection i get the error: Login Failed for user 'Domain\ComputerName$'.

When i check the identity on the custom action (using System.Security.Principal.WindowsIdentity.GetCurrent()) I always get "NT AUTHORITY\SYSTEM" but I'm running the installer under my account which has enough privileges on the Database.

How can I run the custom action under the real user runnig the msi file or solve this problem in any other way?

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-installer