Star Wars: Battlefront

From LANCommander
Revision as of 21:56, 8 January 2024 by DoctorDalek (talk | contribs) (Created new page for Star Wars: Battlefront)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Pandemic StudiosBeenox
Publishers
LucasArtsAspyr Media
Release Date
Windows: September 20, 2004
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Battlefront.exe {InstallDir}\GameData True

Install Script

This script requires admin access to function properly

$Display = Get-PrimaryDisplay

New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts"
New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront"
New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0"
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "Installed" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "Magic" -Value 599929 -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "BestOfPC" -Value 20061010 -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "ExePath" -Value "$InstallDirectory\GameData\Battlefront.exe" -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "InstallPath" -Value "$InstallDirectory" -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "CD Key" -Value "7267-3427-4328-4039-9984" -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\LucasArts\"
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\LucasArts\Star Wars Battlefront"
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\LucasArts\Star Wars Battlefront\1.0"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\LucasArts\Star Wars Battlefront\1.0" -Name "LastResX" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\LucasArts\Star Wars Battlefront\1.0" -Name "LastResY" -Value $Display.Bounds.Height -Force

Uninstall Script

This script requires admin access to function properly

Remove-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront" -Recurse
Remove-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\LucasArts\Star Wars Battlefront" -Recurse

Key Change Script

This script requires admin access to function properly

New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts"
New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront"
New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0"
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "CD Key" -Value "$AllocatedKey" -Force