only cleanup if package is zip type
This commit is contained in:
@@ -188,8 +188,11 @@ public class UpdateClient(string updateUrl, AppVersion currentVersion, Channels
|
||||
|
||||
// Delete Package
|
||||
RaiseStatusChanged(UpdateStatus.Cleanup, UpdateStatusEvent.PreEvent);
|
||||
if (package.Type == PackageType.Zip)
|
||||
{
|
||||
File.Delete(packagePath);
|
||||
Directory.Delete(dataPath, true);
|
||||
}
|
||||
RaiseStatusChanged(UpdateStatus.Cleanup, UpdateStatusEvent.PostEvent);
|
||||
|
||||
// Finish
|
||||
|
||||
Reference in New Issue
Block a user