I am attempting to install a C# windows service project using a VisualStudio.Net deployment project.
To run the deployment project I right-click and select \"install\"
Add this code to your private void InitializeComponent()
method in projectInstaller.Designer.cs
file in your windows service project.
this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
if the definition of you process installer is:
private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller1;