Star Wars: Battlefront: Difference between revisions

From LANCommander
(Created new page for Star Wars: Battlefront)
 
No edit summary
 
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>
$Display = Get-PrimaryDisplay
$Display = Get-PrimaryDisplay


New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts"
$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"
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-Item -Path "$VirtualStore\WOW6432Node\LucasArts"
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "Installed" -Value 1 -Force
New-Item -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront"
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "Magic" -Value 599929 -Force
New-Item -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront\1.0"
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "BestOfPC" -Value 20061010 -Force
New-ItemProperty -Path "$VirtualStore\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 "ExePath" -Value "$InstallDirectory\GameData\Battlefront.exe" -Force
New-ItemProperty -Path "$VirtualStore\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 "InstallPath" -Value "$InstallDirectory" -Force
New-ItemProperty -Path "$VirtualStore\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 "CD Key" -Value "7267-3427-4328-4039-9984" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "ExePath" -Value "$InstallDirectory\GameData\Battlefront.exe" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "InstallPath" -Value "$InstallDirectory" -Force
New-ItemProperty -Path "$VirtualStore\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\"
Line 47: Line 49:
|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\LucasArts\Star Wars Battlefront" -Recurse
$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"
 
Remove-Item -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront" -Recurse
Remove-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\LucasArts\Star Wars Battlefront" -Recurse
Remove-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\LucasArts\Star Wars Battlefront" -Recurse
</syntaxhighlight>
</syntaxhighlight>
Line 58: Line 62:
|Name = Key Change Script
|Name = Key Change 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\LucasArts"
$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"
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-Item -Path "$VirtualStore\WOW6432Node\LucasArts"
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "CD Key" -Value "$AllocatedKey" -Force
New-Item -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront"
New-Item -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront\1.0"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "CD Key" -Value "$AllocatedKey" -Force
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 00:49, 22 February 2024

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

$Display = Get-PrimaryDisplay

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

New-Item -Path "$VirtualStore\WOW6432Node\LucasArts"
New-Item -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront"
New-Item -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront\1.0"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "Installed" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "Magic" -Value 599929 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "BestOfPC" -Value 20061010 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "ExePath" -Value "$InstallDirectory\GameData\Battlefront.exe" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts\Star Wars Battlefront\1.0" -Name "InstallPath" -Value "$InstallDirectory" -Force
New-ItemProperty -Path "$VirtualStore\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

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

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

Key Change Script

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

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