
Running a Server as Windows Service.
(UT2004-Server)

===================================
Obtain these files from Microsoft:
===================================

Instsrv.exe
Srvany.exe

----------------------------------------------------------------------------------

Just found the notes I made for a recent migration I had to do, might help someone -

Copy these files "instsrv.exe, srvany.exe" from your C:\Program Files (x86)\Windows Resource Kits\Tools Directory

 to "C:\Windows\Syswow64 Directory".


 This is the command I used to create the service -

 C:\>

 cd\

 cd C:\Windows\Syswow64
 
 C:\Windows\Syswow64>

 instsrv.exe esh1_1 C:\Windows\Syswow64\srvany.exe
 instsrv.exe esh1_2 C:\Windows\Syswow64\srvany.exe
 instsrv.exe esh1_3 C:\Windows\Syswow64\srvany.exe
 instsrv.exe esh1_4 C:\Windows\Syswow64\srvany.exe
 instsrv.exe esh1_5 C:\Windows\Syswow64\srvany.exe
 instsrv.exe esh1_6 C:\Windows\Syswow64\srvany.exe
 instsrv.exe esh1_ucmp C:\Windows\Syswow64\srvany.exe
 instsrv.exe esh1_xmas C:\Windows\Syswow64\srvany.exe
 instsrv.exe esh1_cbp C:\Windows\Syswow64\srvany.exe
 instsrv.exe esh1_halloween C:\Windows\Syswow64\srvany.exe
 
 In regedit drill down to

 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\esh1_1

 From there create a Key called 'Parameters'

 In the 'Parameters' section create three new String Values, AppDirectory, Application & AppParameters.

 Give AppDirectory a value of D:\UT2004\System

 Give Application a value of D:\UT2004\System\ucc.exe or ucc-win64.exe or Batchfile

 Adjust the above as necessary for your own installation etc, or you can edit the Sample_Reg-File for your own use.
 
 After this you must restart your server!.
