-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Unable to install PowerShell Preview 7.4 with PowerShell 7.3 installed. #2886
Comments
@dembeck do you know if a version of PowerShell from the Microsoft Store has been installed on the machine? Can you run Then run You should be able to install both versions side by side. WinGet is trying to avoid breaking anything related to installer type changes. I don't want your environment broken, but if you add "--force" to the end of an "install" command, WinGet will bypass the warnings and just run the installer. |
I think that on this machine I initially installed PS 7.x with the msi from the PowerShell repo. When there is an update, sometimes I use winget, other times I use the latest msi. > winget list --id "Microsoft.PowerShell" --source winget
Name Id Version
---------------------------------------------------
PowerShell 7.3.1.0-x64 Microsoft.PowerShell 7.3.1.0
> winget list --id "Microsoft.PowerShell"
Name Id Version Source
-----------------------------------------------------------
PowerShell 7.3.1.0-x64 Microsoft.PowerShell 7.3.1.0 winget > Get-Command -Name "*pwsh*"
CommandType Name Version Source
----------- ---- ------- ------
Application pwsh.exe 7.3.1.0 C:\Program Files\PowerShell\7\pwsh.exe |
@denelon Is there anything else you want me to check or any logs that you want me to collect? I have held off installing PS preview on this system using the force flag or using the msi in case there was any other information you wanted. |
There were a couple of other PowerShell related issues I was looking into. The PowerShell from the Microsoft Store is the "MSIX" package. Some changes had been made to the manifest and were subsequently reverted to pull the MSIX versions back out for x86 and x64.
The machine scope is being added back to the manifests now (unfortunately, we're having some issues with the validation pipelines so they are currently stalled) |
When running
We have a WSUS server that installs Powershell causing an issue as it installs using an .exe, whereas I think Winget uses .msi. How can we get around this? |
Brief description of your issue
When attempting to install PowerShell Preview 7.4 side-by-side with PowerShell 7.3 using winget, the installation is blocked with the message "Found an existing package already installed."
It appears that winget is identifying the installed version of PowerShell 7.3 as PowerShell Preview 7.4.
Steps to reproduce
winget search "Microsoft.PowerShell
winget install --source 'winget' --interactive --id 'Microsoft.PowerShell.Preview''
Expected behavior
winget should successfully install PowerShell Preview 7.4 side-by-side with PowerShell 7.3.
Actual behavior
winget is unable to differentiate between the two versions of PowerShell and is therefore preventing the installation of the
Microsoft.PowerShell.Preview
package.winget listing installed versions of PowerShell.
winget search results and installation error message.
Environment
The text was updated successfully, but these errors were encountered: