Massoud Mazar

Sharing The Knowledge


serviceInstaller component and its default EventLogInstaller

While working on a Windows Service project in .net (Visual Studio 2008), a minor problem related to defining custom event logs kept bugging me.

As you already know, to debug your Windows Service you should use InstallUtil tool to install the service in your Windows. For InstallUtil to be able to install your Service, you add an Installer to your project which contains a ServiceProcessInstaller and a ServiceInstaller. So far everything is cool. You set the properties on these components and BAM! you can now easily install your Service. If you look closely at the IinstallUtil messages on your screen you will see that it creates an EventLog source with the same name you specify for the Service Name property of the ServiceInstaller component and assigns that source to a standard Windows event log called Application. More...

Welcome to my new blog

I know it's way past due, but i finally decided to spend the time and get this blog software setup on my site.

When I started the web site (early 1999), my idea was to have a web site to share my thoughts and knowledge. At that time the concept of blogging was not as popular as it is now, and obviously there was no pre-existing software for it, so I started with some simple static HTML files. After I got more involved with creating web application using classic ASP, I converted my site to an ASP web site so I could re-use parts of the UI, and that was it. So, is still a Classic ASP site for now, until I find the time to move all my previous articles to this new blog.

But before I move old contents to this new system, I may start with some new articles.

In case you need to find those old pages use this link