If you reach a settlement, that is before a trial and will be in writing. But you have to sue him if he breeches. No injunction as you agreed to drop case before trial.
Injunction is court order to stop doing something. Judge issues this when you win. Even if you win by default.
Benefit here is you get to call the cops to enforce it and he gets hauled back into court to face possible criminal charges now.