This project has moved and is read-only. For the latest updates, please go here.


DownloadUpdateDialogueLoad() - String.Format Issue and Correction


In the DownloadDialogueLoad() function, the library uses the following logic:
_tempPath = string.Format(@"{0}{1}", Path.GetTempPath(), GetFileName(_downloadURL));

This creates a problem in that under my environment and using a 64bit application, the _tempPath is created incorrectly, causing it to become something like:

"C:\Users\Username\AppData\Local\Temp\Setup.exe\"; filename*=UTF-8'Setup.exe'

Which fails to download because it is not a valid path.
This was easily corrected just by using Path.Combine.

_tempPath = Path.Combine(Path.GetTempPath(), Path.GetFileName(_downloadURL));