How to Install and unstall Windows Service

1. This for installation of Service 
cd C:\WINNT\Microsoft.NET\Framework\v1.1.4322
installutil C:\MoveFileService\MoveFileService\bin\Debug\MoveFileService.exe // select path where you exe is stored
net start MoveFileService    // Comment "name of service"
2. This is for Uninstallation of Service
cd C:\WINNT\Microsoft.NET\Framework\v1.1.4322
net stop MoveFileService
installutil /u C:\MoveFileService\MoveFileService\bin\Debug\MoveFileService.exe

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s