Edit
- Run Regedit or Regedt32.
- Find the registry entry “HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services”.
- Look for the service there and right click on the properties which you want to modify.
Delete
- Run Regedit or Regedt32.
- Find the registry entry “HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services”.
- Look for the service there and delete it. You can look at the keys to know what files the service was using and delete them as well (if necessary).
Install (via command prompt)
- At a command prompt, type: installutil <Path of the Service>
Examples:
- for .net v1.1:
C:\> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\InstallUtil.exe C:\MyService.exe- for .net v2.0:
C:\>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe C:\MyService.exe
Install (via bat file – .net v2.0 example)
- Save the example code as a bat file.
- Place the bat file in the same folder as your service exe file.
- Run the bat file.
@echo off
echo Starting installation..
pauseREM SET LOGFILENAME=log_%DATE:~4,2%%DATE:~7,2%%DATE:~10,4%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%.txt
REM date /t >> %LOGFILENAME%
REM time /t >> %LOGFILENAME%
REM pauseecho Current directory..
cd
pausecls
echo YourServiceName in
cd
pause
C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe YourServiceName.exe
pausecls
echo Installation completed..
pause