jrsoftware/issrc — pull request #12 by martijnlaan (2012-10-30 09:03:03+00:00)
Title: Merge Ahausladen webdownload - download functionality

This is a pull request for the (not yet finished) ahausladen-webdownload branch. This branch is based on the work by @ahausladen at ashausladen/issrc. See 37c9728c6c4d6751ac51d9f587f95aaf50a884e1 and 71c32ede4d7de6732b9c28d24e3b60b4b11b807c for its documentation. Comments/ideas are welcome.

Did some cleanup work on it but got stalled:

-Tried called DownloadWebFile but its Cancel button didn't work very well and throws up VCL thread synchronization errors, at least under D2. I hate those. Also thinking calling this function from [Code] should be limited to from within PrepareToInstall events.

-The code is WinInet based, but WinInet doesn't work in services, so the download functionality doesn't work if Setup is called by a service. Not sure how much of a problem this is or isn't. Using WinHttp instead would work, but it has other limitations. See http://msdn.microsoft.com/en-us/library/windows/desktop/hh227297%28v=vs.85%29.aspx