You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to deploy winget via DISM (cmdlet below) it works, however when trying to run via System (psexec even) it doesn't return recognize the executable (no list of commands returned) when launching from the following path: $env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe"
winget system context install (works with v1.3.2091) on both W10 & W11: DISM.exe /online /Add-ProvisionedAppxPackage /PackagePath:"\..\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" /SkipLicense
I'm well aware that the normal installation of WinGet on W11 is located under the %LocalAppData% for the user. How are we supposed to deliver winget packages via System context over Intune?
Steps to reproduce
Launch cmd.exe using and then switch to powershell psexec.exe -s -i cmd.exe
Install release using DISM DISM.exe /online /Add-ProvisionedAppxPackage /PackagePath:"\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" /SkipLicense
Browse to the WinGet system path : $ResolveWingetPath = Resolve-Path "$env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe" $WingetPath = $ResolveWingetPath[-1].Path
Change directory using cd $wingetpath
Try running .\winget.exe
It wouldn't return anything as if the executable is broken. (Works perfectly fine for W10)
Expected behavior
Return the list of commands along with the summary about Winget CLI
Actual behavior
Returns nothing and System installs are broken.
Environment
Windows: Windows.Desktop v10.0.22000.978
System Architecture: X64
The text was updated successfully, but these errors were encountered:
Thanks @Trenly for dropping those. I've been through them actually during the past weeks, however I mentioned that it does work for W10 using System account by browsing to the %ProgramFiles% install path of winget, that gets added via DISM, since Add-AppxPackage is not available.
On W11 the executable simply doesn't budge when it's launched. It's not about winget not getting recognized in the system context as it does in the user one thanks to the PATH variable.
Brief description of your issue
When trying to deploy winget via DISM (cmdlet below) it works, however when trying to run via System (psexec even) it doesn't return recognize the executable (no list of commands returned) when launching from the following path:
$env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe"
winget system context install (works with v1.3.2091) on both W10 & W11:
DISM.exe /online /Add-ProvisionedAppxPackage /PackagePath:"\..\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" /SkipLicense
I'm well aware that the normal installation of WinGet on W11 is located under the %LocalAppData% for the user. How are we supposed to deliver winget packages via System context over Intune?
Steps to reproduce
psexec.exe -s -i cmd.exe
DISM.exe /online /Add-ProvisionedAppxPackage /PackagePath:"\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" /SkipLicense
$ResolveWingetPath = Resolve-Path "$env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe"
$WingetPath = $ResolveWingetPath[-1].Path
cd $wingetpath
.\winget.exe
Expected behavior
Return the list of commands along with the summary about Winget CLI
Actual behavior
Returns nothing and System installs are broken.
Environment
The text was updated successfully, but these errors were encountered: