Attention: We are retiring the ASP.NET Community Blogs. Learn more >

A couple of Windows Services resources

I've had a couple of Windows Services snippets that I've been meaning to "rip-to-blog" for a while now...

Advanced Installer... a free, advanced MSI creation tool
http://www.advancedinstaller.com/

Code snippet to add a description to your Windows Services (note that, in Whidbey this is all exposed via the API)...


1Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary)
2 MyBase.Install(stateSaver)
3
4 Dim serviceDescription As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("System\CurrentControlSet\Services\" & yourInstaller.ServiceName, True)
5
6 serviceDescription.SetValue("
Description", "This is the FileMonitorService.")
7 serviceDescription.Close()
8End Sub
9

 

[ Currently Playing : Let's Get Lost - Elliott Smith - From a Basement on the Hill (02:27) ]

No Comments