Problem
In this, very long issue:
Everyone is running into the same problem.
- Run the exe, works great
- Windows forces you to do updates
- Upon rebooting, the patched file is unpatched, causing rounded corners to return
- Try re-running the executable, it fails because a
.bak file exists
- Manually delete a file from system32 (fun)
- Re-run the executable and it works now.
Solution
Instead of shipping just one executable:
Win11DisableOrRestoreRoundedCorners.exe
Ship 2 separate executables:
Win11DisableRoundedCorners.exe
Win11RestoreRoundedCorners.exe
This will avoid many issues in the future, including the current one.
It puts all the power into the hands of the users to pick what their intent is very clearly.
Should simplify code, as you have two simple tasks to do, instead of having to "guess" what the user wants.
Problem
In this, very long issue:
Everyone is running into the same problem.
.bakfile existsSolution
Instead of shipping just one executable:
Win11DisableOrRestoreRoundedCorners.exeShip 2 separate executables:
Win11DisableRoundedCorners.exeWin11RestoreRoundedCorners.exeThis will avoid many issues in the future, including the current one.
It puts all the power into the hands of the users to pick what their intent is very clearly.
Should simplify code, as you have two simple tasks to do, instead of having to "guess" what the user wants.