Krush Kill 'N Destroy 2: Krossfire: Difference between revisions

From LANCommander
(Created new page for Krush Kill 'N Destroy 2: Krossfire)
 
No edit summary
 
Line 14: Line 14:
{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\Kkknd2_HD.bat|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\KKND2_HD.exe|Arguments = -width {DisplayWidth} -height {DisplayHeight}|WorkingDirectory = |Primary = True}}
}}
}}


Line 21: Line 21:
|Name = Install Script
|Name = Install Script
|Description =  
|Description =  
|RequiresAdmin = True
|RequiresAdmin = False
|Contents =
|Contents =
<syntaxhighlight lang="powershell" line>
<syntaxhighlight lang="powershell" line>
New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Melbourne House\KKND Krossfire\1.00.000"
$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"
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"
 
 


New-Item -Path "$VirtualStore\WOW6432Node\Melbourne House\KKND Krossfire\1.00.000"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Melbourne House\KKND Krossfire\1.00.000" -Name "InstallPath" -Value "C:\Games\KKND2 Krossfire" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Melbourne House\KKND Krossfire\1.00.000" -Name "CDPath" -Value ".\" -Force
</syntaxhighlight>
</syntaxhighlight>
}}
}}
Line 42: Line 35:
|Name = Uninstall Script
|Name = Uninstall Script
|Description =  
|Description =  
|RequiresAdmin = True
|RequiresAdmin = False
|Contents =
|Contents =
<syntaxhighlight lang="powershell" line>
<syntaxhighlight lang="powershell" line>
Remove-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Melbourne House\KKND Krossfire" -recurse - force
$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"
Remove-Item -Path "$VirtualStore\WOW6432Node\Melbourne House\KKND Krossfire" -recurse - force
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 00:45, 22 February 2024

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}\KKND2_HD.exe -width {DisplayWidth} -height {DisplayHeight} True

Install Script

$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"

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

Uninstall Script

$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"
Remove-Item -Path "$VirtualStore\WOW6432Node\Melbourne House\KKND Krossfire" -recurse - force

Name Change Script

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