removed unused imports
This commit is contained in:
parent
28843b42ad
commit
9669636a17
|
@ -90,13 +90,13 @@
|
||||||
<DependentUpon>App.xaml</DependentUpon>
|
<DependentUpon>App.xaml</DependentUpon>
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Objects\MD5File.cs" />
|
<Compile Include="Models\MD5File.cs" />
|
||||||
<Compile Include="Utils\DownloadUtil.cs" />
|
<Compile Include="Utils\DownloadUtil.cs" />
|
||||||
<Compile Include="Utils\MD5Util.cs" />
|
<Compile Include="Utils\MD5Util.cs" />
|
||||||
<Compile Include="Utils\ProcessUtil.cs" />
|
<Compile Include="Utils\ProcessUtil.cs" />
|
||||||
<Compile Include="Utils\RegistryUtil.cs" />
|
<Compile Include="Utils\RegistryUtil.cs" />
|
||||||
<Compile Include="Utils\ReleaseStreamUtil.cs" />
|
<Compile Include="Utils\ReleaseStreamUtil.cs" />
|
||||||
<Compile Include="Objects\UpdateState.cs" />
|
<Compile Include="Enums\UpdateState.cs" />
|
||||||
<Compile Include="Utils\OsuUtil.cs" />
|
<Compile Include="Utils\OsuUtil.cs" />
|
||||||
<Compile Include="MainWindow.xaml.cs">
|
<Compile Include="MainWindow.xaml.cs">
|
||||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||||
|
|
|
@ -5,20 +5,15 @@ using System.Threading.Tasks;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Navigation;
|
using System.Windows.Navigation;
|
||||||
using System.Windows.Shapes;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using ModernWpf.Controls;
|
using ModernWpf.Controls;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Media;
|
using System.Media;
|
||||||
using System.Runtime.InteropServices.ComTypes;
|
using Path = System.IO.Path;
|
||||||
using Path = System.Windows.Shapes.Path;
|
|
||||||
using File = System.IO.File;
|
using File = System.IO.File;
|
||||||
using EZPPClient_Installer.Utils;
|
using EZPPClient_Installer.Utils;
|
||||||
using Microsoft.Win32;
|
|
||||||
using System.Windows.Controls;
|
|
||||||
using System.Threading;
|
|
||||||
using IWshRuntimeLibrary;
|
using IWshRuntimeLibrary;
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
@ -417,18 +412,18 @@ namespace EZPPClient_Installer
|
||||||
if (type.Equals("Install"))
|
if (type.Equals("Install"))
|
||||||
{
|
{
|
||||||
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
|
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
|
||||||
string desktopLinkFile = System.IO.Path.Combine(desktopPath, "Start EZPPClient.lnk");
|
string desktopLinkFile = Path.Combine(desktopPath, "Start EZPPClient.lnk");
|
||||||
|
|
||||||
string startMenuPath = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
|
string startMenuPath = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
|
||||||
string startMenuPathPrograms = System.IO.Path.Combine(startMenuPath, "Programs");
|
string startMenuPathPrograms = Path.Combine(startMenuPath, "Programs");
|
||||||
string startMenuLinkFile = System.IO.Path.Combine(startMenuPathPrograms, "Start EZPPClient.lnk");
|
string startMenuLinkFile = Path.Combine(startMenuPathPrograms, "Start EZPPClient.lnk");
|
||||||
|
|
||||||
if (!File.Exists(desktopLinkFile))
|
if (!File.Exists(desktopLinkFile))
|
||||||
{
|
{
|
||||||
WshShell shell = new WshShell();
|
WshShell shell = new WshShell();
|
||||||
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(desktopLinkFile);
|
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(desktopLinkFile);
|
||||||
shortcut.Description = $"Starts the EZPPClient";
|
shortcut.Description = $"Starts the EZPPClient";
|
||||||
shortcut.TargetPath = System.IO.Path.Combine(EZPPFolder, "EZPPClient.exe");
|
shortcut.TargetPath = Path.Combine(EZPPFolder, "EZPPClient.exe");
|
||||||
shortcut.Save();
|
shortcut.Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -437,7 +432,7 @@ namespace EZPPClient_Installer
|
||||||
WshShell shell = new WshShell();
|
WshShell shell = new WshShell();
|
||||||
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(startMenuLinkFile);
|
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(startMenuLinkFile);
|
||||||
shortcut.Description = $"Starts the EZPPClient";
|
shortcut.Description = $"Starts the EZPPClient";
|
||||||
shortcut.TargetPath = System.IO.Path.Combine(EZPPFolder, "EZPPClient.exe");
|
shortcut.TargetPath = Path.Combine(EZPPFolder, "EZPPClient.exe");
|
||||||
shortcut.Save();
|
shortcut.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -598,13 +593,13 @@ namespace EZPPClient_Installer
|
||||||
|
|
||||||
|
|
||||||
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
|
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
|
||||||
string linkFile = System.IO.Path.Combine(desktopPath, "Start EZPPClient.lnk");
|
string linkFile = Path.Combine(desktopPath, "Start EZPPClient.lnk");
|
||||||
if (File.Exists(linkFile))
|
if (File.Exists(linkFile))
|
||||||
File.Delete(linkFile);
|
File.Delete(linkFile);
|
||||||
|
|
||||||
string startMenuPath = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
|
string startMenuPath = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
|
||||||
string startMenuPathPrograms = System.IO.Path.Combine(startMenuPath, "Programs");
|
string startMenuPathPrograms = Path.Combine(startMenuPath, "Programs");
|
||||||
string startMenuLinkFile = System.IO.Path.Combine(startMenuPathPrograms, "Start EZPPClient.lnk");
|
string startMenuLinkFile = Path.Combine(startMenuPathPrograms, "Start EZPPClient.lnk");
|
||||||
if (File.Exists(startMenuLinkFile))
|
if (File.Exists(startMenuLinkFile))
|
||||||
File.Delete(startMenuLinkFile);
|
File.Delete(startMenuLinkFile);
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,7 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Security.Cryptography;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace EZPPClient_Installer
|
namespace EZPPClient_Installer
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace EZPPClient_Installer
|
namespace EZPPClient_Installer
|
||||||
{
|
{
|
||||||
class MD5Util
|
class MD5Util
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
using System;
|
using Path = System.IO.Path;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Path = System.IO.Path;
|
|
||||||
using File = System.IO.File;
|
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
|
|
||||||
namespace EZPPClient_Installer
|
namespace EZPPClient_Installer
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace EZPPClient_Installer
|
namespace EZPPClient_Installer
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace EZPPClient_Installer.Utils
|
namespace EZPPClient_Installer.Utils
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
using ModernWpf.Controls;
|
using ModernWpf.Controls;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace EZPPClient_Installer
|
namespace EZPPClient_Installer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user