how to install a service in windows code example
Example 1: install windows service
SC CREATE "MySVC" binpath= "D:\Me\Services\MySVC\MySVC.exe"
Example 2: uninstall service cmd
sc delete "service name"
SC CREATE "MySVC" binpath= "D:\Me\Services\MySVC\MySVC.exe"
sc delete "service name"