msiexpert created the topic: Windows Service does not appear in Windows Service Control Manager
Hi
I am building a windows service with VS2010 Beta 2. I created a windows service project in vb. I added a ServiceController object to the service designer, I also added a ServiceInstaller and ServiceProcessInstaller and configured the ServiceInstaller.ServiceName = Service Project Name. I also added a deployment project with the correct Primary output project and the necessary additional dll and xml files I am using.
When I install using the .msi file the project installed successfully under the correct application directory and I get successful install message, however the service does not show up in the Service Control Manager. The platform is Vista Premium Service Pack 2. Also when I build the thing in VS2010 I always get the following warning message:
Warning 1 Item ‘Microsoft .NET Framework 4 Client Profile (x86 and x64)’ could not find any of dependent items ‘Microsoft.Windows.Installer.3.1, Microsoft.Windows.Installer.4.5’.
All the components used in the service are .NET 2.0 or lower. I have set the complier options to .NET 2.0 through to .NET 4.0 Beta. I always get the warning message. Any ideas why the Service Control Manager is not picking up my service? Any help much appreciated.
InstallerGeek replied the topic: Re: Windows Service does not appear in Windows Service Control Manager
Sounds like an overly complicated project. I recommend reading this article:
visualstudiomagazine.com/Articles/2005/1…Windows-Service.aspx
I found the code in that article to be overly complicated for my service application needs, so I developed a simple version which I will post in a separate reply.
Not sure if this information will help, but simpler is usually better.
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024