RE: Winforms\WIndows Service

2013-07-22 Thread ifumust
Subject: Re: Winforms\WIndows Service I have generally written services as console apps first, with `Console.WriteLine` injected as a log through the application. Then to create an installer I just look at the command line options, so my main() looks like: if (options.Help) { // show help

Re: Winforms\WIndows Service

2013-07-22 Thread Ben Scott
t-boun...@ozdotnet.com> [mailto:ozdotnet-boun...@ozdotnet.com <mailto:ozdotnet-boun...@ozdotnet.com>] *On Behalf Of *Tom Rutter *Sent:* Monday, 22 July 2013 3:26 PM *To:* ozDotNet *Subject:* Re: Winforms\WIndows Service Yeh I maintained an app back in the day that did

Re: Winforms\WIndows Service

2013-07-22 Thread Tom Rutter
tra functionality when required but installed > as service so a reboot doesn’t affect operation. > > ** ** > > *From:* ozdotnet-boun...@ozdotnet.com [mailto: > ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Tom Rutter > *Sent:* Monday, 22 July 2013 3:26 PM > > *To:* ozDotNet >

RE: Winforms\WIndows Service

2013-07-21 Thread ifumust
forms\WIndows Service Yeh I maintained an app back in the day that did this for debugging purposes. Just had 2 code paths. Don't really need it though. I can't think of a reason you would need this off the top of my head. On Mon, Jul 22, 2013 at 10:13 AM, wrote: I found some code a

Re: Winforms\WIndows Service

2013-07-21 Thread mike smith
n Behalf Of *Greg Keogh > *Sent:* Monday, 22 July 2013 11:58 AM > *To:* ozDotNet > *Subject:* Re: Winforms\WIndows Service > > ** ** > > I found some code a while back that allowed me to have an application that > could run as a service or a winform interface…anyone done

Re: Winforms\WIndows Service

2013-07-21 Thread Tom Rutter
Yeh I maintained an app back in the day that did this for debugging purposes. Just had 2 code paths. Don't really need it though. I can't think of a reason you would need this off the top of my head. On Mon, Jul 22, 2013 at 10:13 AM, wrote: > I found some code a while back that allowed me to hav

RE: Winforms\WIndows Service

2013-07-21 Thread ifumust
Found this article. http://coding.abel.nu/2012/05/debugging-a-windows-service-project/ From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Greg Keogh Sent: Monday, 22 July 2013 11:58 AM To: ozDotNet Subject: Re: Winforms\WIndows Service I found some code

Re: Winforms\WIndows Service

2013-07-21 Thread Greg Keogh
> > I found some code a while back that allowed me to have an application that > could run as a service or a winform interface…anyone done this before? > If you want the same executable image to be both a Windows Service or a WinForms app, I've never tried to do that, but perhaps you can differen

Winforms\WIndows Service

2013-07-21 Thread ifumust
I found some code a while back that allowed me to have an application that could run as a service or a winform interface.anyone done this before? Anthony