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

winget installed deleted software #4407

Open
jan10000000001 opened this issue Apr 24, 2024 · 5 comments
Open

winget installed deleted software #4407

jan10000000001 opened this issue Apr 24, 2024 · 5 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback Issue needs attention from issue or PR author No-Recent-Activity Issue has no recent activity

Comments

@jan10000000001
Copy link

Brief description of your issue

hi i deinstalled firefox and irfanview .on next time i use winget upgrade --all --silent
it installed the software again

Steps to reproduce

hi i deinstalled firefox and irfanview .on next time i use winget upgrade --all --silent
it installed the software again

Expected behavior

dont upgrade(install ) deleted software

Actual behavior

install again deleted software

Environment

PS C:\Users\bwe5gvj> winget --info
Windows-Paket-Manager v1.7.10861
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.22631.3447
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.22.10861.0

WinGet-Verzeichnisse
-----------------------------------------------------------------------------------------------------------------------
Protokolle                                   %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\Local…
Benutzereinstellungen                        %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\Local…
Verzeichnis für portierbare Links (Benutzer) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portables Linkverzeichnis (Computer)         C:\Program Files\WinGet\Links
Portierbarer Paketstamm (Benutzer)           %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portierbarer Paketstamm                      C:\Program Files\WinGet\Packages
Portierbares Paketstamm (x86)                C:\Program Files (x86)\WinGet\Packages
Installationsprogrammdownloads               %USERPROFILE%\Downloads

Links
-----------------------------------------------------------------------------------------
Datenschutzerklärung              https://aka.ms/winget-privacy
Lizenzvereinbarung                https://aka.ms/winget-license
Hinweise von Drittanbietern       https://aka.ms/winget-3rdPartyNotice
Startseite                        https://aka.ms/winget
Windows Store-Nutzungsbedingungen https://www.microsoft.com/en-us/storedocs/terms-of-sale

Administratoreinstellung                  Status
-----------------------------------------------------
LocalManifestFiles                        Deaktiviert
BypassCertificatePinningForMicrosoftStore Deaktiviert
InstallerHashOverride                     Deaktiviert
LocalArchiveMalwareScanOverride           Deaktiviert
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Apr 24, 2024
@stephengillie
Copy link

stephengillie commented Apr 24, 2024

That's not supposed to happen - the package manager reads from the Registry to know what's on the PC. So even if it was uninstalled through another means it should still be off the list.

If the software files were removed, but the Registry entries not removed - maybe during a manual removal - then I'm not sure how the package manager would react. DefaultInstallLocation is part of the Schema now, but outside of this field, I believe the package manager doesn't check the file system. And that field is only used to help with matching, possibly for packages that normally install side-by-side and don't leave many other details in the Registry.

So the package manager might match the Registry entries, not know to check files on disk to find them missing, then proceed to download the installer and perform an upgrade - which turns into the install you saw. Could this be what happened?

Feature request: Check if the application files have been removed, and prompt in terminal "This package has Registry entries, but its files are missing. Should the Registry entries be removed, should the package be reinstalled, or should this be skipped?"

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage Issue need to be triaged label Apr 24, 2024
@denelon
Copy link
Contributor

denelon commented Apr 24, 2024

@jan10000000001 could you get your device to the state where you believe the applications are removed and run winget list to see what WinGet still reports as installed? The application(s) may not have been completely removed.

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback Issue needs attention from issue or PR author labels Apr 24, 2024
@jan10000000001
Copy link
Author

@denelon winget list show nothing about firefox and irfanview
@stephengillie i uninstalled the software over control /programm and featueres

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Apr 25, 2024
@denelon
Copy link
Contributor

denelon commented Apr 25, 2024

Can you share the WinGet logs for running WinGet list where the two applications are not present, and then logs showing a reproduction where the applications are getting "upgraded"?

@denelon denelon added Needs-Author-Feedback Issue needs attention from issue or PR author and removed Needs-Attention Issue needs attention from Microsoft labels Apr 25, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the No-Recent-Activity Issue has no recent activity label May 2, 2024
Copy link
Contributor

Hello @jan10000000001,

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

Template: msftbot/noRecentActivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback Issue needs attention from issue or PR author No-Recent-Activity Issue has no recent activity
Projects
None yet
Development

No branches or pull requests

3 participants