Repository navigation
v1.2.1
What's Changed
Edge Uninstall (exit code 93 fix)
- 6-step Edge preparation: stops Edge Update services, kills processes, sets
AllowUninstallregistry key, prevents reinstall viaDoNotUpdateToEdgeWithChromium, removesNoRemoveflag, creates UWP stub --force-uninstallflag always applied to Edge setup.exe- Rollback on failure: cleans up stub file + restarts Edge services so Edge isn't left broken
- Exit code 93 now returns a clear message: "run with --admin and retry"
Service Restart Hardening
- State-aware restarts: queries service state before acting — handles STOPPED, NOT_STOPPABLE, and PENDING states correctly
- Dependent service management: stops dependents BEFORE parent (prevents ERROR_DEPENDENT_SERVICES_RUNNING 1051), restarts only previously-running dependents after
- Locale-independent: all service commands use
sc(always English output) instead ofnet(locale-dependent) - Retry logic: handles exit codes 1062 (already stopped), 1051 (dependents still running), 1056 (already running)
Other Improvements
- Installer detection by exe name (not full path) — avoids false matches from directory names
- UTF-8 safe error truncation — no broken multi-byte characters in error messages
- NSIS case-sensitive
/Sflag handling
Quality
- Reviewed across 6 Oracle rounds (22 total findings, all fixed, 0 remaining)
go build+go vetclean
Install
# Download pw.exe from this release and place in your PATH
# Or: go install github.com/lakshaymaurya-felt/purewin@v1.2.1Full Changelog: v1.2.0...v1.2.1