Autorun application
Hello all. I have an application that I made that I require to start automatically when windows starts. I know I need to make a windows service for it, I'm just not sure how to make a windows service. I need this service to be installed either during my installation process of my application or I need it to be installed by the program itself. Ontop of that, I need to know if it is possible to stop the windows admin messages from popping up everytime the program starts through the service. Thanks.
BryanPosted Nov 16, 2009, 9:04 AM
BryanPosted Nov 9, 2009, 3:37 PM
Hi Mahesh. I read your tutorial on Windows Services, and it was very helpful. I created the service and built it. But then when I tried calling InstallUtil from the cmd prompt it told me that it wasn't recognizable as an internal or external command. Can you please help, or if anyone knows what to do please let me know. Thank you.
BryanPosted Nov 7, 2009, 12:01 AM
Mahesh ChandPosted Nov 6, 2009, 8:58 PM
You're at this point now you have all the information you need. As Sam suggested, now you need to do some reading and do some work.
Keep in mind, all of us have full-time jobs and do have families have a limited time. It would be nice if we spend that time helping out others.
Thank you,
Mahesh
Sam HobbsPosted Nov 6, 2009, 3:46 PM
BryanPosted Nov 6, 2009, 2:11 AM
Kirtan PatelPosted Nov 5, 2009, 9:59 PM
as its normal because you have seen many times every "Setup program " ask you for Admin Permission once and then installs every thing and every time runs automatically"
as you can also set service "Automatic" by coding but again i have to explain you long procedures :)
well wait for some time :) i will provide you code to set this StartUp type by Code :)
you also have to make your installer such that while installing it automatically ask user for Running as Admin Once :)
you can do this by "adding manifest file" to exe :)
BryanPosted Nov 5, 2009, 9:37 PM
Kirtan PatelPosted Nov 5, 2009, 9:34 PM
Install the Service as Admin Account Once ..
(Right Click Intsaller and Run as Admin )
(Perform Following under Admin Account Login)
-----------------------------------------------------
then Start>>Run >> type "services.msc" and hit enter
in the window Find your Service Right Click it>>Properties and Make it Startup "Automatic" there
Good Luck
if my answer helps you then check "Do you like this answer" :)
BryanPosted Nov 5, 2009, 8:03 PM
Sam HobbsPosted Nov 5, 2009, 7:34 PM
Do you have any services that issue "that message in Vista" (whatever that is)? I don't. So obviously it is possible to write a service that does not get "that" message.
BryanPosted Nov 5, 2009, 11:19 AM
Mahesh ChandPosted Nov 5, 2009, 11:14 AM
Creating a Windows Service in C#
You will see in the end, how to install and AutoRun your Window Service. You must logged in on your machine as Admin user and it will be install as Admin user.
BryanPosted Nov 5, 2009, 10:53 AM
Sam HobbsPosted Nov 5, 2009, 10:18 AM
BryanPosted Nov 4, 2009, 1:53 PM
Sam HobbsPosted Nov 4, 2009, 12:17 PM