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.

  • 208 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

GSAutomation.Processes.InstallMod: Could not update service 'TCXXXXXXXXXXXXXXXX': Initialization failure

This error is porduced by Windows WMI. It can be corrected by using the following method: Create...

Creating and installing Secondary Applications

With the release of the latest version of TCAdmin, we have introduced "Secondary Applications"....

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"...

32bit Windows 2003 Service Pack 2 and TCAdmin

** A fix to work around this problem has been added to TCAdmin version 1.0.2640.11313 and to the...

How to restart the monitor when it is running in service mode

- Log in to your server's remote desktop. - Go to Start > Control Panel > Administrative...