use safe copy file on single file updating
This commit is contained in:
@@ -190,7 +190,7 @@ public class UpdateClient(string updateUrl, AppVersion currentVersion, AppChanne
|
||||
Utils.CopyFiles(dataPathDir, destDir);
|
||||
}
|
||||
else if (package.UpdateType == UpdateType.File)
|
||||
File.Copy(dataPath, localInstallPath);
|
||||
Utils.CopyFile(new FileInfo(dataPath), new FileInfo(localInstallPath));
|
||||
RaiseStatusChanged(UpdateStatus.Copying, UpdateStatusEvent.PostEvent);
|
||||
|
||||
// Delete Package
|
||||
|
||||
Reference in New Issue
Block a user