1. Command Line: this is useful in case when we do not have any IDE and only command
line and window service exe is available.
For installing: installutil.exe –I window service exe path
For uninstalling installutil.exe –u window service exe path
2. Setup Installer: This method is useful in case when you want to let the visual studio to do all stuff for you.
3. From Code