Install a windows service: there is a util with Visual Studio: InstallUtil.exe. If I have a service MyService.exe and want to install it on a windows 7 without Visual Studio on it, how can I install it?
One way is to use sc.exe, which is part of OS. Example:
sc create **ServiceName** start= auto binPath= "c:\mydir\myService.exe"
where binPath is exe file containing your service.
if you don't want start type = automatic then you can use net start and net stop command on command line of windows to start and stop service respectively.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With