sábado, 15 de octubre de 2016

Windows 7 doesn't update and DAX will not install correctly

So you tried Windows 10, spent hours trying to block all the "telemetry" from phoning home to Microsoft to protect a bit your privacy. Scary that Windows 10 defaults to ALLOW all devices, including your camera, unrestricted access.
You felt safe, only to find out that now Windows 10 updates on its own, whenever it feels like it. Not only that, when it does update, you have to go over all the privacy settings AGAIN trying to reclaim a bit of it.
Last Tuesday, after Update Tuesday your Printer stopped working, or some other device that somehow doesn't keep up with the constant updates of Microsoft is not working anymore.... I am sure your Windows 10 is super safe.... too bad you cannot print or use the computer as you like..
Or the update might break your computer and require you to reinstall everything!
Or even worst it might break your Flex Radio SmartSDR install!! Unforgivable.
Do not worry, it is happening to a lot of people that tried Windows 10. A vast majority with a bit of computer knowledge realize that they don't have to settle for a second grade experience. You can and should go back to a more robust system like Windows 7 (or better yet Linux, but that is a whole separate blog post). As usual, Microsoft is not making it easy at all for anyone to do that.
You wiped Windows 10, you reinstalled Windows 7 and now Windows update is not working. What the hell!! It just sits forever looking for updates, finding none.
This is a problem with Windows 7 and the update service. Chances are you need around 150 to 250 updates, but your Windows 7 installation media is too old (even if it has Service Pack 1) and update hangs forever.
There is a solution.
First thing you need to do is to stop the BITS service, stop Update and clear the Update cache and history. You can try to do this on your own or you can follow instructions from this site.


