Daemon won't start lazarus / 34-Windows ---------------------------------------------------------------------- Nafees · 2016-03-09 12:11 I created a service application. I want it to start everytime the PC boots, whether the user logins, or does not. After creating it, I installed it by starting cmd as admin, the entering the following into it: Code: [Select]D:\QD125.exe -i it should've installed the service, but as soon as I close cmd, QD125.exe disappears from task manager, and when I open mmc.exe (services), QD125 isn't listed there. How do I make my service install ans start after windows boots? ---------------------------------------------------------------------- mig-31 · 2016-03-09 12:59 I think, it is a quesition about OS administration. It is not connected with Lazarus and FreePascal programming.  Thread should be closed or deleted. ---------------------------------------------------------------------- SymbolicFrank · 2016-03-09 13:11 http://stackoverflow.com/questions/3582108/create-windows-service- from-executable Starting and stopping services is done with "net start" and "net stop". ---------------------------------------------------------------------- ChrisF · 2016-03-09 13:39 If your application is a service, you should see it into the Windows service manager after the installation (i.e. D:\QD125.exe -i). If you don't see it, there is a problem with your service application. Are you quite sure it is not present ? Just in case (if you don't already know it), you have to search into the service manager list for the name of your service (i.e. the "DisplayName" property of your daemon), not for the .exe file name. ---------------------------------------------------------------------- marcov · 2016-03-09 13:54 On vista+ registering a service might require elevation? Try in an "admin" cmd prompt? ---------------------------------------------------------------------- balazsszekely · 2016-03-09 14:59 @Nafees See attachmen: http://forum.lazarus.freepascal.org/index.php/topic,305 26.msg194369.html#msg194369 Feel free tho change:   Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i const  ServiceName     = 'PureAPIService';  DisplayName     = 'Pure Windows API Service'; This is how you install from command line(change dir to your exe folder): pureapiservice.exe /install pureapiservice.exe /remove PS: See @Chris post about ServiceName and DisplayName meaning and @marcov post about privileges: Vista+ you need admin rights to install a service. ---------------------------------------------------------------------- Nafees · 2016-03-10 09:32 I just figured that my OnInstall had a infinite loop!