diff options
Diffstat (limited to 'MediaBrowser.Installer')
| -rw-r--r-- | MediaBrowser.Installer/MainWindow.xaml.cs | 15 | ||||
| -rw-r--r-- | MediaBrowser.Installer/MediaBrowser.Installer.csproj | 2 |
2 files changed, 11 insertions, 6 deletions
diff --git a/MediaBrowser.Installer/MainWindow.xaml.cs b/MediaBrowser.Installer/MainWindow.xaml.cs index 5a96c1afbc..8924ddb5d3 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> diff --git a/MediaBrowser.Installer/MediaBrowser.Installer.csproj b/MediaBrowser.Installer/MediaBrowser.Installer.csproj index 3662c71c3b..036340be7e 100644 --- a/MediaBrowser.Installer/MediaBrowser.Installer.csproj +++ b/MediaBrowser.Installer/MediaBrowser.Installer.csproj @@ -29,7 +29,7 @@ <PublisherName>Media Browser Team</PublisherName> <SuiteName>Media Browser</SuiteName> <TrustUrlParameters>true</TrustUrlParameters> - <ApplicationRevision>5</ApplicationRevision> + <ApplicationRevision>8</ApplicationRevision> <ApplicationVersion>0.1.1.%2a</ApplicationVersion> <UseApplicationTrust>false</UseApplicationTrust> <PublishWizardCompleted>true</PublishWizardCompleted> |
