I had the same problem on localhost and noticed that it was due to internet connection.
When computer not connected to internet, installation stops at 45%.
When computer connected to internet, installation complete.
So, make sure your computer is connected to internet while installing PS 1.7.0.0 on localhost.