windows-services

WIX 3.5 Multiple Instances Windows Service

戏子无情 提交于 2019-12-11 04:39:01
问题 I have a simple WIX installer which will install a Windows Service. I have Multiple Instances setup so that the service can run side by side. Everything is looking good the only problem I'm now having is when I uninstall the installation. It completely removes the actual windows service executable, however it doesn't completely remove the registry entry. Going into the services.msc I can still see the service name. I have to go into the registry and manually delete the entry. Check out my

Failing to start Windows service after a MajorUpgrade with WiX

↘锁芯ラ 提交于 2019-12-11 04:26:15
问题 I have a pretty straight forward WiX project. Nothing fancy. When trying to perform a MajorUpgrade over an existing installation, it is unable to start the service and inevitably rolls back to the previous version and starts the service just fine. I have removed the Start="install" and manually started the application successfully, so I know it's not a dependency issue. I have searched endlessly and found no answers to my problem. <MajorUpgrade DowngradeErrorMessage="A newer version of

How to start a AspNetCore App from an existing windows service

佐手、 提交于 2019-12-11 04:25:08
问题 I have an existing windows service. The goal is to have a REST interface to communicate with this service. I thought it might be a good idea to just make a ASP.NET Core Web Application (see screenshot) and simply start the whole thing inside my existing service. Then they could share the same IOC container and so on. Then I registered the service with sc create s1 binPath = "pathgoeshere" When I start the service (attach to process for debugging) I get an error in the output window: Exception

Auto Start Windows Services through Installer in VS.Net 2008

孤街浪徒 提交于 2019-12-11 03:54:32
问题 I have installed Windows Services using Setup and Deployment Wizard. I have successfully installed Services with the help of link http://msdn.microsoft.com/en-us/library/zt39148a%28v=VS.90%29.aspx .But when I go to services(Services.msc) I see that services status is not available(blank).It needs to be Started.Rather it should autmoatically start as above. 来源: https://stackoverflow.com/questions/7495225/auto-start-windows-services-through-installer-in-vs-net-2008

Automatically Start Windows Service on Install

我与影子孤独终老i 提交于 2019-12-11 03:53:25
问题 I have a Windows service and an MSI installer (setup project) for it. The setup project has custom actions for install and uninstall with args of /install and /uninstall respectively. I would like the service to start immediately after the install. All my service does is starts a process. When the service is stopped, it does process.Close(); . I have tried doing var sc = new ServiceController( "MyProcess" ); sc.Start(); The process starts, but the event log message saying the service has

Taking screenshots with Windows Service in Windows 7 [duplicate]

♀尐吖头ヾ 提交于 2019-12-11 03:45:25
问题 This question already has answers here : Windows service couldnt get screenshot in windows 7 (2 answers) Closed 6 years ago . I know it's an old question about screenshots in Win 7 with winService on c#. I have read all articles about this on Stack Overflow and a lot on CodeProject...I know about 0 session for services , starting from Win Vista & about Allow service to interact with desktop checking... But I'm stuck (I can't take screenshot from service, because I don't know where display

Event Viewer — log to sub folder?

▼魔方 西西 提交于 2019-12-11 03:26:42
问题 I've searched and searched and can't find the answer. We have a custom service that runs and logs into the Event Viewer. In Windows 7, there's a folder called "Applications and Services Logs". How do I log an event in there? Is it even possible? 回答1: It will happen automatically when you create a new Event Log using something like: EventLog.CreateEventSource("Our Source", "Our Log"); And that call requires elevated privileges, but only needs to be done once. After that, you can reference with

How would I allow an application running on Tomcat access to a network directory?

感情迁移 提交于 2019-12-11 03:22:53
问题 I'm running a web application (written in Java) on a Tomcat server running on Windows 7. At some point in the application, I try to access a directory on a remote machine through the basic java.io.File class. If I start Tomcat from the command line through "tomcat6.exe //TS//MyServiceName", my application can successfully find the network directory. When I start Tomcat as a service, though, it thinks the directory doesn't exist. Based on some research, I'm assuming it's an authentication

Log4Net stops logging and have to restart the windows service

只愿长相守 提交于 2019-12-11 03:14:21
问题 We have a windows service using Quartz.net scheduler and we are using log4net for logging. During the service execution our database went offline and after it came bacck online the log4neet stopped logging. we have to re-start the service again for the logging to start again. we can see that the service is running as other tables are getting updated but nothing is getting logged. is there something we can set or a way to get log4net continue logging after database comes online?? 来源: https:/

showing a popup form a windows service

ε祈祈猫儿з 提交于 2019-12-11 02:49:39
问题 Im looking for some advice on an application im creating using a windows service. Basically we have some timesheet software and i need to create a windows service that will poll a db to see if they have completed last weeks timesheet. If they havent completed it i want the application to popup a message stating that it is incomplete and that they should go and complete it. Ive created a simple service from a tutorial i found and got it to install and run fine. I now need to think about the