aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Installer/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-02-23 17:16:19 -0500
committerEric Reed <ebr@mediabrowser3.com>2013-02-23 17:16:19 -0500
commitb3664edf506d1887f1d0c14db745f644537628e7 (patch)
tree1f90c85c783057dc5b9663c9e9064eadfa7d9be9 /MediaBrowser.Installer/MainWindow.xaml.cs
parent934e5c3aa6805069580ab4eb36e263bdfcd25e88 (diff)
Installer updates and partial uninstaller
Diffstat (limited to 'MediaBrowser.Installer/MainWindow.xaml.cs')
-rw-r--r--MediaBrowser.Installer/MainWindow.xaml.cs15
1 files changed, 10 insertions, 5 deletions
diff --git a/MediaBrowser.Installer/MainWindow.xaml.cs b/MediaBrowser.Installer/MainWindow.xaml.cs
index 5a96c1afb..8924ddb5d 100644
--- a/MediaBrowser.Installer/MainWindow.xaml.cs
+++ b/MediaBrowser.Installer/MainWindow.xaml.cs
@@ -204,11 +204,16 @@ namespace MediaBrowser.Installer
var shell = new WshShell();
var startMenu = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu),"Media Browser");
if (!Directory.Exists(startMenu)) Directory.CreateDirectory(startMenu);
- var myShortcut = (IWshShortcut)shell.CreateShortcut(Path.Combine(startMenu, "Media Browser Server.lnk"));
- myShortcut.TargetPath = targetExe;
- myShortcut.Description = "Run " + FriendlyName;
- myShortcut.Save();
-
+ var product = (IWshShortcut)shell.CreateShortcut(Path.Combine(startMenu, FriendlyName+".lnk"));
+ product.TargetPath = targetExe;
+ product.Description = "Run " + FriendlyName;
+ product.Save();
+
+ var uninstall = (IWshShortcut)shell.CreateShortcut(Path.Combine(startMenu, "Uninstall " + FriendlyName + ".lnk"));
+ uninstall.TargetPath = Path.Combine(Path.GetDirectoryName(targetExe),"MediaBrowser.Uninstall.exe "+(PackageName == "MBServer" ? "server" : "mbt"));
+ uninstall.Description = "Uninstall " + FriendlyName;
+ uninstall.Save();
+
}
/// <summary>