views:

98

answers:

0

I'm using C# with .NET 3.5 SP1 in Visual Studio 2008 SP1.

I have a .NET Windows service that I install using the technique described by Marc Gravell here. This solution simply bypasses the need to use the InstallUtil executable directly, meaning that I do not have to include it in my InstallShield project.

When the service is first installed on the system, a .InstallLog file is created in the installation directory with pertinent installation messages. When the service is uninstalled, the same .InstallLog file is written to with the pertinent uninstallation data.

My question is simple. Is there a way to add custom information (e.g., timestamp) to the .InstallLog?