22 February 2009
This post may be outdated due to it was written on 2009. The links may be broken. The code may be not working anymore. Leave comments if needed.
even it's very old, it's still very useful: http://www.perlguy.com/articles/nt_service.html

step 1, download the toolkit from http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

step 2, cmd: then
C:\Documents and Settings\Administrator>INSTSRV DayDayUp "C:\Program Files\Windows Resource Kits\Tools\srvany.exe"

The service was successfuly added!

Make sure that you go into the Control Panel and use
the Services applet to change the Account Name and
Password that this newly installed service will use
for its Security Context.

step 3, cmd, regedit, then find "DayDayUp"
* Right click on the key and choose New, then Key. This will create what looks like a new folder. Name the new key Parameters.
* Right click on Parameters and select New, then String Value. In the space provided, type Application.
* Again, right click on Parameters and select New, then String Value. In the space provided, type AppParameters.
* Right click on Application and choose Modify, then type in the path to your Perl binary like C:\strawberry\perl\bin\perl.exe
* Next, right click on AppParameters and select Modify. type E:\Fayland\gsvn\CPAN\day_day_up\bin\day_day_up daemon 3001

OK, everything is done now. if you go Services, you'll find DayDayUp in list, and you can start it (it will be started whenever computer gets start)

Thanks.


blog comments powered by Disqus