jellyfin-server/MediaBrowser.Server.Uninstall/Program.cs

31 lines
910 B
C#
Raw Normal View History

2013-02-22 04:23:06 +00:00
using MediaBrowser.ClickOnce;
2013-02-21 01:33:05 +00:00
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);
}
}
}
}