I am using Visual Studio 2010 on windows 7 and developing a windows forms application in c# with a setup project ( msi ) that comes with visual studio.
I have added a custom action :
protected override void OnCommitted(IDictionary savedState)
{
base.OnCommitted(savedState);
Process.Start(@"Path");
}
But when my application starts, it starts with the user "NTSYSTEM". I want it to start with the logged in windows user account instead.
How can i manage that?
Thank you.
I solved it...
Added a javascript to run the program in the Post-Build property for the setup project and it started as a user instead of the system.