Deus Ex

From LANCommander
Revision as of 00:27, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Ion Storm}} |Publishers = {{Game.InfoBox.Publisher|Aspyr Media}} {{Game.InfoBox.Publisher|Eidos Interactive}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|June 26, 2000}} |Genres = {{Game.InfoBox.Genre|Shooter}} {{Game.InfoBox.Genre|Role-playing (RPG)}} | PCGamingWiki = Deus_Ex }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = DeusEx.exe|Arguments = |W...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Ion Storm
Publishers
Aspyr Media Eidos Interactive
Release Date
Windows: June 26, 2000
Genres
Shooter

Role-playing (RPG)

View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play DeusEx.exe {InstallDir}/System 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"