Skip to content
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]: PowerShell Core Incompatibility #379

Closed
gabriel-vanca opened this issue Aug 18, 2023 · 4 comments
Closed

[Bug]: PowerShell Core Incompatibility #379

gabriel-vanca opened this issue Aug 18, 2023 · 4 comments
Labels
bug Something isn't working stale

Comments

@gabriel-vanca
Copy link

gabriel-vanca commented Aug 18, 2023

The problem

(This is further to the problem at #113)

I cannot install WAU using PowerShell Core because of a certain incompatible command.

This is what is causing the problem:

	$TestWinGet = Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -eq "Microsoft.DesktopAppInstaller" }

    #Current: v1.5.1881 = 1.20.1881.0 = 2023.707.2257.0
    If ([Version]$TestWinGet.Version -ge "2023.707.2257.0") {

To be compatible, this should be replaced with:

	$TestWinGet = Get-AppPackage -name "Microsoft.DesktopAppInstaller"

    #Current: v1.5.1881 = 1.20.1881.0 = 2023.707.2257.0
    If ([Version]$TestWinGet.Version -ge "1.20.1881.0") {

What version of WAU has the issue?

latest

What version of Windows are you using (ex. Windows 11 22H2)?

Windows 11 22H2

What version of winget are you using?

latest

Log information

No response

Additional information

No response

@gabriel-vanca gabriel-vanca added the bug Something isn't working label Aug 18, 2023
@KnifMelti
Copy link
Contributor

Incompatible? Just installed in MSB after installing PowerShell Core 7...

image

@gabriel-vanca
Copy link
Author

It says WinGet is not installed despite being installed. This is because the Winget check fails in PowerShell Core and only works in PowerShell version 5.

@github-actions
Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Sep 22, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2023

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants