After so many years, there still is no solution to this problem online. So, I had to try to fix it on my own.
Two things worked for me:
1. Manually delete all stuff related to BattleNet from my computer (registry and disk) then try to reinstall:
Full of wisdom, Blizzard spreads its crap all over the computer:
- c:\ProgramData\Battle.net\
- c:\ProgramData\Battle.net_components\
- c:\Users\All Users\Battle.net\
- c:\Users\%User Name%\AppData\Local\Blizzard Entertainment\
- c:\Users\%User Name%\Documents\StarCraft II\
- c:\Program Files (x86)\Battle.net\
To delete the registry use this REG file:
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Blizzard Entertainment]
[-HKEY_CURRENT_USER\Software\Blizzard Entertainment]
2. Actually this is easier – When the installer is stuck, look for a process called Agent.exe. Kill it. The installer will continue immediately. I figured this out, by looking into the log files.
3. In case the installation is corrupted, try this “DOS” commands:
net stop winmgmt
winmgmt /resetrepository
net start winmgmt