Army Men

From LANCommander
Revision as of 00:38, 22 February 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
The 3DO Company
Publishers
2K
Release Date
Windows: January 1, 1998
Genres
AdventureStrategyTactical
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\Armymen.exe -nomovies True

Install Script

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

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company" -Force
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "AudioSFX" -Value "ON 100" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "AudioMUSIC" -Value "ON 100" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "AudioVOICE" -Value "ON 100" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer1" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer2" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer3" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer4" -Value "New Player" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "Cursor" -Value "Red" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "MouseRight" -Value "ChgWeapon" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "JoystickOn" -Value "Yes" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "Config" -Value "Default1" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "ServiceProvider" -Value "{36E95EE0-8577-11CF-960C-0080C7534E82}" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "PlayerName" -Value "" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "SessionName" -Value "LANCommander" -Force

Uninstall Script

Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Force -Recurse

Name Change Script

if ($NewPlayerAlias.Length -gt 16) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 16);
}

New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "StatPlayer1" -Value "$NewPlayerAlias" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\The 3DO Company\Army Men" -Name "PlayerName" -Value "$NewPlayerAlias" -Force