Once you create a windows service project, for installing the windows service you need to add installer classes (for installutil tool to install the service). After adding installer classe to your windows service project, you would be able to find projectinstaller.vb
in your solution explorer. open projectinstaller.vb
, in designer view you will be able to find two components serviceprocessinstaller and serviceinstaller. Change the account property of serviceprocessinstaller to "LocalService". Change the ServiceName property of the serviceinstaller to the one of your choice. Build the project and try to install.