透過 .NET 撰寫 Windows 服務二三事

Timer 要使用 System.Timers.Timer:

http://www.dotblogs.com.tw/mis2000lab/archive/2009/03/06/timer_windows_service_20090306.aspx

建立安裝專案

http://stackoverflow.com/questions/1190294/c-windows-service-installer-not-registering-service

安裝專案要設定

image

要設定安裝完畢後,立即自動啟動:http://stackoverflow.com/questions/1036713/automatically-start-a-windows-service-on-install

簡單的 Sample http://cid-bf14192bd27975cb.office.live.com/self.aspx/Source/NET/WindowsServiceAndSetup.zip

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

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

Facebook照片

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

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

%d 位部落客按了讚: