Files
nvidia-patch/win/nvfbcwrp/RunPatch.bat
Howard Wu 4c429187b7 feat(win/nvfbcwrp): add PowerShell patch script and launcher
- Add Patch.ps1, which relaunches itself elevated, renames NvFBC64.dll and NvFBC.dll to the NvFBC64_.dll and NvFBC_.dll backups, and copies nvfbcwrp64.dll and nvfbcwrp32.dll into System32 and SysWOW64.
- Grant Administrators ownership and FullControl on each genuine DLL before moving it, and roll back the moves already done when a wrapper is missing or a later step throws.
- Add RunPatch.bat, which requires Patch.ps1 next to itself and starts it with a per-process ExecutionPolicy Bypass.
- Document the scripts in win/nvfbcwrp/README.md and normalize headings, link syntax and blank lines in win/README.md.
- Target: win/nvfbcwrp
2026-11-14 17:48:18 +07:00

13 lines
229 B
Batchfile

@echo off
%~d0
cd "%~dp0"
if not exist Patch.ps1 (
echo "Patch.ps1" is not found.
echo Press any key to exit
pause>nul
exit 1
) else (
start powershell.exe -ExecutionPolicy Bypass -File .\Patch.ps1
exit
)