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

Support for apps installed outside of the Package manager #153

Closed
denelon opened this issue May 15, 2020 · 4 comments
Closed

Support for apps installed outside of the Package manager #153

denelon opened this issue May 15, 2020 · 4 comments
Labels
Issue-Feature This is a feature request for the Windows Package Manager client.
Milestone

Comments

@denelon
Copy link
Contributor

denelon commented May 15, 2020

I want to use the winget client as my tool for configuring all apps on my PC. Even if I have not installed the app through winget I can list / update / uninstall and repair the app.

By passing a command line argument to the winget, the winget will query the control panel for all ARP entries and all Windows Store and Sideloaded apps.

winget list --win32
winget update --win32
winget uninstall --win32

*--win32 is a placeholder name.

@denelon denelon added the Issue-Feature This is a feature request for the Windows Package Manager client. label May 15, 2020
@megamorf
Copy link

If you use WMI to query installed programs make sure to not query Win32_Product and instead use Win32reg_AddRemovePrograms. Win32_Product is not query optimized and interacting with that class will initiate a consistency check of packages installed, verifying and repairing the install.

I believe this is still the case with current builds of Windows 10 even if the original kb is somewhat dated: https://support.microsoft.com/en-in/help/974524/event-log-message-indicates-that-the-windows-installer-reconfigured-al

@KevinMarquette
Copy link

I think Win32Reg_AddRemovePrograms is a SCCM client thing, not exactly sure.

@megamorf
Copy link

megamorf commented May 23, 2020

@KevinMarquette Oh, you are right. The class is indeed tied to SCCM and not available by default. An alternative approach would be to enumerate the entries in <HKCU|HKLM>\SOFTWARE[\Wow6432Node]\Microsoft\Windows\CurrentVersion\Uninstall.

@denelon denelon added this to the Package Manager Backlog milestone May 23, 2020
@denelon denelon modified the milestones: Package Manager Backlog, Package Manager v0.3.x Sep 11, 2020
@denelon denelon modified the milestones: Package Manager v0.3.x, Package Manager Backlog May 3, 2021
@denelon
Copy link
Contributor Author

denelon commented Aug 6, 2021

This was completed several releases back. I just missed closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

No branches or pull requests

3 participants