diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-20 20:33:05 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-20 20:33:05 -0500 |
| commit | 767cdc1f6f6a63ce997fc9476911e2c361f9d402 (patch) | |
| tree | 49add55976f895441167c66cfa95e5c7688d18ce /MediaBrowser.UI.Uninstall/Program.cs | |
| parent | 845554722efaed872948a9e0f7202e3ef52f1b6e (diff) | |
Pushing missing changes
Diffstat (limited to 'MediaBrowser.UI.Uninstall/Program.cs')
| -rw-r--r-- | MediaBrowser.UI.Uninstall/Program.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/MediaBrowser.UI.Uninstall/Program.cs b/MediaBrowser.UI.Uninstall/Program.cs new file mode 100644 index 000000000..9110a3eaf --- /dev/null +++ b/MediaBrowser.UI.Uninstall/Program.cs @@ -0,0 +1,30 @@ +using MediaBrowser.Common.Updates; +using System; +using System.IO; + +namespace MediaBrowser.UI.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); + } + } + } +} |
