Unreal Tournament 2004

From LANCommander
Revision as of 01:39, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Epic Games}} |Publishers = {{Game.InfoBox.Publisher|Epic Games}} {{Game.InfoBox.Publisher|MacSoft Games}} {{Game.InfoBox.Publisher|Atari}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|March 16, 2004}} |Genres = {{Game.InfoBox.Genre|Shooter}} | PCGamingWiki = Unreal_Tournament_2004 }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = System/UT2004.exe|Argu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Epic Games
Publishers
Epic Games

MacSoft Games

Atari
Release Date
Windows: March 16, 2004
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play System/UT2004.exe True

Name Change Script

$NewName = $args[0]
$InstallDir = $PSScriptRoot

function Write-ReplaceContentInFile([string]$Regex, [string]$Replacement, [string]$FilePath)
{
    $content = (Get-Content $FilePath) -replace $Regex, $Replacement
    [IO.File]::WriteAllLines($FilePath, $content)
}

Write-ReplaceContentInFile -Regex 'Name=(.+)' -Replacement "Name=$NewName" -FilePath "$InstallDir\System\User.ini"