fixed update bug
This commit is contained in:
parent
a210532acf
commit
b6e463f704
1 changed files with 13 additions and 6 deletions
|
@ -47,6 +47,8 @@ namespace Update
|
|||
{
|
||||
|
||||
foreach (var file in archive.Entries)
|
||||
{
|
||||
try
|
||||
{
|
||||
var completeFileName = Path.Combine(destinationDirectoryName, file.FullName);
|
||||
var directory = Path.GetDirectoryName(completeFileName);
|
||||
|
@ -57,6 +59,11 @@ namespace Update
|
|||
if (file.Name != "")
|
||||
file.ExtractToFile(completeFileName, true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue