You can download the
Windows 2003 Resource Kit from MS directly and then follow the below step
1. Copy
INSTSRV (Allows you to installs and removes system services) and
SRVANY (Allows any Windows application to run as a service.) to the System32 folder under Windows.
2. Run from the cmd as administrator from the
C:\Windows\System32 folder
Run MS-DOS command prompt as an administrator as shown below, and run the following command:
INSTSRV <Service Name> C:\Windows\System32\SRVANY.EXE
For example: INSTRV UDP_SERVER C:\Windows\System32\SRVANY.EXE
3. Go to Services menu. and right click on your perl service and set the "Logon As" to Local System Account in the service properties.
4. Go to Regedit, then under
HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > UDP_SERVER
Add the new Key: Parameters
Select Parameters
Add the String Value: Application
String: C:\PERL\bin\perl.exe (your path to the perl.exe program)
Add the String Value: AppParameters
String: C:\DIR_To_Perl\perl_script.pl (your path to the perl script ... this is where you add your extra arguments)
and Close REGEDIT
5. Go back to services and start your UDP_SERVER service.
Let me know if this works