windows service
-
Hi, I have developed a windows sservice on my dev machine. The project installer is also created. This service is tested on my machine and it is fine. Now I would like to give it to the management to install/run it on the required machine. Question: How should this windows service application be setup on the requred machine which may or may not have .net framework? Thanks
-
Hi, I have developed a windows sservice on my dev machine. The project installer is also created. This service is tested on my machine and it is fine. Now I would like to give it to the management to install/run it on the required machine. Question: How should this windows service application be setup on the requred machine which may or may not have .net framework? Thanks
-
if(!TargetMachineHasDotNetFramework)
{
InstallRequiredDotNetFramework();
}
InstallWindowsService();well, you did ask in the C# forum.
-
I think you mis-understood. I would like to know how to install the windows service on another machine? I mean do I just copy the whole development codes to the other machine, etc? Thanks
-
You said you had an installer for your service, wouldn't logic tell you to install your service you would use the installer?
On my machine which has visual studio, I run the vs command to install or un-install the service. The question is: What do I do if this service needs to be installed on another machine? If the installer is required for this purpose, then how do I run it on another machine. I believe I can not get vs command on the other machine. Hope you follow my question. Thanks
-
On my machine which has visual studio, I run the vs command to install or un-install the service. The question is: What do I do if this service needs to be installed on another machine? If the installer is required for this purpose, then how do I run it on another machine. I believe I can not get vs command on the other machine. Hope you follow my question. Thanks
arkiboys wrote:
What do I do if this service needs to be installed on another machine
Easiest way is to create an installer, take that installer to the other machine and run it. A Google search[^] will provide you with a plethora of information on the subject.
-
On my machine which has visual studio, I run the vs command to install or un-install the service. The question is: What do I do if this service needs to be installed on another machine? If the installer is required for this purpose, then how do I run it on another machine. I believe I can not get vs command on the other machine. Hope you follow my question. Thanks
To install the Windows Service on another machine you would add a Setup project to your solution which would then create an MSI package. Run the MSI package on the target machine and this will create the Windows Service. Obviously you would need the relevant .NET Framework version on the target machine.
-
To install the Windows Service on another machine you would add a Setup project to your solution which would then create an MSI package. Run the MSI package on the target machine and this will create the Windows Service. Obviously you would need the relevant .NET Framework version on the target machine.