Need for Speed: Hot Pursuit 2

From LANCommander
Revision as of 01:19, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|EA Seattle}} {{Game.InfoBox.Developer|Black Box Games}} |Publishers = {{Game.InfoBox.Publisher|Electronic Arts}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|September 30, 2002}} |Genres = {{Game.InfoBox.Genre|Racing}} | PCGamingWiki = Need_for_Speed:_Hot_Pursuit_2 }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = nfshp2.exe|Arguments = |WorkingDirecto...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
EA Seattle

Black Box Games

Publishers
Electronic Arts
Release Date
Windows: September 30, 2002
Genres
Racing
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play nfshp2.exe True

Install Script

This script requires admin access to function properly

$InstallDir = $PSScriptRoot

New-Item -ItemType Directory -Force -Path "$($env:USERPROFILE)\Documents\EA Games\Need For Speed Hot Pursuit 2"

Copy-Item "$InstallDir\ProfileTemplate" -Destination "$($env:USERPROFILE)\Documents\EA Games\Need For Speed Hot Pursuit 2" -Recurse

New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2\1.0"

New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Electronic Arts"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Electronic Arts\EA Games"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Electronic Arts\EA Games\Need For Speed Hot Pursuit 2"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Electronic Arts\EA Games\Need For Speed Hot Pursuit 2\ergc"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{76F4DD9B-C246-4BE0-00B6-3DE9ABF72299}"

New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NFSHP2.exe"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\App Paths\NFSHP2.exe"

Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2" -Name "CacheSize" -Value 546357 -Force

# These should match and it needs to be a drive that is actually mapped
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2" -Name "CD Drive" -Value "C:\" -Force
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2" -Name "Installed From" -Value "C:\"

Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2" -Name "DisplayName" -Value "Need For Speed Hot Pursuit 2"
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2" -Name "Folder" -Value "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\EA Games\Need For Speed Hot Pursuit 2\"
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2" -Name "Install Dir" -Value "$InstallDir"
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2" -Name "Language" -Value "English US"
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2" -Name "Patch URL" -Value "http://patches.ea.com/nfshp2/EN-US/home.html"
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2" -Name "Product GUID" -Value "{76F4DD9B-C246-4BE0-00B6-3DE9ABF72299}"
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2" -Name "Region" -Value "en-us"
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2" -Name "SwapSize" -Value 0

Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2\1.0" -Name "DisplayName" -Value "Need For Speed Hot Pursuit 2"
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2\1.0" -Name "Language" -Value 1
Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\EA Games\Need For Speed Hot Pursuit 2\1.0" -Name "LanguageName" -Value "English US"

Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NFSHP2.exe" -Name "Game Registry" -Value "SOFTWARE\EA Games\Need For Speed Hot Pursuit 2"
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NFSHP2.exe" -Name "Restart" -Value 0
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NFSHP2.exe" -Name "Path" -Value "$InstallDir"
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NFSHP2.exe" -Name "(Default)" -Value "$InstallDir\NFSHP2.exe"

Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WOW6432Node\Windows\CurrentVersion\App Paths\NFSHP2.exe" -Name "Game Registry" -Value "SOFTWARE\EA Games\Need For Speed Hot Pursuit 2"
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WOW6432Node\Windows\CurrentVersion\App Paths\NFSHP2.exe" -Name "Restart" -Value 0
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WOW6432Node\Windows\CurrentVersion\App Paths\NFSHP2.exe" -Name "Path" -Value "$InstallDir"
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WOW6432Node\Windows\CurrentVersion\App Paths\NFSHP2.exe" -Name "(Default)" -Value "$InstallDir\NFSHP2.exe"

Key Change Script

This script requires admin access to function properly

New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Electronic Arts"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Electronic Arts\EA Games"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Electronic Arts\EA Games\Need For Speed Hot Pursuit 2"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Electronic Arts\EA Games\Need For Speed Hot Pursuit 2\ergc"

$Key = $args[0] -Replace "-", ""

Set-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Electronic Arts\EA Games\Need For Speed Hot Pursuit 2\ergc" -Name "(Default)" -Value $Key