Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/daemon/internal/cli/native_uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ func runUninstall(rc *runContext, args []string) error {
// Only empty directories go; anything left belongs to the user.
_ = os.Remove(filepath.Join(root, "daemon"))
if kept {
// Windows keeps the running executable open until this process exits.
deleteAfterExit(root)
// Windows keeps the running executable open until this process exits;
// the helper starts last so its short wait begins at exit.
defer deleteAfterExit(root)
} else {
_ = os.Remove(root)
}
Expand Down
Loading