diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 17:31:57 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 17:31:57 -0500 |
| commit | 637319e1ce58af3892a865e17bdd52d95a0ff1c1 (patch) | |
| tree | 6dbe7fa0b926cca289194c711ffd9d2697203abe /MediaBrowser.Installer/MainWindow.xaml.cs | |
| parent | 2e4db7554041ecf481d3a38656fccc309e13eb5b (diff) | |
| parent | b3664edf506d1887f1d0c14db745f644537628e7 (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Installer/MainWindow.xaml.cs')
| -rw-r--r-- | MediaBrowser.Installer/MainWindow.xaml.cs | 15 |
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> |
