Windows 10/Server 2016 and newer - choco uninstall does not remove windows update packages as expected
- Dominant language
- C#
- Stars
- 11.5k
- Forks
- 960
- PR merge metrics
- No merged PRs in 30d
Description
Ensure you have read over Submitting Issues -
https://github.com/chocolatey/choco#submitting-issues
Please check to see if your issue already exists with a quick search of the issues. Start with one relevant term and then add if you get too many results.
NOTE: Keep in mind we have an etiquette regarding communication that we expect folks to observe when they are looking for support in the Chocolatey community. https://github.com/chocolatey/choco/blob/master/README.md#etiquette-regarding-communication
-->
### What You Are Seeing?
After creating a Windows update package and uploading it to the locally installed Chocolatey.Server, it installs fine (though the timeout has to be extended for the 1+ gig files), but when running
choco uninstall windows10.0-kb4537764-x64_93e41ada5a984e3749ecd87bc5515bdc48cefb4d
the package is removed from the chocolatey list, but the patch is still installed. Further investigation shows that 'wusa.exe /quiet' returns immediately, LOOKS like it succeeds, but the patch is still there.
### What is Expected?
The patch would be removed. This has been reported to be accomplishable using dism, but I have not tested that.
### How Did You Get This To Happen? (Steps to Reproduce)
1. Download patch
2. build the package:
choco new {{pkg}} --file {{pkg}}.msu --version 1.0.0 --output-dir d:\windows_updates\ --build-package
3. upload the package to the server
4. install the package
5. uninstall the package
6. See that it is still present
### Output Log
Full Log Output
~~~sh
PLACE LOG CONTENT HERE - WE NEED _ALL_ DETAILED OUTPUT BASED ON THE ABOVE TO BE ABLE TO PROVIDE SUPPORT (YOU WILL FIND THAT IN THE $env:ChocolateyInstall\logs\chocolatey.log between the `=====`)
~~~
Contributor guide
Assessment
This issue has not been assessed yet.