Command & Conquer: Renegade

From LANCommander
Revision as of 00:40, 22 February 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Westwood Studios
Publishers
Electronic Arts
Release Date
Windows: February 26, 2002
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Configuration Tool {InstallDir}\WWConfig.exe False
Play Command & Conquer: Renegade {InstallDir}\Renegade.exe True

Install Script

# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay

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

$DeviceName = $Display.DeviceName.Replace("\\.\", "")
$MonitorName = (Get-CimInstance -ClassName Win32_DesktopMonitor).Name
$VideoControllerName = (Get-WmiObject Win32_VideoController).Name
$RenderDeviceName = "($DeviceName - Monitor0) $MonitorName - $VideoControllerName #1"

# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^dgVoodooWatermark(.+)' -Substitution "dgVoodooWatermark = false" -FilePath "$InstallDirectory\dgVoodoo.conf"

# Non-destructively creates path in registry
New-Item -Path "$VirtualStore\WOW6432Node\Westwood"
New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade"
New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render"

# Creates or updates a key in the registry
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade" -Name "InstallPath" -Value "$InstallDirectory\Renegade.exe" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade" -Name "SKU" -Value 3072 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade" -Name "Version" -Value 65573 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade" -Name "Language" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade" -Name "Name" -Value "Renegade" -Force

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\tt"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\tt" -Name "Language" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\tt" -Name "Version" -Value 65573 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\tt" -Name "InstallPath" -Value "$InstallDirectory\Renegade.exe" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\tt" -Name "Serial" -Value "" -Force

New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceDepth" -Value 32 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceHeight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWindowed" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceTextureDepth" -Value 32 -Force

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "ExitThreadOnAssert" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "CompareExeVersionOnNetwork" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "NewTCADO" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "GameInitInProgress" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "ApplicationCrashVersion" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "EnabledDevices" -Value -2 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "EnabledTypes" -Value -129 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "EnabledOptions" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "EnableFileLogging" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "EnableDiagLogging" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "LoadDebugScripts" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Debug" -Name "AllowCinematicKeys" -Value 0 -Force

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\GameSpy"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyBandwidthType" -Value 106 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\GameSpy" -Name "PreferredGameSpyNic" -Value -1224671222 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyNickname" -Value "" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyQueryPort" -Value 25300 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyGamePort" -Value 4848 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\GameSpy" -Name "SplashCount" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\GameSpy" -Name "DoneClientBandwidthTest" -Value 0 -Force

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Networking"

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Networking\Debug"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Networking\Debug" -Name "ShowFps" -Value 0 -Force

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Networking\Firewall"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Networking\Firewall" -Name "SendDelay" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Networking\Firewall" -Name "ForcePort" -Value 0 -Force

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Options"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Options" -Name "SkipQuitConfirmDialog" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Options" -Name "SkipIngameQuitConfirmDialog" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Options" -Name "CameraLockedToTurret" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Options" -Name "PermitDiagLogging" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Options" -Name "SkipAllIntroMovies" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Options" -Name "MaxScrollLines" -Value 30 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Options" -Name "ScrollLinesPersistTime" -Value 1092616192 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Options" -Name "ScreenUVBias" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Options" -Name "FPS" -Value 1 -Force

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceDepth" -Value 32 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceHeight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWindowed" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceTextureDepth" -Value 16 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Render" -Name "DriverVersionCheckDisabled" -Value 87 -Force

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "device name" -Value "Miles Fast 2D Positional Audio" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "stereo" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "bits" -Value 16 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "hertz" -Value 44100 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "music enabled" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "sound enabled" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "dialog enabled" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "cinematic enabled" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "music volume" -Value 31 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "sound volume" -Value 39 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "dialog volume" -Value 50 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "cinematic volume" -Value 100 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Sound" -Name "speaker type" -Value 0 -Force

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Dynamic_LOD_Budget" -Value 10000 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Static_LOD_Budget" -Value 10000 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Dynamic_Projectors" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Static_Projectors" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Prelit_Mode" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Texture_Filter_Mode" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Shadow_Mode" -Value 3 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Texture_Resolution" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Surface_Effect_Detail" -Value 2 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Particle_Detail" -Value 2 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Mesh_Draw_Mode" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "NPatches (NOT SUPPORTED BY HARDWARE)" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "NPatches_Gap_Filling_Mode" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Enable_Auto_Transitions" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Difficulty" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Gamma_Correction" -Value 90 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Brightness" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\System Settings" -Name "Contrast" -Value 130 -Force

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings" -Name "Options" -Value 21 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings\URL" -Name "BattleClans" -Value "http://www.tiberiantechnologies.org/r/ingame-battleclans" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings\URL" -Name "BattleClansX" -Value "http://www.tiberiantechnologies.org/r/ingame-battleclans" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings\URL" -Name "Ladder" -Value "http://www.tiberiantechnologies.org/r/ingame-ladder" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings\URL" -Name "LadderX" -Value "http://www.tiberiantechnologies.org/r/ingame-ladder" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings\URL" -Name "NetStatus" -Value "http://www.tiberiantechnologies.org/r/ingame-netstatus" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings\URL" -Name "NetStatusX" -Value "http://www.tiberiantechnologies.org/r/ingame-netstatus" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings\URL" -Name "News" -Value "http://www.tiberiantechnologies.org/r/ingame-news" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings\URL" -Name "NewsX" -Value "http://www.tiberiantechnologies.org/r/ingame-news" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings\URL" -Name "Signup" -Value "http://www.tiberiantechnologies.org/r/ingame-signup" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\WOLSettings\URL" -Name "SignupX" -Value "http://www.tiberiantechnologies.org/r/ingame-signup" -Force

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\WWAudio"

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood"

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "InstallPath" -Value "$InstallDirectory\Renegade.exe" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "SKU" -Value 3072 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "Version" -Value 65573 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "Language" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "Name" -Value "Renegade" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "Serial" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "ShaderDetail" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "SceneShaderDetail" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "ClientChatLog" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "BackgroundDownloadingEnabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "HintsEnabled" -Value 1 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "ExitThreadOnAssert" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "CompareExeVersionOnNetwork" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "NewTCADO" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "GameInitInProgress" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "ApplicationCrashVersion" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "EnabledDevices" -Value "-2" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "EnabledTypes" -Value "-129" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "EnabledOptions" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "EnableFileLogging" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "EnableDiagLogging" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "LoadDebugScripts" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "AllowCinematicKeys" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "SystemInfoLog_LatestGame1" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Debug" -Name "SystemInfoLog_CurrentState" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\GameSpy"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\GameSpy" -Name "GameSpyBandwidthType" -Value 106 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\GameSpy" -Name "PreferredGameSpyNic" -Value 1560346634 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\GameSpy" -Name "GameSpyNickname" -Value "Unnamed" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\GameSpy" -Name "GameSpyQueryPort" -Value 25300 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\GameSpy" -Name "GameSpyGamePort" -Value 4848 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\GameSpy" -Name "SplashCount" -Value 5 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\GameSpy" -Name "DoneClientBandwidthTest" -Value 1 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking"

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Debug"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Debug" -Name "ShowFps" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Firewall"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Firewall" -Name "SendDelay" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Firewall" -Name "ForcePort" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "MyLanName" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "ShowNamesOnSoldier" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "BandwidthType" -Value 106 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "BandwidthBps" -Value 250000 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "PreferredLanNic" -Value 1560346634 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "NetUpdateRate" -Value 10 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "ClientHintFactor" -Value 1092616192 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "MaxFacingPenalty" -Value 1050253722 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "IrrelevancePenalty" -Value 1045220557 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "ResultsLogNumber" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "SidePref" -Value -1 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "SkipQuitConfirmDialog" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "SkipIngameQuitConfirmDialog" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "CameraLockedToTurret" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "PermitDiagLogging" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "SkipAllIntroMovies" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "MaxScrollLines" -Value 30 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "ScrollLinesPersistTime" -Value 1092616192 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "ScreenUVBias" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "FPS" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "CurrModPackage" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "IsHudShown" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "ForceGod" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "DefaultToFirstPerson" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Options" -Name "IntroMovieSkipAllowed" -Value 1 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Render"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Render" -Name "RenderDeviceDepth" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Render" -Name "RenderDeviceHeight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Render" -Name "RenderDeviceWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Render" -Name "RenderDeviceWindowed" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Render" -Name "RenderDeviceTextureDepth" -Value 16 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Render" -Name "DriverVersionCheckDisabled" -Value 87 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Render" -Name "RenderDeviceForceVSync" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Render" -Name "RenderDeviceDoubleHUD" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Render" -Name "RenderDeviceName" -Value $RenderDeviceName -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "device name" -Value "Miles Fast 2D Positional Audio" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "stereo" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "bits" -Value 16 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "hertz" -Value 44100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "music enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "sound enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "dialog enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "cinematic enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "music volume" -Value 31 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "sound volume" -Value 37 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "dialog volume" -Value 50 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "cinematic volume" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\Sound" -Name "speaker type" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Dynamic_LOD_Budget" -Value 100000 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Static_LOD_Budget" -Value 100000 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Dynamic_Projectors" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Static_Projectors" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Prelit_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Texture_Filter_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Shadow_Mode" -Value 3 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Texture_Resolution" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Surface_Effect_Detail" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Particle_Detail" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Mesh_Draw_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "NPatches (NOT SUPPORTED BY HARDWARE)" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "NPatches_Gap_Filling_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Enable_Auto_Transitions" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Difficulty" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Gamma_Correction" -Value 90 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Brightness" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Contrast" -Value 130 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Static_Shadow_Resolution" -Value 512 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Dynamic_Shadow_Resolution" -Value 512 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\System Settings" -Name "Antialiasing_Mode" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\WOLSettings"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\WOLSettings" -Name "Options" -Value 21 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade\WOLSettings" -Name "AutoRestartFlag" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\WWAudio"

Uninstall Script

Remove-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade" -Recurse
Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Recurse

Name Change Script

# Trim a string down to a specified amount of characters
if ($NewPlayerAlias.Length -gt 9) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 9);
}

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

New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Networking"
New-Item -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Networking\Options"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\Networking\Options" -Name "MyLanName" -Value $NewPlayerAlias -Force
New-ItemProperty -Path "registry::HKEY_CURRENT_USER\Software\Westwood\Renegade\Networking\Options" -Name "MyLanName" -Value $NewPlayerAlias -Force

Key Change Script

$Key = $AllocatedKey

# Const, WOLData.key
$woldata = "04986627193318147921680928765690038703412631629541829427981390480026273565342680243441611903515001062268622186233202902241104710"

$Key = $Key.Replace("-", "")

for ($i = 0, $j = 0; $i -lt $woldata.Length; $i++, $j++) {
	if ($j -eq $Key.Length) {
		$j = 0
	}

	$value = (([int]$Key[$j] + [int]$woldata[$i] + 2) % 10 + '0')

	$Key = $Key.Substring(0, $j) + [char]$value + $Key.Substring($j + 1)
}

$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood" -Name "Serial" -Value "$Key" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Westwood\Renegade\tt" -Name "Serial" -Value "$Key" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Westwood\Renegade" -Name "Serial" -Value "$Key" -Force