Quantcast
Channel: Running a Windows Service in Console mode? - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Yogev Smila for Running a Windows Service in Console mode?

Also.. instead of using -console arg, you can identify its console by using Environment.UserInteractive, which will be false when running as service, but true when running the EXE directly.

View Article



Answer by TheDaveJay for Running a Windows Service in Console mode?

You can also have a look at this: http://www.thedavejay.com/2012/04/self-installing-c-windows-service-safe.htmlIt allows you to debug as a console application, and install the same app as a windows...

View Article

Answer by Keith Barrows for Running a Windows Service in Console mode?

And I found my answer! My project properties were set to Windows App instead of Console App. DOH! (Project Properties > Application Tab > Output type:)

View Article

Image may be NSFW.
Clik here to view.

Running a Windows Service in Console mode?

I found some sample code posted athttps://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/4d45e9ea5471cba4/4519371a77ed4a74?hl=en&pli=1for self installing a...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>