windows-services

Run java application as windows service (using jsl) - get error when installing

大憨熊 提交于 2020-01-05 09:10:05
问题 Get a problem when installing java application as service in windows environment(Win 7). use jsl http://jslwin.sourceforge.net/ to launch application when installing with jsl -install error message : OpenScManager failed - Access is denied. <0x5> but application run when jsl -run , i already log in as administrate but java application not install as service (not shows up in the service.msc), any help? 回答1: You probably need to use 'run-as-administrator'. Even if logged in as administrator

What is the difference between running an application as a service or deploying it on a container?

拟墨画扇 提交于 2020-01-05 08:14:18
问题 I need to install the following applications for our continuous delivery strategy: Jenkins and Apache Archiva But they offer: to be install as a windows service or to be deploy in a container (i.e. Tomcat) I was wondering if installing those applications as a service will give us better performance, reliability, security or whatsoever or the other way around or nothing at all Thank you! 回答1: From the official documentation for installing Jenkins on Windows: If you're running on Windows it is

Confusion about installing windows service using command prompts

浪尽此生 提交于 2020-01-05 04:14:07
问题 I have designed a simple windows service in .NET 2.0. I am trying to deploy it on my local machine. I have switched to design view, and setup ServiceInstaller and ServiceProcessInstaller objects. There is a Project Installer. I have also wrapped the Windows Service into a .NET setup project and install it, leaving an .exe in the specified directory. I have fired up cmd and entered the path to installutil. This works fine, but then I typeinstallutil and the full path to the service, in Visual

Cannot update a Windows Service installed by MSI

末鹿安然 提交于 2020-01-04 15:25:16
问题 I'm facing a weird problem and I can't find a working solution. Thanks in advance for any help. I developed a Windows Service in C# that use Newtonsoft.JSON library to parse the result from a bunch of WebAPI. The service is deployed with MSI and everything was working perfectly. The first version of the service was using Newtonsoft.JSON 6.0.8, but recently I moved to version 11.0.2. I packed a new MSI (with correct version/Product Id/Upgrade Id to ensure upgrading) and I'm trying to deploy

Windows service showing a GUI when no user is logged in

孤者浪人 提交于 2020-01-04 14:16:50
问题 Is it possible to a display dialog window from a windows service over the logon screen of Windows 7 (when no user is logged in yet) ? I found this article explaining how to display a window on a logged in user desktop but how to do it when there is no user logged in ? I was thinking about trying to automatically log in a user then display the window on his desktop but is it possible to display it directly over the logon screen ? 回答1: GINA was replaced by Windows Vista Credential Provider. One

Unable to connect to WCF service from windows service

删除回忆录丶 提交于 2020-01-04 13:44:02
问题 I have a WCF service hosted on a remote machine. On my local machine I have a WPF application and a windows service that I want to be able to connect to the WCF service. The WPF application connects and communicates fine, but for some reason the windows service won't connect. The app.config files for both of them are identical and the code to make the connection is the same in both. Is there any reason why a windows service would not be able to connect? Here is the exception I am getting: The

windows service strange behavior

安稳与你 提交于 2020-01-04 09:18:21
问题 I implemented windows service with eventLog and FileSystemWatcher that looks for changes in specific directory and writes messages into MyLog . strange thing 1: I install it via installUtil.exe (since the VS2012 doesn't have installer templates) and in some situations when I go to "Services" and start the service I get: The [service name] service on local computer started and then stopped. Some Services stop automatically if they are not in use by another services or programs. I've already

Constructor injection with Quartz.NET 3.0.3 and Simple Injector How To

假如想象 提交于 2020-01-04 02:11:07
问题 I am trying to use Quartz.Net v3.0.3 and Simple Injector in a windows service. I have a job class below which i would like to inject some dependencies such as my logger into. public class JobWorker : IJob { private ILogger _logger; public JobWorker(ILogger logger) { _logger = logger; } public Task Execute(IJobExecutionContext context) { return Task.Run(() =>_logger.Log("Do Work")); } } I tried registering Container.Register<IJob, JobWorker>(); on my DI layer but this doesn't help. If i remove

Creating a Python script that runs as a Windows service using sc.exe

为君一笑 提交于 2020-01-03 21:47:28
问题 I would like to create a Windows Service using a batch script for a Python script that I have written. I decided to do some experimenting with sc. Here is the line that I used: sc create RoundTripService binPath="C:\Python27\python.exe C:\script.py" type=own error=ignore start=auto Unfortunately, when I do so, the console is giving me a printout of the Description/Usage/Options, etc. of sc instead. 回答1: SC is overly strict about spaces in its command line and you are receiving the error

Process for updating a windows service? Automated or is it manual?

强颜欢笑 提交于 2020-01-03 12:30:13
问题 If I have a windows service on a server, what is 'best practise' for updating the service? (say there was a bug in it, or I need to ad more features to it). Is there a way I could shutdown the service, patch it and get it up and running in a more automated way? (any links with code would be great) 回答1: Well, you could always up the version on the installer (if you used one) and run that, from my experience it overlays old versions with the newer one. Or you could simply shut down the service,