diff options
| author | Eric Reed <ebr@mediabrowser3.com> | 2013-03-02 12:41:00 -0500 |
|---|---|---|
| committer | Eric Reed <ebr@mediabrowser3.com> | 2013-03-02 12:41:00 -0500 |
| commit | dd5bb6890eed6643cae15fac8b5adc1372baa04a (patch) | |
| tree | fc9dc30c33626307220081e4fcb0da89c9855ab6 | |
| parent | cb17eca3a4f2153289c5b18b7cc8d6c16770a3a0 (diff) | |
Remove archive after extraction
| -rw-r--r-- | MediaBrowser.Installer/MainWindow.xaml.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.Installer/MainWindow.xaml.cs b/MediaBrowser.Installer/MainWindow.xaml.cs index 6f64ded86..a85a0cb9a 100644 --- a/MediaBrowser.Installer/MainWindow.xaml.cs +++ b/MediaBrowser.Installer/MainWindow.xaml.cs @@ -212,6 +212,19 @@ namespace MediaBrowser.Installer try { ExtractPackage(archive); + // We're done with it so delete it (this is necessary for update operations) + try + { + File.Delete(archive); + } + catch (FileNotFoundException) + { + } + catch (Exception e) + { + + SystemClose("Error Removing Archive - " + e.GetType().FullName + "\n\n" + e.Message); + } } catch (Exception e) { |
