Empire Earth

From LANCommander
Developers
Stainless Steel Studios
Publishers
Sierra Entertainment
Release Date
Windows: November 12, 2001
Genres
Real Time Strategy (RTS)Strategy
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Empire Earth Empire Earth.exe {InstallDir}/Empire Earth True
Play Empire Earth: The Art of Conquest EE-AOC.exe {InstallDir}/Empire Earth - The Art of Conquest True

Install Script

The game requires many registry entries in order to launch.

# Get the Drive letter and folder path
$drive = (Split-Path -Path $installdirectory -Qualifier)
$folderpath = $installdirectory.Substring(2)

# Get the screen resolution
Add-Type -AssemblyName System.Windows.Forms
$screen = [System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Size
$width = $screen.Width
$height= $screen.Height

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\SSSI"
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth"
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options"
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software"
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC"

New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Rasterizer Name" -Value "Direct3D" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Mouse Sensitivity" -Value 31 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Side Scroll Speed" -Value 200 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Grab Scroll Speed" -Value 17 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Game Bit Depth" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Network Adapter" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Game Window Height" -Value $Height -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Game Window Width" -Value $Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Screen ID" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Texture Bit Depth" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Wait for VSync" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Installed From Volume" -Value "$drive" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Installed From Directory" -Value "$folderpath" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Player Name" -Value "Unknown" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "WonNet Password" -Value ""-Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Host Game Name" -Value "Unknown" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Sierra.com User ID" -Value "Unknown" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Sierra.com Game Name" -Value "Unknown" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Last Quick Save" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Last Auto Save" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Music Volume" -Value 62 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Sound Volume" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Reverb Enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "AutoSave In Milliseconds" -Value 600000 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Number Of AutoSaves" -Value 10 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Max PTs per Second" -Value 125 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Min PTs per Second" -Value 15 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "PT Rate Tuning Threshold (percent)" -Value 30 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Max CT Send Interval" -Value 2250 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "CT Send Interval Step Down" -Value 10 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "CT Send Interval Step Up" -Value 125 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Enable Animal Herds" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Ambient Sounds" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "UseAreaEffectOverlays" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "UseCandidateWindow" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Last Game File" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Last Scenario File" -Value -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Show Blood" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Right Hand Mouse Orientation" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Music Enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Max Number Of Sounds (percent)" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "ZoomStyle" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Unit Scale Factor" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Unit Lighting" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Model Detail" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "MIP Levels to Drop" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Zoom Lock" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Effect Detail" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Trilinear Filter" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Button MIP Levels to Drop" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Terrain MIP Levels to Drop" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Animation Smoothing" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Display Shadows" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Display Clouds" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Computer Player Difficulty Level" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Debug OOS Handling" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Take JPG Screenshots" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Take End Game Screenshots" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Show Auto Waypoints" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth" -Name "Last Open Post Game Stats Page" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Map Size" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Map Type" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Starting Resources" -Value 5 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Starting Epoch" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Ending Epoch" -Value 13 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Game Unit Limit" -Value 500 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Wonders For Victory" -Value 3 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Game Variant" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Difficulty Level" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Game Speed" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Record Game" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Reveal Map" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Allow Custom Civs" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Lock Teams" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Lock Speed" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\SSSI\Empire Earth\Game Options" -Name "Cheat Codes" -Value 1 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" -Name "$InstallDirectory\Empire Earth\Empire Earth.exe" -Value "DWM8And16BitMitigation" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" -Name "$InstallDirectory\Empire Earth - The Art of Conquest\EE-AOC.exe" -Value "DWM8And16BitMitigation" -Force

New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Rasterizer Name" -Value "Direct3D" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Mouse Sensitivity" -Value 31 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Side Scroll Speed" -Value 200 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Grab Scroll Speed" -Value 17 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Game Bit Depth" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Network Adapter" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Game Window Height" -Value $Height -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Game Window Width" -Value $Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Screen ID" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Texture Bit Depth" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Wait for VSync" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Installed From Volume" -Value "$drive" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Installed From Directory" -Value "$folderpath" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Player Name" -Value "Unknown" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "WonNet Password" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Host Game Name" -Value "Unknown" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Sierra.com User ID" -Value "Unknown" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Sierra.com Game Name" -Value "Unknown" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Last Quick Save" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Last Auto Save" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Music Volume" -Value 62 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Sound Volume" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Reverb Enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "AutoSave In Milliseconds" -Value 600000 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Number Of AutoSaves" -Value 10 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Max PTs per Second" -Value 125 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Min PTs per Second" -Value 15 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "PT Rate Tuning Threshold (percent)" -Value 30 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Max CT Send Interval" -Value 2250 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "CT Send Interval Step Down" -Value 10 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "CT Send Interval Step Up" -Value 125 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Enable Animal Herds" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Ambient Sounds" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "UseAreaEffectOverlays" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "UseCandidateWindow" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Last Game File" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Last Scenario File" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Show Blood" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Right Hand Mouse Orientation" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Music Enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Max Number Of Sounds (percent)" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "ZoomStyle" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Unit Scale Factor" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software\EE-AOC" -Name "Unit Lighting" -Value 1 -Force

Uninstall Script

Removes keys that the install script added

#$Path = "HKCU:\Software\SSSI\Empire Earth"
#
#Remove-Item -Path "$Path" -Force -Recurse
#
Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\SSSI" -recurse
Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Mad Doc Software" -recurse