I have attempted to install PostgreSQL 9.4 and 8.4 multiple times and it is failing no matter what I have tried. I am attempting to install on Windows 7 SP1 x64. After each
Make sure NETWORK SERVICE has read/write permissions on that folder, the installation was failing for me until I did this.
NETWORK SERVICE