42

I am attempting to install two hotfixes manually from Microsoft - one addresses the svchost.exe extreme memory usage problem, and the other addresses the slow Windows Update problem.

This system is a freshly installed Windows 7, and I have the two MSU updates saved locally to my desktop, but it is never actually finding such updates, and therefore never actually installs the two fixes.

Is there a way to force Windows Update Standalone Installer to just install the single update and not look for all the updates?

Thomas Ward
  • 1,031
  • 1
  • 15
  • 28
  • The key reason for needing to get these two fixes on is to get the faster Windows Update system, so it can actually download all the updates it needs (it's never gotten its updates) – Thomas Ward Feb 23 '16 at 16:37
  • [Similar issue](http://superuser.com/questions/951960/windows-7-sp1-windows-update-stuck-checking-for-updates/1022204#1022204) – Moab Feb 23 '16 at 22:03
  • 2
    @Moab Not really. The issue observed here is *specifically* with the Standalone installer; it is NOT about overall Windows Update - that's what the second of the MSU packages I was trying to install was for. Therefore, I don't believe they are similar, as I was specifically having issues with the `wusa.exe` program, which is the standalone installer for package files for updates – Thomas Ward Feb 23 '16 at 22:07
  • Similar issue was resolved in that post by disconnecting from the internet while installing stand alone MS installers. Just a different method than disabling wuauserv. – Moab Feb 23 '16 at 22:22
  • 1
    @Moab Tried and failed - didn't solve the issue as `wusa` was still trying to "search" and never found anything. – Thomas Ward Feb 23 '16 at 22:48
  • 4
    @Moab NO, this has nothing to do with Internet conenction. I traced this issue years ago with xperf/WPA. After the first MSU install, WU service scans if all MSI/MSP files are valid, this takes a lot of time and so the 2nd update can't start detect if it can be installed. My workaround stops the useless MSI scanning. – magicandre1981 Feb 24 '16 at 05:17
  • 2
    believe what you want but I traced what Windows does or not. – magicandre1981 Feb 25 '16 at 05:23

1 Answers1

67

The message is misleading. It searches if the update can be installed or if the update is no longer needed (superseded).

Line #, DPC/ISR, Process, Stack Tag, Stack, Count, TimeStamp, % Weight
10, , , ,   wuaueng.dll!CUpdatesToPruneList::PopulateSupersedenceInfo, 31521, , 43,72
11, , , ,   wuaueng.dll!CUpdatesToPruneList::AddSupersedenceInfoIfNeeded, 31521, , 43,72

WUSA.exe, which is used to install MSU updates, is just a wrapper to Windows Update. After Windows Update installed an update it hangs again in a loop to check if updates apply or not and those checks are useless after an install and this loop blocks you from installing other MSU updates.

To speedup the Installation, stop the WindowsUpdate service via GUI (services.msc) or via elevated (running as admin) command line (net stop wuauserv). Now the loop is stopped and updates install faster.

Install the first MSU update, stop WindowsUpdate service again and install the 2nd MSU file.

I also created a script with enums all MSU files in the same folder as the CMD and installs them and stop WU service on it's own everytime to speedup setup.

magicandre1981
  • 97,301
  • 30
  • 179
  • 245
  • 4
    Thank you very much for your answer! This definitely got me past that "searching" step with the standalone installer, and helped a lot. Hopefully Windows can get its updates now! – Thomas Ward Feb 23 '16 at 17:54
  • Does not work, gives me an `error 5 access denied`. – Dmitri Nesteruk Jul 25 '16 at 17:34
  • 4
    @DmitriNesteruk instead of downvoting it tun the cmd as admin **facepalm** – magicandre1981 Jul 26 '16 at 04:10
  • @magicandre1981 my bad – Dmitri Nesteruk Jul 26 '16 at 11:32
  • 4
    I stopped the service but it goes back up the moment I try to install the `msu`. – Matheus Moreira Aug 14 '16 at 22:10
  • @MatheusMoreira what do you mean with back to normal – magicandre1981 Aug 15 '16 at 13:29
  • 1
    Worked like a charm when trying to install Remote System Administration Tools from Microsoft. Their forum was unhelpful as usual, so thank you very much for taking the time to find this solution! – user121391 Oct 14 '16 at 08:39
  • 4
    I didn't have privileges to stop the service so I extracted the files from the msu and installed the .cab file from an elevated prompt: >dism /online /add-package /packagepath:C:\update\myupdate.cab – kttii Nov 02 '16 at 16:35
  • 1
    @kttii yes, this works around WUSA and DISM doesn't check if the update is really needed or not, so the CPU usage is of course not present. – magicandre1981 Nov 02 '16 at 16:40
  • 1
    I also needed to disconnect from the internet in order to keep the service from starting back up again! Disconnecting from the internet, stopping the Windows Update service, then running the update worked. – Jeff Lockhart Dec 23 '16 at 07:27
  • @JeffLockhart no, this is not required. When you install the MSU it is normal that the service gets started again, but the CPU usage that caused the hang is gone – magicandre1981 Dec 23 '16 at 12:18
  • @magicandre1981 this was my experience. I was attempting to install the prerequisite updates and they were hanging after the service restarted attempting to check for updates. Once I disconnected from the internet, the service did not restart and the install went directly to telling me the prerequisites were each already installed. The main update also skipped checking for updates and went directly to installing. – Jeff Lockhart Dec 24 '16 at 19:22
  • @JeffLockhart no, this was something else. I install updates via CMD for years, without disconnecting from internet: http://superuser.com/a/1057487/174557. WU simply is busy checking with updates are required, when you stop WU, this usage is gone and it can install the update very fast. But after it installed the update it hangs again in a loop to check if updates apply or not and those checks are useless after an install. – magicandre1981 Dec 25 '16 at 09:57
  • Like Jeff Lockhart, I needed to disable the internet in addition to stopping WU to get it to work. – binki Feb 16 '19 at 02:47
  • @binki no, you simply waited too long before runnign the MSU so that a trigger started WU again. – magicandre1981 Feb 16 '19 at 13:44
  • @magicandre1981 I was quite sure that I had waited a while and *not* seen WU start up and then when I ran the MSU it started up. – binki Feb 16 '19 at 22:25
  • @binki this is expected. WUSA.exe, which installes MSU updates, is a Windows update wrapper so it starts it.the fix is to stop WU service to cancel unneeded calls after installing 1 MSU which blocks install of other updates. – magicandre1981 Feb 17 '19 at 16:46
  • I feel like I must have a different issue. I `net stop wuauserv`, immediately trigger the .msu, and it goes right back to "searching for updates on this computer" forever. – duct_tape_coder Jul 31 '20 at 22:29
  • @duct_tape_coder also stop trustedinstaller service – magicandre1981 Aug 01 '20 at 13:32
  • @magicandre1981 I tried again with "Windows Update" and "Windows Module Installer" stopped and it still is searching. – duct_tape_coder Aug 03 '20 at 15:17
  • @magicandre1981 Okay so I rebooted, did `dism.exe /Online /Cleanup-image /Restorehealth`, `sfc /scannow`, made sure wuauserv and trustedinstaller were stopped, and tried the msu again and it finally worked. I guess I had some OS corruption? Thanks! – duct_tape_coder Aug 03 '20 at 16:49
  • @duct_tape_coder I have no idea as I don't know which windows do you use and in which state your system is – magicandre1981 Aug 04 '20 at 13:47