i am new to windows services. please help me to know is Project installer Mandatory for Windows service or why do we need project installer. can we create and install windows service into system without project installer.
thanks,
i am new to windows services. please help me to know is Project installer Mandatory for Windows service or why do we need project installer. can we create and install windows service into system without project installer.
thanks,
If you're talking about the ProjectInstaller.cs
file that's added to your service project if you're looking at the Service and choose "Add Installer...", then yes, it's required.
It creates two components - a ServiceProcessInstaller
and a ServiceInstaller
. Together, these components contain important information that is required to install a service - such as what account the service should run under (such as Local System, Local Service, Network Service or an actual user account), metadata about the service, and information about how the service should be started.
I think that DinosaurTom's answer was assuming you were talking about an installer project, a separate project in the solution that would create a setup/MSI file. It is exactly the two above mentioned components that tools such as InstallUtil
or a Setup Project actually interact with to perform installation.
No, it is not mandatory. However it could be useful when installing on many maschines.
We can create a Windows Service without Project Installer. For example, like in this post Install a Windows Service using a Windows Command Prompt