mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
522df0dfb7
The remove script prints the rollback JSON, and the restore script now prints a PLANNOTATOR_PATH_RESTORED sentinel, only after the registry write. A native fault inside Add-Type or SendMessageTimeout cannot be caught by try/catch and ends the process with an NTSTATUS exit code, so both callers now treat a parseable echo as proof of the completed edit whether the process timed out or exited non-zero for another reason, and warn about the broadcast instead of misreporting a finished edit as a failure (which would also lose the rollback value). A non-zero exit with no echo still fails closed.