My advice is that you download the batch file provided in that site and remember to run it as administrator. By going to the folder where it downloaded and Right Clicking It and "Run as Administrator"
If you do not trust a batch file downloaded from the net, you really shouldn't trust much from the web, this is what that batch file looks like:
@echo off
:: Created by: Shawn Brink
:: http://www.sevenforums.com
:: Tutorial: http://www.sevenforums.com/tutorials/91738-windows-update-reset.html
set b=0
set /a b=%b%+1
if %b% equ 3 (
   goto end1
net stop bits
echo Checking the bits service status.
sc query bits | findstr /I /C:"STOPPED"
if not %errorlevel%==0 (
    goto bits
goto loop2
echo Failed to reset Windows Update due to bits service failing to stop.
goto Start

set w=0
set /a w=%w%+1
if %w% equ 3 (
   goto end2
net stop wuauserv
echo Checking the wuauserv service status.
sc query wuauserv | findstr /I /C:"STOPPED"
if not %errorlevel%==0 (
    goto wuauserv
goto loop3
echo Failed to reset Windows Update due to wuauserv service failing to stop.
goto Start

set app=0
set /a app=%app%+1
if %app% equ 3 (
   goto end3
net stop appidsvc
echo Checking the appidsvc service status.
sc query appidsvc | findstr /I /C:"STOPPED"
if not %errorlevel%==0 (
    goto appidsvc
goto loop4
echo Failed to reset Windows Update due to appidsvc service failing to stop.
goto Start

set c=0
set /a c=%c%+1
if %c% equ 3 (
   goto end4
net stop cryptsvc
echo Checking the cryptsvc service status.
sc query cryptsvc | findstr /I /C:"STOPPED"
if not %errorlevel%==0 (
    goto cryptsvc
goto Reset
echo Failed to reset Windows Update due to cryptsvc service failing to stop.
goto Start
Ipconfig /flushdns
del /s /q /f "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
cd /d %windir%\system32
if exist "%SYSTEMROOT%\winsxs\pending.xml.bak" del /s /q /f "%SYSTEMROOT%\winsxs\pending.xml.bak"
if exist "%SYSTEMROOT%\winsxs\pending.xml" (
    takeown /f "%SYSTEMROOT%\winsxs\pending.xml"
    attrib -r -s -h /s /d "%SYSTEMROOT%\winsxs\pending.xml"
    ren "%SYSTEMROOT%\winsxs\pending.xml" pending.xml.bak

if exist "%SYSTEMROOT%\SoftwareDistribution.bak" rmdir /s /q "%SYSTEMROOT%\SoftwareDistribution.bak"
if exist "%SYSTEMROOT%\SoftwareDistribution" (
    attrib -r -s -h /s /d "%SYSTEMROOT%\SoftwareDistribution"
    ren "%SYSTEMROOT%\SoftwareDistribution" SoftwareDistribution.bak
if exist "%SYSTEMROOT%\system32\Catroot2.bak" rmdir /s /q "%SYSTEMROOT%\system32\Catroot2.bak"
if exist "%SYSTEMROOT%\system32\Catroot2" (
    attrib -r -s -h /s /d "%SYSTEMROOT%\system32\Catroot2"
    ren "%SYSTEMROOT%\system32\Catroot2" Catroot2.bak

if exist "%SYSTEMROOT%\WindowsUpdate.log.bak" del /s /q /f "%SYSTEMROOT%\WindowsUpdate.log.bak"
if exist "%SYSTEMROOT%\WindowsUpdate.log" (
    attrib -r -s -h /s /d "%SYSTEMROOT%\WindowsUpdate.log"
    ren "%SYSTEMROOT%\WindowsUpdate.log" WindowsUpdate.log.bak

regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
regsvr32.exe /s shdocvw.dll
regsvr32.exe /s browseui.dll
regsvr32.exe /s jscript.dll
regsvr32.exe /s vbscript.dll
regsvr32.exe /s scrrun.dll
regsvr32.exe /s msxml.dll
regsvr32.exe /s msxml3.dll
regsvr32.exe /s msxml6.dll
regsvr32.exe /s actxprxy.dll
regsvr32.exe /s softpub.dll
regsvr32.exe /s wintrust.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s gpkcsp.dll
regsvr32.exe /s sccbase.dll
regsvr32.exe /s slbcsp.dll
regsvr32.exe /s cryptdlg.dll
regsvr32.exe /s oleaut32.dll
regsvr32.exe /s ole32.dll
regsvr32.exe /s shell32.dll
regsvr32.exe /s initpki.dll
regsvr32.exe /s wuapi.dll
regsvr32.exe /s wuaueng.dll
regsvr32.exe /s wuaueng1.dll
regsvr32.exe /s wucltui.dll
regsvr32.exe /s wups.dll
regsvr32.exe /s wups2.dll
regsvr32.exe /s wuweb.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s qmgrprxy.dll
regsvr32.exe /s wucltux.dll
regsvr32.exe /s muweb.dll
regsvr32.exe /s wuwebv.dll
regsvr32 /s wudriver.dll
netsh winsock reset
netsh winhttp reset proxy

net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
bitsadmin.exe /reset /allusers

THANKS SHAWN BRINK (www.sevenforums.com) for putting this together.

You then proceed to install, ONE BY ONE, and restarting after each one, the following 3 UPDATES from Microsoft.


You need to select the right one for your Windows 7 (32Bit or 64Bit)
I have shared this information already with 9 different Flex users with the same problem.
I went as far as putting all the necessary files in a convenient ZIP file I placed in Dropbox.
That is the link to the ZIP file, or you can download from the links above directly from Microsoft (a bit longer but the safer thing to do... never trust downloads from strangers, including me, :) ).
Remember to RESTART Windows after each one of those 3 updates. Follow the order from smaller number to bigger, top to bottom, in the list above.

After that last restart you can run Windows Update and it should find a ton of updates for your system.

** Make sure to change UPDATE setting so it will not automatically install anything.**

IMPORTANT: There is a particular update (KB971033) that will check if you Windows is Genuine. This is one the the updates at the bottom of the list. If you selected Automatic Updates this one will get installed and render your Windows inactivated, stopping further updates and the possibility to install DAX. It is imperative that you do not install it. Even if you have a valid copy of Windows 7 with your valid Key this update is known to break windows and you will have to go through a lot of trouble to get back to Windows activated (either legally calling Microsoft tech support... good luck with that, or illegally running a boot loader... dangerous as many are loaded with nasty viruses and trojans)... so just do not install that update.

If you have a lot of updates, including drivers and other things I would select a smaller group of updates, like 10 or 15 and get those going. Start from the bottom up.
If you have around 200 updates it will be 1.5 GB of data and it could take several hours. Be aware of that if you happen to be on a metered (opposite of unlimited) connection.

Good luck!

No hay comentarios:

Publicar un comentario