diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-27 16:07:51 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-27 16:07:51 -0500 |
| commit | 4d71fc1d42fb26d759f2691ec9f26c4273b81688 (patch) | |
| tree | 1747ec668aaf3e60d4ddc82a3915dbace8d44dcc /MediaBrowser.ServerApplication | |
| parent | ff4ee7ab9c41f9756e1db6f25f701c8ca69cecf2 (diff) | |
remvoed CO uninstall project
Diffstat (limited to 'MediaBrowser.ServerApplication')
| -rw-r--r-- | MediaBrowser.ServerApplication/App.xaml.cs | 46 | ||||
| -rw-r--r-- | MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj | 4 |
2 files changed, 4 insertions, 46 deletions
diff --git a/MediaBrowser.ServerApplication/App.xaml.cs b/MediaBrowser.ServerApplication/App.xaml.cs index 81ea869b83..e9baa96e7f 100644 --- a/MediaBrowser.ServerApplication/App.xaml.cs +++ b/MediaBrowser.ServerApplication/App.xaml.cs @@ -3,11 +3,9 @@ using MediaBrowser.Common.Kernel; using MediaBrowser.Controller; using MediaBrowser.Controller.Entities; using MediaBrowser.Model.Logging; -using MediaBrowser.Server.Uninstall; using Microsoft.Win32; using System; using System.Diagnostics; -using System.Linq; using System.Net.Cache; using System.Threading; using System.Threading.Tasks; @@ -79,33 +77,6 @@ namespace MediaBrowser.ServerApplication } /// <summary> - /// Gets the name of the product. - /// </summary> - /// <value>The name of the product.</value> - protected string ProductName - { - get { return Globals.ProductName; } - } - - /// <summary> - /// Gets the name of the publisher. - /// </summary> - /// <value>The name of the publisher.</value> - protected string PublisherName - { - get { return Globals.PublisherName; } - } - - /// <summary> - /// Gets the name of the suite. - /// </summary> - /// <value>The name of the suite.</value> - protected string SuiteName - { - get { return Globals.SuiteName; } - } - - /// <summary> /// Gets the name of the uninstaller file. /// </summary> /// <value>The name of the uninstaller file.</value> @@ -212,7 +183,7 @@ namespace MediaBrowser.ServerApplication { Kernel.ConfigurationUpdated += Kernel_ConfigurationUpdated; - ConfigureClickOnceStartup(); + ConfigureAutoRun(); }); } @@ -225,25 +196,16 @@ namespace MediaBrowser.ServerApplication { if (!LastRunAtStartupValue.HasValue || LastRunAtStartupValue.Value != Kernel.Configuration.RunAtStartup) { - ConfigureClickOnceStartup(); + ConfigureAutoRun(); } } /// <summary> /// Configures the click once startup. /// </summary> - private void ConfigureClickOnceStartup() + private void ConfigureAutoRun() { - try - { - ClickOnceHelper.ConfigureClickOnceStartupIfInstalled(PublisherName, ProductName, SuiteName, Kernel.Configuration.RunAtStartup, UninstallerFileName); - - LastRunAtStartupValue = Kernel.Configuration.RunAtStartup; - } - catch (Exception ex) - { - Logger.ErrorException("Error configuring ClickOnce", ex); - } + CompositionRoot.ConfigureAutoRunAtStartup(Kernel.Configuration.RunAtStartup); } /// <summary> diff --git a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj index 51ee731f07..30f9565025 100644 --- a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj +++ b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj @@ -286,10 +286,6 @@ <Project>{2e781478-814d-4a48-9d80-bff206441a65}</Project> <Name>MediaBrowser.Server.Implementations</Name> </ProjectReference> - <ProjectReference Include="..\MediaBrowser.Server.Uninstall\MediaBrowser.Server.Uninstall.csproj"> - <Project>{5443422f-9548-417a-90dd-2fc91f2b5999}</Project> - <Name>MediaBrowser.Server.Uninstall</Name> - </ProjectReference> </ItemGroup> <ItemGroup> <Resource Include="Resources\Images\icon.ico" /> |
