How to make my program install as a service.

Posted on 2006-04-19
Last Modified: 2010-05-01
Hey everyone!
I have run into a small issue. I have written three programs which deal with databases and file tracking. I have each of these programs executing at set times of the day. I am currently using windows scheduler to do this on a server. The issue I have run into is that the programs will not run unless a users logs into the systems console. Which is a big issue.
now I’d like to make a program that would need to be installed as a service, and make it check the time every 60 sec so the program doesn’t "idle". I need to know how to make my program install as a service. There should be a way to do it without installing and or buying a program.
Question by:JesNoFear
    LVL 142

    Assisted Solution

    by:Guy Hengel [angelIII / a3]
    LVL 26

    Assisted Solution


    another way is use taskscheduler and set it to when my computer starts
    LVL 4

    Accepted Solution

    put your plain exe in

    you can use
    - regedit to install it (manually)
    - a sub in your app to put the code there
    - innosetup to install a key there. (while installing your app)
    - a reg file like this



    thats it.

    hope this helps

    LVL 4

    Expert Comment

    Thanks for the "A" JesNoFear!


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now