Joe

Joe

  • NA
  • 6
  • 0

Create and App that runs as a service without a user prompted install or ...

Jun 20 2006 5:03 PM

I have written an APP. program that runs in the background to verify the status of a home network and to backup files from certain directories to one of these network drives.     I could have used a console template, but that looks so 90’s.  So, instead I have a ‘windows form’ template that does not open the window. Basically, I replaced ‘Application.Run(new MainPage());’ with ‘new Mainpage();’ and have all my runcode in the Mainpage(). Not only does this look like an amture job, but I think it also uses up alot of extra, unneed memory, about 25,000K to be percise.

So my pro goal would be to turn this App into a Service that does not prompt the user for an install directory nor any of the other useless activities. However, I have done some reading online and have found that windows might require such an install type prompt to run in order to setup this app as a service. If that is the case, my ‘plan B’ would be to correctly setup my APP to run in the back ground without all the 'windows form’ stuff having to be initlized.

I have e-mailed my instructor about this question and all he tells me is, “Your making the project bigger then it is.”  Go Big, or Go Home - I say.   

 

Thank You for your help


Answers (1)