mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
winutil: refactor methods to get values from registry to also return (#9536)
errors Updates tailscale/corp#14879 Signed-off-by: Claire Wang <claire@tailscale.com>
This commit is contained in:
@@ -62,7 +62,8 @@ func packageTypeWindows() string {
|
||||
if _, err := os.Stat(`C:\ProgramData\chocolatey\lib\tailscale`); err == nil {
|
||||
return "choco"
|
||||
}
|
||||
if msiSentinel := winutil.GetRegInteger("MSI", 0); msiSentinel == 1 {
|
||||
msiSentinel, _ := winutil.GetRegInteger("MSI")
|
||||
if msiSentinel == 1 {
|
||||
return "msi"
|
||||
}
|
||||
exe, err := os.Executable()
|
||||
|
Reference in New Issue
Block a user