Tuesday, March 22, 2011

Steps to install windows service

For installing the Windows.Net Framework is necessary, if not present then install it first.

  1. Run the windows service setup by double clicking the setup application.
  2. The installation process is self explanatory just go through pressing next button until finish comes.
  3. After successful installation the Windows Service should be installed in C:\Program Files\gsspl\HmsCrsWinService(ServiceName)
  4. Go to C:\WINDOWS\Microsoft.NET\Framework>cd v4.0.30319 On command prompt
  5. type following command on command prompt
installutil u “C:\Program Files\gsspl\HmsCrsWinService\HMSWindowsService.exe”

Note : if Service is already installed than first uninstall it and then run the command as follow

installutil -u “C:\Program Files\gsspl\HmsCrsWinService\HMSWindowsService.exe”

now follow the steps from first through end.

  1. Now go to Control Panel->Administrative tools->Services
  2. Check if HmsCrsServiceNew is there or not, if installation is ok then this should be there.
  3. Change the Connection string in app.config file modify it depending upon the property, i.e., change the ip, db name, username and password, Connection string would be found on path “C:\Program Files\gsspl\HmsCrsWinService\App.config”.
  4. After setting the connection string go to Control Panel->Administrative tools->Services right click the service and start it.
  5. Go to Control Panel->Administrative tools->Event Viewer

This will state the Current status of the service.

No comments:

Post a Comment