Skip to content

Commit 0b33268

Browse files
committed
v4.1.2
1 parent 169d194 commit 0b33268

File tree

6 files changed

+1278
-1
lines changed

6 files changed

+1278
-1
lines changed

CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# CHANGELOG
2+
3+
> Author : @aakkam22
4+
> Last Updated : 12 February 2018
5+
6+
## 4.X
7+
8+
### 4.1.2
9+
10+
* Project moved *OpenSource* to [GitHub](https://github.com/aakkam22/windowsUpdateLoopFix)
11+
* Added FAQ to documentation
12+
* Fixed a bug in the Administrator manifest
13+
14+
### 4.1.1
15+
16+
* Fixed an issue where the wizard would report insufficient privileges even when run as administrator
17+
* Minor improvements
18+
19+
### 4.1
20+
21+
* Major code audit and cleanup
22+
* Added %errorlevel%==2 for wusa.exe in stage 3
23+
* Improved the reliability of the file download code
24+
25+
26+
### 4.0
27+
28+
* 32 and 64-bit sources merged into one script
29+
* Required updates are now downloaded directly from Internet (BETA)
30+
* UX and code improvements
31+
32+
33+
## 3.X
34+
35+
* Compiled the program contents into a single .exe file for ease of use
36+
* UX and code improvements
37+
38+
## 2.X
39+
40+
* Added advanced options
41+
* Rewrote documentation
42+
* UX and code improvements
43+
44+
## 1.X
45+
46+
### 1.2
47+
48+
* UX and code improvements
49+
50+
### 1.1
51+
52+
* Added prompt reminding users to extract the zip folder
53+
54+
### 1.0
55+
56+
* Initial Release

FAQ.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# FAQ
2+
3+
#### Don't see your problem? [Open an issue](https://github.com/aakkam22/windowsUpdateLoopFix/issues/new) on the GitHub repository.
4+
5+
## The wizard hangs on Stage 3 when installing the updates.
6+
7+
Try these steps in order:
8+
9+
### Perform a clean boot
10+
11+
Another process might be interfering with or blocking installation, so run the wizard in a clean boot environment. A clean boot starts Windows with only the core system services and processes running. See [this](https://support.microsoft.com/en-us/help/929135/how-to-perform-a-clean-boot-in-windows) Microsoft Support article for instructions on performing a clean boot.
12+
13+
### Temporarily disable Windows Update
14+
Open Windows Update and change the updating settings to **"Never check for updates (not recommended)"**. Then try Stage 3 again. This change ensures that Windows Update remains "asleep" during update installation. Don't forget to re-enable Windows Update after running the fix.
15+
16+
### Install the System Update Readiness Tool (SURT)
17+
18+
The SURT was released by Microsoft in October 2014. It will check for and patch any known issues in your Windows Update data store that might be preventing other updates from installing. You can download the SURT [here](https://support.microsoft.com/en-us/help/947821/fix-windows-update-errors-by-using-the-dism-or-system-update-readiness).
19+
20+
## The wizard hangs on "Requesting administrative privileges" after a reboot.
21+
22+
After your computer reboots, it is busy loading everything back up and the wizard takes the lowest priority. Depending on your computer speed, you may need to wait a minute or two to receive the UAC prompt.
23+
24+
## My anti-virus program is flagging and removing the wizard. Does it contain malware?
25+
26+
The wizard is an unsigned file downloaded from the Internet. Please be assured that it contains no malware. However, because it is an unsigned file, some anti-virus programs will err on the side of caution and flag it as malware.
27+
28+
To fix this issue, I would need to obtain a digital certificate and sign the code with it. However, this is a difficult and costly process and this project is not significant enough to warrant such a formality.
29+
30+
## The wizard reports "Unsupported Operating System" but I am running Windows 7.
31+
32+
Make sure that you have Service Pack 1 installed. You can download SP1 [here](https://www.microsoft.com/en-us/download/details.aspx?id=5842).

README.md

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,51 @@
1-
#Title of Readme
1+
# Windows Update Loop Fix
2+
3+
> An automated wizard to fix the "Checking for Updates" loop on Windows 7 SP1
4+
5+
## Overview
6+
7+
When a fresh copy of Windows 7 is installed, the update mechanism originally included with the operating system can't interact with the new Microsoft servers, causing the update check to hang. This wizard was written specifically to fix the "Checking for Updates" loop that occurs on Windows 7 systems.
8+
9+
The wizard also installs KB3102810. This update addresses high CPU usage by the svchost.exe proces during updating operations.
10+
11+
The fix is divided into three stages:
12+
13+
1. Resets all Windows Update components
14+
2. Installs the latest Windows Update Agent
15+
3. Installs KB3020369, KB3172605 and KB3102810
16+
17+
## Compatibility
18+
19+
Compatible with **Windows 7 SP1 only**. No support will be provided for a different version.
20+
21+
If you are running Windows 7, make sure Service Pack 1 is installed.
22+
23+
## Instructions
24+
25+
1. Download the latest release from [here](https://github.com/aakkam22/windowsUpdateLoopFix/releases)
26+
2. Exit any running applications
27+
3. Double-click the wizard.exe file inside the .zip folder
28+
29+
###
30+
31+
* The **"Custom (advanced users only)"** option allows you to skip to a specific stage of the fix
32+
33+
* For the best results, choose the **"Express (recommended)"** option to run through all the stages in order
34+
35+
The wizard will connect to the Internet to download the updates for installation. Please disconnect from the Internet when the required files have downloaded to ensure a smooth installation.
36+
37+
## Package Safety
38+
39+
Files downloaded from the Internet can sometimes trigger false anti-virus alarms. This program has been scanned with the latest anti-virus definitions and does not contain malware.
40+
41+
## Help
42+
43+
* See [FAQ.md](https://github.com/aakkam22/windowsUpdateLoopFix/blob/master/FAQ.md) for a list of frequently encountered problems and solutions.
44+
45+
* See [CHANGELOG.md](https://github.com/aakkam22/windowsUpdateLoopFix/blob/master/CHANGELOG.md) for development history.
46+
47+
* For all other feedback, please [open an issue](https://github.com/aakkam22/windowsUpdateLoopFix/issues/new) on the GitHub repository. Include error codes, screen-shots, and system details.
48+
49+
## Terms of Use
50+
51+
You use this script at your own risk. While this wizard has been tested extensively, the developer assumes no responsibility for any damage.

cleanup.bat

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
::=============================
2+
::NAME: Windows Update Loop Fix
3+
::VERSION: 4.1.1
4+
::AUTHOR: aakkam22
5+
::=============================
6+
7+
8+
::===========
9+
::CHECK ADMIN
10+
::===========
11+
12+
@echo off
13+
14+
:checkAdmin
15+
fsutil dirty query %systemdrive% >nul
16+
if '%errorlevel%' NEQ '0' (
17+
echo Requesting administrative privileges...
18+
goto uacPrompt
19+
) else ( goto gotAdmin )
20+
21+
:uacPrompt
22+
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
23+
set params = %*:"=""
24+
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
25+
26+
"%temp%\getadmin.vbs"
27+
del "%temp%\getadmin.vbs"
28+
exit /B
29+
30+
:gotAdmin
31+
pushd "%CD%"
32+
CD /D "%~dp0"
33+
34+
call :mode
35+
goto cleanup
36+
37+
38+
::=====================
39+
::SET WINDOW PROPERTIES
40+
::=====================
41+
42+
:mode
43+
echo off
44+
title Windows Update Loop Fix
45+
mode con cols=82 lines=43
46+
goto :eof
47+
48+
49+
::=============
50+
::PRINT HEADING
51+
::=============
52+
53+
:print
54+
cls
55+
echo.
56+
echo.Windows Update Loop Fix v4.1.2
57+
echo ------------------------------
58+
echo.
59+
goto :eof
60+
61+
62+
::=======
63+
::CLEANUP
64+
::=======
65+
66+
:cleanup
67+
call :print
68+
echo Cleanup
69+
echo.
70+
echo. The wizard is cleaning up...
71+
timeout /t 4 /nobreak>nul
72+
del /q %systemdrive%\packages\3020369.msu >nul 2>&1
73+
del /q %systemdrive%\packages\3172605.msu >nul 2>&1
74+
del /q %systemdrive%\packages\3102810.msu >nul 2>&1
75+
del /q %systemdrive%\packages\updates.bat >nul 2>&1
76+
del /q %systemdrive%\packages\wua.exe >nul 2>&1
77+
goto summary
78+
79+
80+
::=======
81+
::SUMMARY
82+
::=======
83+
84+
:summary
85+
call :print
86+
echo Summary
87+
echo.
88+
echo. The fix has finished processing. You can now check for new updates.
89+
echo.
90+
echo. Please be patient when checking for updates for the first time
91+
echo. because Windows Update might still be registering brand new components.
92+
echo.
93+
echo.
94+
echo. What would you like to do?
95+
echo.
96+
echo.
97+
echo. +---------------------------------------------------+
98+
echo. ^| ^|
99+
echo. ^| 1 -^> Open Windows Update ^|
100+
echo. ^| ^|
101+
echo. ^| 2 -^> Go online to get Windows 7 Service Pack 2 ^|
102+
echo. ^| ^|
103+
echo. ^| 3 -^> View README ^|
104+
echo. ^| ^|
105+
echo. ^| 4 -^> View FAQ ^|
106+
echo. ^| ^|
107+
echo. ^| 5 -^> View CHANGELOG ^|
108+
echo. ^| ^|
109+
echo. ^| ^|
110+
echo. ^| 6 -^> Exit ^|
111+
echo. ^| ^|
112+
echo. +---------------------------------------------------+
113+
choice /c 123456 /n
114+
if %errorlevel% EQU 1 goto wuApp
115+
if %errorlevel% EQU 2 goto SP2
116+
if %errorlevel% EQU 3 goto openReadme
117+
if %errorlevel% EQU 4 goto openFAQ
118+
if %errorlevel% EQU 5 goto openChangelog
119+
if %errorlevel% EQU 6 exit
120+
121+
:wuApp
122+
start wuapp.exe
123+
goto summary
124+
125+
:SP2
126+
start https://answers.microsoft.com/en-us/windows/forum/windows_7-update/how-to-update-windows-7-using-the-convenience/c2c7009f-3a10-4199-9c89-48e1e883051e
127+
goto summary
128+
129+
:openReadme
130+
IF EXIST "%systemdrive%\packages\README.html" (
131+
start %systemdrive%\packages\README.html
132+
) ELSE (
133+
start https://github.com/aakkam22/windowsUpdateLoopFix/blob/master/README.md
134+
)
135+
goto summary
136+
137+
:openFAQ
138+
IF EXIST "%systemdrive%\packages\FAQ.html" (
139+
start %systemdrive%\packages\FAQ.html
140+
) ELSE (
141+
start https://github.com/aakkam22/windowsUpdateLoopFix/blob/master/FAQ.md
142+
)
143+
goto summary
144+
145+
:openChangelog
146+
IF EXIST "%systemdrive%\packages\CHANGELOG.html" (
147+
start %systemdrive%\packages\CHANGELOG.html
148+
) ELSE (
149+
start https://github.com/aakkam22/windowsUpdateLoopFix/blob/master/CHANGELOG.md
150+
)
151+
goto summary
152+
153+
154+
:quit
155+
del /q %systemdrive%\packages\README.html >nul 2>&1
156+
del /q %systemdrive%\packages\FAQ.html >nul 2>&1
157+
del /q %systemdrive%\packages\CHANGELOG.html.html >nul 2>&1
158+
SETLOCAL >nul 2>&1
159+
SET someOtherProgram=SomeOtherProgram.exe >nul 2>&1
160+
TASKKILL /IM "%someOtherProgram%" >nul 2>&1
161+
DEL "%~f0" >nul 2>&1
162+
exit
163+

0 commit comments

Comments
 (0)