using MediaBrowser.Common.Updates;
using System;
using System.IO;
namespace MediaBrowser.UI.Uninstall
{
///
/// Class Program
///
class Program
{
///
/// Defines the entry point of the application.
///
/// The args.
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);
}
}
}
}