I have the UpdateType set to DoNothing. If a user checks for an update and then does not download or install it, and the UpdatePath is changed or a new .wyc is deployed to the old path, the next time ForceCheckForUpdate(true) is called, and the path to the server files begins with HTTP, wyUpdate seems to try to append to the .wys file in the tempDirectory and then old update information is returned.
In the wyUpdate code (2.6.18), in frmMain.AutomaticUpdate.cs, in the "void UpdateHelper_RequestReceived(object sender, UpdateAction a, UpdateStep s)" method, under "//TODO: perhaps delete old crufty files", I added...
string tempServerFile; if (!string.IsNullOrEmpty(serverOverwrite)) tempServerFile = Path.Combine(tempDirectory, Path.GetFileName(serverOverwrite)); else tempServerFile = Path.Combine(tempDirectory, Path.GetFileName(update.ServerFileSites[0]));
if (File.Exists(tempServerFile)) File.Delete(tempServerFile);
Do you see any problem with this? Is there an easier or better way to handle this?