-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug report - Find/Install-ADTWinGetPackage & msstore #2
Comments
Do you mind getting screenshots of the exact error, and potentially the output of Hopefully I can make it work with some more info, otherwise I'll have to gate the module to just PowerShell Desktop and forbid Core usage. |
I think maybe the Appx message is spurious, I think it happens if you try .\Invoke-AppDeployToolkit.ps1 two times in the same PS session. The first time, it returns that it can't find the package, so I think that is the error - the find command can find the package, but the install command can't. Sorry for the f'd up headings below. PS7 Errors below (1ST Run):[2025-01-02 14:38:01.089] [Pre-Install] [Repair-ADTWinGetPackageManager] [Info] :: Successfully confirmed that [Microsoft.DesktopAppInstaller] is installed on system.
|
Thanks for all this extra info, I'll take a good look when I'm home from lunch! |
With this first one, it doesn't work because it doesn't work via To get around this, I'm enforcing I've reported this bug to the WinGet team, it's being tracked via microsoft/winget-cli#5104. Hopefully they come back with something there as I'm limited to what the command line gives me. You can download a pre-release copy of PSAppDeployToolkit.WinGet here, it will contain the fixes: https://github.com/mjr4077au/PSAppDeployToolkit.WinGet/actions/runs/12578381392. If there's any further issues, please raise a new case. I'll wait until the end of the week before releasing 1.0.1 to see if any further reports come through. Thank you for using my module! I hope it works great for you within your environment 🤘 |
@msellar-inst I've addressed your bug that occurs when running |
Expected Behavior
Find and install commands should work with source: msstore.
In the example below 9NHKF5NVCG00 = MS Forms.
Current Behavior
Find only works if you omit the -Id parameter. Eg:
Find-ADTWinGetPackage 9NHKF5NVCG00 <-- Works
Find-ADTWinGetPackage -id 9NHKF5NVCG00 <-- Fails "No packages matched the given input criteria"
Install commands don't work - with or without -Id. Eg:
Install-ADTWinGetPackage 9NHKF5NVCG00 <-- Fails "Failed to generate proxies for remote module 'Appx'. The runspace state is not valid for this operation"
Install-ADTWinGetPackage 9NHKF5NVCG00 -Source msstore <-- Fails "Failed to generate proxies for remote module 'Appx'. The runspace state is not valid for this operation"
Install-ADTWinGetPackage -id 9NHKF5NVCG00 <-- Fails "No packages matched the given input criteria"
Install-ADTWinGetPackage -id 9NHKF5NVCG00 -Source msstore <-- Fails "No packages matched the given input criteria"
Find/install should work - prob with or without the -Id parameter
Possible Solution
Steps to Reproduce
Run commands shown above
Context (Environment)
Development PC: Win10, VScode, PS7
get-installedModule -name psapp*
Version Name Repository Description
4.0.4 PSAppDeployToolkit PSGallery Enterprise App Deployment, Simplified.
1.0.0 PSAppDeployToolkit.WinGet PSGallery A PSAppDeployToolkit v4 extension module for WinGet.
Detailed Description
The text was updated successfully, but these errors were encountered: