14 Commits

Author SHA1 Message Date
ram/haidar
2a61b61073 fix(win/nvfbcwrp): restore backup owner only after install succeeds
- Defer the backup owner/DACL restore out of Move-Genuine into a new Invoke-FinalizeOwner that runs only after every target was applied, so a later failure still finds the Administrators grant needed to move a backup back.
- Set AddedAdminGrant only after Unlock-DLL succeeds, so a failed takeown or grant is never treated as a grant that must be removed.
- Report a finalize failure as a red warning while keeping exit code 0, since rolling back a completed install would leave the system worse.
- README.md manual restore now includes the takeown/icacls commands needed to regain access to the Administrators-owned backups.
- Target: win/nvfbcwrp
2026-11-14 20:17:20 +07:00
ram/haidar
310ffd9895 refactor(win/nvfbcwrp): make patch script idempotent and rollback safe
- Rewrite Patch.ps1 around a read-only pre-flight plan that refuses missing wrappers, wrong wrapper PE architecture, stale or wrapper backups, and a non-NVIDIA file at the original path before anything is changed.
- Use takeown/icacls instead of Set-Acl, record each owner SID and whether an Administrators ACE already existed, and restore both so a temporary unlock is undone on rollback and after a successful move.
- Stage the wrapper as a .nvfbcwrp-tmp copy, verify SHA-256 after every copy and move, and revert recorded copy, move and ACL steps in reverse when any target fails.
- Add -Unattended and -SkipGenuineCheck switches, quote elevation arguments correctly for Windows PowerShell 5.1, and replace pause/Read-Host with explicit exit codes.
- RunPatch.bat confines ExecutionPolicy Bypass to its own process and propagates the exit code; README.md documents the re-run, refusal and manual-restore behavior.
- Target: win/nvfbcwrp
2026-11-14 19:26:18 +07:00
Howard Wu
e24e899d81 docs(win/nvfbcwrp): remove driver reset shortcut tip
- Delete the note in the 3rd-party software section that pointed users at the Windows key + Ctrl + Shift + B shortcut to quickly reset the graphics driver.
- Leave the registry command and the reboot note as the only steps for enabling NvFBC.
- Target: win/nvfbcwrp
2026-11-14 17:48:26 +07:00
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
Parker Stephens
9d91df84b1 Update README.md
Fixed missing "%" after WINDIR, causing explorer not to recognize folder location
2021-09-04 14:12:50 -07:00
Vladislav Yarmak
24b9586494 fix #391 2021-03-23 11:37:09 +02:00
Matej Dian
cd2f18e1cc win: nvfbcwrp: mention registry entry
https://github.com/keylase/nvidia-patch/issues/359
2021-01-08 23:49:35 +01:00
Vladislav Yarmak
9bfefbcbe9 win: nvfbcwrp: update latest release 2019-12-08 00:21:35 +02:00
Vladislav Yarmak
65d2b99da7 win: nvfbcwrp: add docs about sniffing and replaying 2019-12-08 00:17:55 +02:00
Vladislav Yarmak
43fe541961 win: nvfbcwrp: add sniffing and custom data spoofing code 2019-12-07 23:47:23 +02:00
Vladislav Yarmak
ccd81ff2eb win: fbc: update instruction to include new 32bit build 2019-12-03 13:36:37 +02:00
Vladislav Yarmak
b3d1311397 win: fbc: 32bit compat code 2019-12-03 13:27:46 +02:00
Vladislav Yarmak
561a76028b win: fbc: add short description 2019-12-02 21:14:52 +02:00
Vladislav Yarmak
b5a8b02d75 win: fbc: implement wrapper for key injection 2019-12-02 20:54:18 +02:00