sábado, 15 de octubre de 2016

SmartSDR DAX no funciona y todo es culpa del Windows 7 UPDATE!

Así que has probado Windows 10, te has pasado horas tratando de bloquear toda la "telemetría" que está constantemente compartiendo TU información con Microsoft, intentando al menos, proteger un poco tu privacidad. Un poco alarmante que los valores por defecto de Windows 10 sean permitir que todos los dispositivos, incluida la cámara, sean accesibles por Microsoft sin restricciones.


Parece que ya has terminado, sólo para descubrir que ahora Windows 10 hace las actualizaciones por su cuenta, cuando le da la gana. No sólo eso, el día que actualiza, tienes que repasar todas las opciones de privacidad de nuevo.

El martes pasado, después del "Microsoft Update Tuesdays" tu impresora ha dejado de funcionar, o algún otro dispositivo, que de alguna manera no se mantiene al día con las constantes actualizaciones de Microsoft, ya no funciona .... Estoy seguro que tu Windows 10 es super seguro .... lamentablemente no puedes imprimir o utilizar el ordenador como quieres ..

Puede que una actualización rompa tu ordenador y requieras la reinstalación de todo!
O incluso peor, podría romper tu Flex Radio SmartSDR!! Imperdonable.

No te preocupes, le está sucediendo a una gran cantidad de personas que probaron el Windows 10. Una gran mayoría se dan cuenta que no tienen que conformarse con una experiencia de segundo grado. Puedes y debes volver a un sistema más robusto como Windows 7 (o mejor aún, Linux, pero eso es todo un post aparte).

Totalmente convencido de que Windows 10 es peor que un virus, lo eliminaste y has vuelto a instalar Windows 7 y ahora la puñetera actualización de Windows no está funcionando. Simplemente se queda horas y horas en busca de actualizaciones y no encuentra ninguna.

Este es un problema con Windows 7 y el servicio de actualización. Lo más probable es que tu instalación de Windows 7 necesita alrededor de 150 a 250 actualizaciones. Seguramente los ficheros de instalación de Windows 7 que usaste eran demasiado viejos (incluso si tienen el Service Pack 1) y las  actualizaciones no funcionan. 

Y lo que es peor, al no actualizarse, muchos Drivers que van firmados contra una llave criptográfica que se descarga en uno de esos UPDATES, no se pueden instalar, entre ellos el driver DAX de SmartSDR.

No desesperes, hay una solución.

Lo primero que necesitas es detener el servicio BITS, detener el servicio de Actualización y borrar la memoria caché de actualizaciones y la historia de descargas. Esta página, en inglés, describe como hacerlo. 

http://www.sevenforums.com/tutorials/91738-windows-update-reset.html

Son muchos pasos y ii consejo es que descargues el archivo BAT proporcionado en ese sitio (el tercero) y recordar ejecutarlo como administrador: ve a la carpeta donde se descargó y haz clic derecho y selecciona "Ejecutar como administrador"

Si no confías en un archivo BAT descargado de la red, [realmente no deberías confiar en gran parte de lo que te puedes descargar gratis en internet], puedes abrir el archivo con el NOTEPAD y revisar el contenido. Dentro encontrarás todos los comandos que debes ejecutar. 

Este es un buen momento para asegurate de cambiar las opciones de las actualizaciones de Windows para que NO se instalen automáticamente.

A continuación  descarga estas actualizaciones de Microsoft e instálalas una a una reiniciando después de la instalación de cada una. 

https://support.microsoft.com/en-us/kb/3102810
https://support.microsoft.com/en-us/kb/3112343
https://support.microsoft.com/en-us/kb/3138612


Elige la versión correcta para tu sistema (32Bits o 64Bits)

Si tu versión de Windows es la de 64 Bits te puedes ahorrar mucho tiempo ya que he creado un fichero ZIP con todos los ficheros BAT de la página de sevenforums.com y los 3 ficheros de actualización.

Puedes descargarte el fichero ZIP desde este enlace de Dropbox.

Recuerda que tienes que reiniciar después de cada uno de esas actualizaciones manuales.

Recuerda no dejar que Windows instale las actualizaciones automáticamente. Esto es muy importante.

De lo contrario te puede instalar la actualización KB971033 que desactiva las versiones no genuinas de Windows. En muchos casos desactiva versiones legítimas. Si instalas esta actualización tendrás que volver atrás restaurando Windows 7 a un punto de restauración anterior a esa instalación, o tendrás que activar windows con un loader. Cuidado con los Loaders que muchas veces traen trojanos o virus.

Una vez hayas realizado esas tres actualizaciones manuales puedes buscar las actualizaciones de Windows y no te sorprenda encontrar de 150 a 250.

Es un proceso largo, así que empieza antes de irte a dormir y con suerte cuando te levantes ha terminado.

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.

http://www.sevenforums.com/tutorials/91738-windows-update-reset.html

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
:bits
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
:end1
cls
echo.
echo Failed to reset Windows Update due to bits service failing to stop.
echo.
pause
goto Start

:loop2
set w=0
:wuauserv
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
:end2
cls
echo.
echo Failed to reset Windows Update due to wuauserv service failing to stop.
echo.
pause
goto Start


:loop3
set app=0
:appidsvc
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
:end3
cls
echo.
echo Failed to reset Windows Update due to appidsvc service failing to stop.
echo.
pause
goto Start

:loop4
set c=0
:cryptsvc
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
:end4
cls
echo.
echo Failed to reset Windows Update due to cryptsvc service failing to stop.
echo.
pause
goto Start
:Reset
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
)

sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
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

:Start
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.

https://support.microsoft.com/en-us/kb/3102810
https://support.microsoft.com/en-us/kb/3112343
https://support.microsoft.com/en-us/kb/3138612

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!