commit
2c74e66662
|
@ -18,9 +18,8 @@ Function Get-WingetCmd {
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
#Get Winget Location in User context
|
#Get Winget Location in User context
|
||||||
$WingetCmd = Get-Command winget.exe -ErrorAction SilentlyContinue
|
if (Test-Path "$env:LocalAppData\Microsoft\WindowsApps\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\winget.exe") {
|
||||||
if ($WingetCmd) {
|
$Script:Winget = "$env:LocalAppData\Microsoft\WindowsApps\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\winget.exe"
|
||||||
$Script:Winget = $WingetCmd.Source
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue