Using Install/Uninstall Scripts (with Windows Firewal integration example)

With the release of the latest version of TCAdmin, we have introduced "Install/Unistall" scripts for automated game setups. This feature allows you to specify scripts that are executed right after the game server is created and before the game server is deleted. The script format should be batch on Windows and shell script on Linux and are executed in the game server's root folder. This feature is configured in System Settings > Supported Games > Install/Uninstall Scripts.

The following example explains how to automatically add the game server's executable to Windows Firewall and remove it when the game server is deleted:

Add the following line as the Install script:
netsh firewall add allowedprogram "%gameserverexe%" %serverip%_%serverport% ENABLE

Add the following line as the Uninstall script:
netsh firewall del allowedprogram "%gameserverexe%"


When the game server executable is added it will show up in the Firewall settings as ip_port.

  • 272 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

How to improve TCAdmin connections when there are network problems

This article applies to TCAdmin version 1.0.2809.27892 and greater.To improve performance when a...

Enable System Monitoring and Game Server Performance Monitoring

The System Monitor will collect system information and store them to the database. This...

Create a login form for TCAdmin within your existing site

Use this sample form. Make sure you change "http://demo.tcadmin.com/templates/default/login.aspx"...

Install script for Mods and Updates

This feature requires TCAdmin version 1.0.4294.39028 or greater. To execute a script when a mod...

Allow your clients to create game/voice servers on their dedicated server

To allow your client to create game servers on his dedicated server(s): First you must...