chocolatey / chocolatey/choco

Change to using Add-WindowsPackage or DISM instead of wusa.exe (install slowness and uninstall problems)

Open
#1,989 2 comments 0 reactions 0 assignees View on GitHub
0 - Triaging
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

WUSA is slower in some cases than Add-WindowsPackage (or possibly DISM if pre-Windows 2016) - For reference, see https://dennisspan.com/slow-installation-of-msu-files-using-the-wusa-exe/

Also, choco uninstall of an MSU removes the PACKAGE but not the actual hotfix in WinServ2016 (confirmed), and win10 (anecdotal) since wusa.exe /quiet does not function correctly. See https://social.technet.microsoft.com/Forums/Lync/en-US/f6594e00-2400-4276-85a1-fb06485b53e6/issues-with-wusaexe-and-windows-10-enterprise?forum=win10itprogeneral for reference

The latter is a bug. Should this ticket be separated into Enhancement (install) and Bug (uninstall)?

Contributor guide

Open the contributing guide

Research direction

Start by examining how Chocolatey currently uses wusa.exe, then compare Add-WindowsPackage and DISM for MSU installation and removal on Windows Server 2016 and Windows 10. Resolve whether the installation enhancement and uninstall bug should be handled separately, and verify that uninstall removes the actual hotfix rather than only the package.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.