@echo off title Ghost Recon: Future Soldier - Black Box Fixer color 0A echo ============================================ echo Black Box Repack Integrity Tool v1.0 echo ============================================ echo. :menu echo [1] Fix Stuck Installer (Memory) echo [2] Fix Missing DLLs / Dependencies echo [3] Fix Windows 10/11 Crashing (Set CPU Affinity) echo [4] Launch Game (With Fixes) echo [Q] Quit echo. set /p choice="Select option: "

:memoryfix echo Creating Safe Install Environment... powershell -command "Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name 'PagingFiles' -Value 'C:\pagefile.sys 2048 2048'" echo Restarting Installer with low-memory mode... start /wait "GRFS_Setup.exe" /low /nm goto menu

:cpufix echo Creating CPU Affinity Launcher... powershell -command "$Shortcut = (New-Object -ComObject WScript.Shell).CreateShortcut('%cd%\Launch_Fixed.lnk'); $Shortcut.TargetPath = 'cmd.exe'; $Shortcut.Arguments = '/c start /affinity FF future_soldier.exe -offline -norand'; $Shortcut.WorkingDirectory = '%cd%\Binaries'; $Shortcut.Save()" echo Disabling Fullscreen Optimizations... powershell -command "$regPath = 'HKCU:\System\GameConfigStore'; Set-ItemProperty -Path $regPath -Name 'FullscreenOptimization' -Value 0" echo Done. Use the new "Launch_Fixed.lnk" shortcut. goto menu