diff --git a/EZPPClient Installer/EZPPClient Installer.csproj b/EZPPClient Installer/EZPPClient Installer.csproj
index af4d409..9c01b47 100644
--- a/EZPPClient Installer/EZPPClient Installer.csproj
+++ b/EZPPClient Installer/EZPPClient Installer.csproj
@@ -90,13 +90,13 @@
App.xaml
Code
-
+
-
+
MainWindow.xaml
diff --git a/EZPPClient Installer/MainWindow.xaml.cs b/EZPPClient Installer/MainWindow.xaml.cs
index e9ffb15..e6ab2d2 100644
--- a/EZPPClient Installer/MainWindow.xaml.cs
+++ b/EZPPClient Installer/MainWindow.xaml.cs
@@ -5,20 +5,15 @@ using System.Threading.Tasks;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Navigation;
-using System.Windows.Shapes;
using System.IO;
using System.Net;
using System.Globalization;
using ModernWpf.Controls;
using System.Windows.Forms;
using System.Media;
-using System.Runtime.InteropServices.ComTypes;
-using Path = System.Windows.Shapes.Path;
+using Path = System.IO.Path;
using File = System.IO.File;
using EZPPClient_Installer.Utils;
-using Microsoft.Win32;
-using System.Windows.Controls;
-using System.Threading;
using IWshRuntimeLibrary;
#if DEBUG
@@ -417,18 +412,18 @@ namespace EZPPClient_Installer
if (type.Equals("Install"))
{
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 startMenuPathPrograms = System.IO.Path.Combine(startMenuPath, "Programs");
- string startMenuLinkFile = System.IO.Path.Combine(startMenuPathPrograms, "Start EZPPClient.lnk");
+ string startMenuPathPrograms = Path.Combine(startMenuPath, "Programs");
+ string startMenuLinkFile = Path.Combine(startMenuPathPrograms, "Start EZPPClient.lnk");
if (!File.Exists(desktopLinkFile))
{
WshShell shell = new WshShell();
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(desktopLinkFile);
shortcut.Description = $"Starts the EZPPClient";
- shortcut.TargetPath = System.IO.Path.Combine(EZPPFolder, "EZPPClient.exe");
+ shortcut.TargetPath = Path.Combine(EZPPFolder, "EZPPClient.exe");
shortcut.Save();
}
@@ -437,7 +432,7 @@ namespace EZPPClient_Installer
WshShell shell = new WshShell();
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(startMenuLinkFile);
shortcut.Description = $"Starts the EZPPClient";
- shortcut.TargetPath = System.IO.Path.Combine(EZPPFolder, "EZPPClient.exe");
+ shortcut.TargetPath = Path.Combine(EZPPFolder, "EZPPClient.exe");
shortcut.Save();
}
}
@@ -598,13 +593,13 @@ namespace EZPPClient_Installer
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))
File.Delete(linkFile);
string startMenuPath = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
- string startMenuPathPrograms = System.IO.Path.Combine(startMenuPath, "Programs");
- string startMenuLinkFile = System.IO.Path.Combine(startMenuPathPrograms, "Start EZPPClient.lnk");
+ string startMenuPathPrograms = Path.Combine(startMenuPath, "Programs");
+ string startMenuLinkFile = Path.Combine(startMenuPathPrograms, "Start EZPPClient.lnk");
if (File.Exists(startMenuLinkFile))
File.Delete(startMenuLinkFile);
diff --git a/EZPPClient Installer/Utils/DownloadUtil.cs b/EZPPClient Installer/Utils/DownloadUtil.cs
index d3b94d4..5e873fd 100644
--- a/EZPPClient Installer/Utils/DownloadUtil.cs
+++ b/EZPPClient Installer/Utils/DownloadUtil.cs
@@ -3,9 +3,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
-using System.Security.Cryptography;
using System.Threading.Tasks;
-using System.Windows.Forms;
namespace EZPPClient_Installer
{
diff --git a/EZPPClient Installer/Utils/MD5Util.cs b/EZPPClient Installer/Utils/MD5Util.cs
index fed0aad..6c0dcde 100644
--- a/EZPPClient Installer/Utils/MD5Util.cs
+++ b/EZPPClient Installer/Utils/MD5Util.cs
@@ -1,11 +1,6 @@
using System;
-using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System.Security.Cryptography;
-using System.Text;
-using System.Threading.Tasks;
-
namespace EZPPClient_Installer
{
class MD5Util
diff --git a/EZPPClient Installer/Utils/OsuUtil.cs b/EZPPClient Installer/Utils/OsuUtil.cs
index 334ebc8..c33fd72 100644
--- a/EZPPClient Installer/Utils/OsuUtil.cs
+++ b/EZPPClient Installer/Utils/OsuUtil.cs
@@ -1,10 +1,4 @@
-using System;
-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 Path = System.IO.Path;
using Microsoft.Win32;
namespace EZPPClient_Installer
diff --git a/EZPPClient Installer/Utils/ProcessUtil.cs b/EZPPClient Installer/Utils/ProcessUtil.cs
index bd00ae6..abb58dd 100644
--- a/EZPPClient Installer/Utils/ProcessUtil.cs
+++ b/EZPPClient Installer/Utils/ProcessUtil.cs
@@ -1,10 +1,6 @@
using System;
-using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace EZPPClient_Installer
{
diff --git a/EZPPClient Installer/Utils/RegistryUtil.cs b/EZPPClient Installer/Utils/RegistryUtil.cs
index 9605c13..0895da1 100644
--- a/EZPPClient Installer/Utils/RegistryUtil.cs
+++ b/EZPPClient Installer/Utils/RegistryUtil.cs
@@ -1,9 +1,5 @@
using Microsoft.Win32;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace EZPPClient_Installer.Utils
{
diff --git a/EZPPClient Installer/Utils/ReleaseStreamUtil.cs b/EZPPClient Installer/Utils/ReleaseStreamUtil.cs
index d22a497..ef70dfb 100644
--- a/EZPPClient Installer/Utils/ReleaseStreamUtil.cs
+++ b/EZPPClient Installer/Utils/ReleaseStreamUtil.cs
@@ -1,9 +1,6 @@
using ModernWpf.Controls;
-using System;
using System.Collections.Generic;
-using System.Linq;
using System.Net;
-using System.Text;
using System.Threading.Tasks;
namespace EZPPClient_Installer