How to install windows service on my local computer
Posted on 2006-03-21
Can you please tell me How to install windows service on my local computer?
i was trying to install it using projectInstaller
i dont know why it is not working...
I also created same exact application as a windows application to see if there is a problem in the application but the application is running fine and does what i need it to do... in short.
For windows service i have created following all the work is done in Timer1_Elapsed function
Protected Overrides Sub OnStart(ByVal args() As String)
Protected Overrides Sub OnStop()
' Add code here to perform any tear-down necessary to stop your service.
Private Sub Timer1_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs) Handles Timer1.Elapsed
Dim strFilesPath As String
strFilesPath = ConfigurationSettings.AppSettings.Get("FilesPath")
Dim oldFileName As String
Dim newFileName As String
' HERE I HAVE CODE TO GET MY oldFilename and NewFilename
For Each fl In fls
Rename(strPath + oldFileName, strPath + newFileName)