location = 'http://www.example.com/files/installer.exe'
You need a server-side fix: generate a valid
Content-Length header. Web servers typically do it automatically. If yours doesn't, that possibly means you have a server-side script that sends the file but does not report its size.