mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-01 22:36:33 +01:00
Pushing missing changes
This commit is contained in:
30
MediaBrowser.Server.Uninstall/Program.cs
Normal file
30
MediaBrowser.Server.Uninstall/Program.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using MediaBrowser.Common.Updates;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace MediaBrowser.Server.Uninstall
|
||||
{
|
||||
/// <summary>
|
||||
/// Class Program
|
||||
/// </summary>
|
||||
class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the entry point of the application.
|
||||
/// </summary>
|
||||
/// <param name="args">The args.</param>
|
||||
static void Main(string[] args)
|
||||
{
|
||||
new ClickOnceHelper(Globals.PublisherName, Globals.ProductName, Globals.SuiteName).Uninstall();
|
||||
|
||||
// Delete all files from publisher folder and folder itself on uninstall
|
||||
|
||||
var publisherFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), Globals.PublisherName);
|
||||
|
||||
if (Directory.Exists(publisherFolder))
|
||||
{
|
||||
Directory.Delete(publisherFolder, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user