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(); + } /// diff --git a/MediaBrowser.Installer/MediaBrowser.Installer.csproj b/MediaBrowser.Installer/MediaBrowser.Installer.csproj index b46075df19..036340be7e 100644 --- a/MediaBrowser.Installer/MediaBrowser.Installer.csproj +++ b/MediaBrowser.Installer/MediaBrowser.Installer.csproj @@ -25,11 +25,11 @@ false true http://community.mediabrowser.tv - Media Browser Server Installer + Media Browser Installer Media Browser Team Media Browser true - 4 + 8 0.1.1.%2a false true diff --git a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj index 0a364756ae..b1c57949c8 100644 --- a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj +++ b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj @@ -413,6 +413,12 @@ xcopy "$(SolutionDir)\packages\System.Data.SQLite.1.0.84.0\content\net40\x86\SQLite.Interop.dll" "$(TargetDir)" /y if $(ConfigurationName) == Release ( +mkdir "$(SolutionDir)..\Deploy\Server\System" +xcopy "$(TargetDir)$(TargetFileName)" "$(SolutionDir)..\Deploy\Server\System\" /y +xcopy "$(SolutionDir)Mediabrowser.Uninstaller\bin\Release\MediaBrowser.Uninstaller.exe" "$(SolutionDir)..\Deploy\Server\System\" /y + +xcopy "$(TargetDir)$(TargetFileName).config" "$(SolutionDir)..\Deploy\Server\System\" /y + xcopy "$(TargetDir)*.dll" "$(SolutionDir)..\Deploy\Server\System" /y mkdir "$(SolutionDir)..\Deploy\Server\System\x64" xcopy "$(TargetDir)x64" "$(SolutionDir)..\Deploy\Server\System\x64" /y diff --git a/MediaBrowser.Uninstaller/App.config b/MediaBrowser.Uninstaller/App.config new file mode 100644 index 0000000000..8e15646352 --- /dev/null +++ b/MediaBrowser.Uninstaller/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/MediaBrowser.Uninstaller/App.xaml b/MediaBrowser.Uninstaller/App.xaml new file mode 100644 index 0000000000..8d0735d423 --- /dev/null +++ b/MediaBrowser.Uninstaller/App.xaml @@ -0,0 +1,8 @@ + + + + + diff --git a/MediaBrowser.Uninstaller/App.xaml.cs b/MediaBrowser.Uninstaller/App.xaml.cs new file mode 100644 index 0000000000..b38e27e1a9 --- /dev/null +++ b/MediaBrowser.Uninstaller/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace MediaBrowser.Uninstaller +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/MediaBrowser.Uninstaller/MainWindow.xaml b/MediaBrowser.Uninstaller/MainWindow.xaml new file mode 100644 index 0000000000..54d8f961aa --- /dev/null +++ b/MediaBrowser.Uninstaller/MainWindow.xaml @@ -0,0 +1,16 @@ + + + +