There is \"Setup project\" in VS. During installation I launch another process:
System.Diagnostics.Process process = new System.Diagnostics.Process(); //fill
Use ProcessStartInfo class and its property UserName, then use it as argument for Process.Start static method.
UserName
ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.UserName = System.Security.Principal.WindowsIdentity.GetCurrent().Name; Process.Start(startInfo);