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

[Package Issue]: Microsoft.PowerShell #127283

Open
2 tasks done
HunterZ opened this issue Nov 18, 2023 · 8 comments
Open
2 tasks done

[Package Issue]: Microsoft.PowerShell #127283

HunterZ opened this issue Nov 18, 2023 · 8 comments
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work.

Comments

@HunterZ
Copy link

HunterZ commented Nov 18, 2023

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installation issue.

Brief description of your issue

Error message when trying to upgrade from 7.3.9.0 to 7.4.0.0:
A newer version was found, but the install technology is different from the current version installed. Please uninstall the package and install the newer version.

I need to know if it's actually safe to uninstall PowerShell!

Steps to reproduce

Unknown

Actual behavior

Error message as shown

Expected behavior

Package upgrades successfully

Environment

Windows Package Manager v1.6.3133
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.2715
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3133.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Screenshots and Logs

Winget logfile says:
Installer [X86,wix,Machine,] not applicable: Installed package type 'exe' is not compatible with installer type wix

@HunterZ HunterZ added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Nov 18, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Nov 18, 2023
@stephengillie stephengillie added Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. and removed Needs-Triage This work item needs to be triaged by a member of the core team. Issue-Bug It either shouldn't be doing this or needs an investigation. labels Nov 20, 2023
@HunterZ
Copy link
Author

HunterZ commented Nov 23, 2023

I downloaded PowerShell 7.4 manually from Microsoft and installed it, and Winget now insists that both 7.3.9 and 7.4 are installed.

Telling it to uninstall 7.3.9 results in 7.4 being uninstalled. When I then try to run Powershell it reports a 5.x version. Meanwhile, Winget still insists that 7.3.9 is installed. What a disaster!

Edit: After uninstalling the ghost 7.3.9 entry and then rerunning the manual 7.4 installer, I think I'm sorted. I can't believe that a Microsoft tool handled updating of another Microsoft tool so incredibly poorly though.

@SpecterShell
Copy link
Contributor

Weird. The PowerShell team didn't release any burn-based .exe installer before (all of them are wix-based .msi) but now I have two PowerShell entries and one of them is burn-based, making WinGet keep mentioning updates for PowerShell.

image

I went through all the previous PRs for this package but none of them is associated with it. Totally no idea when and how it got into my device. 🤔

@mdanish-kh
Copy link
Contributor

I went through all the previous PRs for this package but none of them is associated with it. Totally no idea when and how it got into my device. 🤔

Similar case here microsoft/winget-cli#3798

@SpecterShell
Copy link
Contributor

I went through all the previous PRs for this package but none of them is associated with it. Totally no idea when and how it got into my device. 🤔

Similar case here microsoft/winget-cli#3798

I guess it was installed by Windows Update.

image

@SpecterShell
Copy link
Contributor

SpecterShell commented Dec 15, 2023

OK I got the link to this hidden installer from Windows Update.

http://download.windowsupdate.com/c/msdownload/update/software/updt/2023/11/powershell-7.3.10-win-x64_a435a353f3dc69edfaf11b53134c8b656cbf6a21.exe

@NLZ
Copy link
Contributor

NLZ commented Dec 15, 2023

I did what the instruction said, uninstalled via winget uninstall Microsoft.PowerShell from pwsh, then ran winget install Microsoft.PowerShell from windows powershell 5, and it worked, no loss of profile or anything

@BrandonWanHuanSheng
Copy link
Contributor

BrandonWanHuanSheng commented Dec 19, 2023

OK I got the link to this hidden installer from Windows Update.

http://download.windowsupdate.com/c/msdownload/update/software/updt/2023/11/powershell-7.3.10-win-x64_a435a353f3dc69edfaf11b53134c8b656cbf6a21.exe

I can't find that URL on the package.xml. You might using another third party tools to spot the hidden links.

See results:

image

@SpecterShell
Copy link
Contributor

SpecterShell commented Jan 8, 2024

All PowerShell releases available on Windows Update:

https://www.catalog.update.microsoft.com/Search.aspx?q=PowerShell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Projects
None yet
Development

No branches or pull requests

6 participants