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.
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND