Installer project does not install service

  • Thread starter Thread starter David Preuss
  • Start date Start date
D

David Preuss

Hello all,

hopefully someone can help me. I have got a service which I want to
deploy. I added an installer project to my solution and did everything
as stated in some kb articles (eg adding the .exe and on and on.).
Everything is deployed to the folders but the service itself is not
installed.

Can someone give some hints on how to get the service installed?

Thanks

David
 
Wasn't this by executing

RegSvcs.exe
located in:
%windir%\Microsoft.NET\Framework\v1.1.4322

Probably there is a nicer way...

- Joris
 
Hello Joris,

I could install it manually by invoking installutil.exe from the
framework, but an setup project is intended to deploy the software in a
nicce manner for the customers without making such weird things like
calling regsrv or installutil.

In the KB article I saw regarding this it is said that after
installation the service should show up in services mmc but ...

http://msdn.microsoft.com/library/d...kthroughcreatingwindowsserviceapplication.asp

Thanks for the reply, if you have other ideas regarding the issue,

David
 
You did follow the steps at: "To create the installers for your service" , I
assume?

1.. Return to Design view for Service1.
2.. Click the background of the designer to select the service itself,
rather than any of its contents.
3.. In the Properties window, click the Add Installer link in the gray
area beneath the list of properties.
By default, a component class containing two installers is added to your
project. The component is named ProjectInstaller, and the installers it
contains are the installer for your service and the installer for the
service's associated process.

4.. Access Design view for ProjectInstaller, and click ServiceInstaller1.
5.. In the Properties window, set the ServiceName property to
MyNewService.
6.. Set the StartType property to Automatic.
7.. In the designer, select ServiceProcessInstaller1 (for a Visual Basic
project), or serviceProcessInstaller1 (for a Visual C# project). Set the
Account property to LocalService. This will cause the service to be
installed and to run on a local service account. For more information, see
ServiceProcessInstaller.Account Property.
Security Note The LocalService account acts as a non-privileged user
on the local computer, and presents anonymous credentials to any remote
server. Use the other accounts with caution, as they run with higher
privileges and increase your risk of attacks from malicious code.

- Joris
 
Back
Top