From 767cdc1f6f6a63ce997fc9476911e2c361f9d402 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Wed, 20 Feb 2013 20:33:05 -0500 Subject: Pushing missing changes --- MediaBrowser.Server.Uninstall/Program.cs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 MediaBrowser.Server.Uninstall/Program.cs (limited to 'MediaBrowser.Server.Uninstall/Program.cs') diff --git a/MediaBrowser.Server.Uninstall/Program.cs b/MediaBrowser.Server.Uninstall/Program.cs new file mode 100644 index 0000000000..13f4e90f5a --- /dev/null +++ b/MediaBrowser.Server.Uninstall/Program.cs @@ -0,0 +1,30 @@ +using MediaBrowser.Common.Updates; +using System; +using System.IO; + +namespace MediaBrowser.Server.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); + } + } + } +} -- cgit v1.2.3