diff --git a/hostinfo/hostinfo_windows.go b/hostinfo/hostinfo_windows.go index 1a4b50f45..d2732ae77 100644 --- a/hostinfo/hostinfo_windows.go +++ b/hostinfo/hostinfo_windows.go @@ -8,6 +8,7 @@ "fmt" "os" "path/filepath" + "strings" "golang.org/x/sys/windows" "golang.org/x/sys/windows/registry" @@ -69,6 +70,10 @@ func packageTypeWindows() string { if err != nil { return "" } + home, _ := os.UserHomeDir() + if strings.HasPrefix(exe, filepath.Join(home, "scoop", "apps", "tailscale")) { + return "scoop" + } dir := filepath.Dir(exe) nsisUninstaller := filepath.Join(dir, "Uninstall-Tailscale.exe") _, err = os.Stat(nsisUninstaller)