Age of Empires II: The Age of Kings

From LANCommander
Revision as of 00:37, 22 February 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Ensemble Studios
Publishers
KonamiMicrosoft
Release Date
Windows: September 30, 1999
Genres
Real Time Strategy (RTS)Strategy
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\age2_x1\age2_x2.exe True

Install Script

Names are encoded in a compressed `player.nfz` file. This is potentially different for older versions of the game. They cannot be changed without running into corruption issues. Removing the file and replacing it with a copy that has no profiles forces the player to create a profile when going into multiplayer.

$Display = Get-PrimaryDisplay

Remove-Item "$InstallDirectory\Games\Forgotten Empires\player.nfz" -ErrorAction Ignore
Copy-Item -Path "$InstallDirectory\blankplayer.nfz" -Destination "$InstallDirectory\Games\Forgotten Empires\player.nfz"

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion"

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Graphics Detail Level" -Value 3 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Music Volume" -Value 5000 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Sound Volume" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Advanced Buttons" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "One Click Garrisoning" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Screen Width" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Screen Height" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Rollover Text" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Mouse Style" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Game Speed" -Value 15 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "MP Game Speed" -Value 20 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Difficulty" -Value 4 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Scroll Speed" -Value 84 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0" -Name "Default Age Of Empires Multiplayer Service" -Value "Local (LAN) TCP/IP Connection" -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0\EULA"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0\EULA" -Name "FIRSTRUN" -Value 1 -Force

Uninstall Script

Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion" -Recurse -Force