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

===================================
Obtain these files from Microsoft:
===================================
First you must install rktools.exe, or you can copy these files direct from this Package to the Directory Windows\System32.
These files are automatically copied to the Syswow64 Directorie too.

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\System32 Directory". These files are automatically copied to the Syswow64 Directorie too.

This is the command I used to create the service - for 32bit

 C:\>

 cd\

 cd C:\Windows\System32
 
 C:\Windows\System32>

 instsrv.exe UT2004 C:\Windows\System32\srvany.exe
 
 In regedit drill down to

 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UT2004

 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 RunServer.bat (or any other Batchfile you want).

 Adjust the above as necessary for your own installation etc, or you can edit the Sample_Reg-File for your own use.

 You will find the createt ut2004 Service in services.msc for starting and stoping of them.

 After this you must restart your server!.
---------------------------------------------------------------
 
This is the command I used to create the service - for 64bit

 C:\>

 cd\

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

 instsrv.exe UT2004 C:\Windows\Syswow64\srvany.exe

 In regedit drill down to

 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UT2004

 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-win64.exe or RunServer64.bat (or any other Batchfile you want).

 Adjust the above as necessary for your own installation etc, or you can edit the Sample_Reg-File for your own use.

 You will find the createt ut2004 Service in services.msc for starting and stoping of them.

 After this you must restart your server!.
