Krush Kill 'N Destroy 2: Krossfire

From LANCommander
Revision as of 03:28, 6 January 2024 by DoctorDalek (talk | contribs) (Created new page for Krush Kill 'N Destroy 2: Krossfire)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Beam Software
Publishers
InfogramesGT Interactive SoftwareMelbourne House
Release Date
Windows: October 31, 1998
Genres
Real Time Strategy (RTS)Strategy
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\Kkknd2_HD.bat True

Install Script

This script requires admin access to function properly

New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Melbourne House\KKND Krossfire\1.00.000"
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Melbourne House\KKND Krossfire\1.00.000" -Name "InstallPath" -Value "C:\Games\KKND2 Krossfire" -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Melbourne House\KKND Krossfire\1.00.000" -Name "CDPath" -Value ".\" -Force

# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay

# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^start /wait "KKND2" "KKND2_HD.exe" (.+)' -Substitution "start /wait ""KKND2"" ""KKND2_HD.exe"" -width $($Display.Bounds.Width) -height $($Display.Bounds.Height)" -FilePath "$InstallDirectory\Kkknd2_HD.bat"

Uninstall Script

This script requires admin access to function properly

Remove-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Melbourne House\KKND Krossfire" -recurse - force

Name Change Script

Write-ReplaceContentInFile -Pattern '^USERNAME        			(.+)' -Substitution "USERNAME        			$NewPlayerAlias" -FilePath "$InstallDirectory\Options.cfg"