EZPPClient-Installer/EZPPClient Installer/MainWindow.xaml.cs

748 lines
23 KiB
C#
Raw Normal View History

2021-05-25 06:44:50 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Navigation;
using System.IO;
using System.Net;
using ModernWpf.Controls;
using System.Windows.Forms;
using System.Media;
2021-05-27 11:19:44 +00:00
using Path = System.IO.Path;
using File = System.IO.File;
2021-05-27 08:40:02 +00:00
using EZPPClient_Installer.Utils;
using IWshRuntimeLibrary;
2021-05-27 12:27:59 +00:00
using Semver;
#if DEBUG
using MessageBox = System.Windows.MessageBox;
#endif
2021-05-25 06:44:50 +00:00
namespace EZPPClient_Installer
{
public partial class MainWindow : Window
{
public static MainWindow Instance { get; private set; }
2021-05-25 06:44:50 +00:00
[DllImport("kernel32.dll")]
private static extern bool CreateSymbolicLink(string lpSymlinkFileName, string lpTargetFileName, SymbolicLink dwFlags);
2021-05-27 12:32:52 +00:00
private static SemVersion VERSION = new SemVersion(1, 1, 1);
2021-05-25 06:44:50 +00:00
2021-05-27 07:00:12 +00:00
public static string RELEASESTREAM;
2021-05-25 06:44:50 +00:00
public MainWindow()
{
var alreadyRunning = System.Diagnostics.Process.GetProcessesByName(System.IO.Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetEntryAssembly().Location)).Count() > 1;
if (alreadyRunning)
2021-05-27 18:14:19 +00:00
{
this.Close();
2021-05-27 18:14:19 +00:00
return;
}
Instance = this;
2021-05-25 06:44:50 +00:00
InitializeComponent();
Init();
}
private async void Init()
{
UpdateInstallButton(false);
UpdateState status = await CheckForInstallerUpdates();
2021-05-25 06:44:50 +00:00
switch (status)
{
case UpdateState.UpdateFound:
ShowInstallerUpdateDialog();
2021-05-25 06:44:50 +00:00
return;
case UpdateState.Error:
2021-05-25 06:44:50 +00:00
return;
}
string versionString = "v" + VERSION;
InstallerWindow.Title = "EZPPClient Installer " + versionString.Replace(",", ".");
2021-05-27 07:00:12 +00:00
await FetchReleaseStreams();
2021-05-27 04:02:37 +00:00
string osuPath = OsuUtil.osuInstallDir();
if (osuPath.EndsWith(@"\EZPPClient"))
{
osuPath = osuPath.Replace(@"\EZPPClient", "");
}
bool isValidFolder = await isValidOsuFolder(osuPath);
2021-05-25 06:44:50 +00:00
UpdateInstallButton(!string.IsNullOrEmpty(osuPath));
2021-05-27 12:27:59 +00:00
if(string.IsNullOrEmpty(osuPath))
folderTextbox.Text = "";
if (!string.IsNullOrEmpty(osuPath) && isValidFolder)
{
bool foundInstall = isEZPPClientInstallationFound(osuPath);
if (foundInstall)
{
string osuEZPPPath = osuPath + @"\EZPPClient";
Uninstall_Button.Visibility = Visibility.Visible;
UpdateInstallButton(false);
2021-05-27 07:00:12 +00:00
List<string> outdatedFiles = await DownloadUtil.FilesToDownload(osuEZPPPath, false);
if (!IsEmpty(outdatedFiles))
{
UpdateInstallButton(true);
InstallButton.Content = "Update";
linkFoldersCheckbox.IsEnabled = false;
}
}
2021-05-25 06:44:50 +00:00
folderTextbox.Text = osuPath;
}
2021-05-25 06:44:50 +00:00
else
await new ContentDialog()
{
Title = "Hmmm..",
Content = "We failed to locate your osu! Installation path, please define it manually qwq",
PrimaryButtonText = "Okay qwq"
}.ShowAsync();
}
2021-05-27 07:00:12 +00:00
private async Task FetchReleaseStreams()
{
List<string> releases = await ReleaseStreamUtil.GetAvailableReleaseStreams();
foreach(string release in releases)
{
2021-05-27 08:40:02 +00:00
ReleaseStreamComboBox.Items.Add(release.UppercaseFirst().Trim());
2021-05-27 07:00:12 +00:00
}
2021-05-27 08:40:02 +00:00
string systemRelease = RegistryUtil.GetUsedReleaseStream("Stable");
bool containsRelease = releases.Contains(systemRelease);
ReleaseStreamComboBox.SelectedValue = systemRelease;
2021-05-27 07:00:12 +00:00
}
private async Task<UpdateState> CheckForInstallerUpdates()
2021-05-25 06:44:50 +00:00
{
#if !DEBUG
try
{
using (WebClient client = new WebClient())
{
client.Headers.Add("user-agent", "EZPPClientInstaller");
2021-05-27 08:40:02 +00:00
string newVersionString = await client.DownloadStringTaskAsync("https://new.ez-pp.farm/ezppclient?version");
2021-05-27 12:27:59 +00:00
SemVersion newVersion = new SemVersion(9, 9, 9);
2021-05-25 06:44:50 +00:00
try
{
2021-05-27 12:27:59 +00:00
newVersion = SemVersion.Parse(newVersionString);
2021-05-25 06:44:50 +00:00
}
2021-05-27 12:27:59 +00:00
catch (Exception e){
ShowErrorDialog(e.Message);
2021-05-25 06:44:50 +00:00
}
2021-05-27 12:27:59 +00:00
int versionsBehind = newVersion.CompareTo(VERSION);
if (versionsBehind > 0)
return UpdateState.UpdateFound;
2021-05-25 06:44:50 +00:00
}
}
catch (WebException e)
{
ShowErrorDialog(e.Message);
return UpdateState.Error;
2021-05-25 06:44:50 +00:00
}
#endif
return UpdateState.UpToDate;
2021-05-25 06:44:50 +00:00
}
private async void ShowErrorDialog(string error)
{
var dialog = new ContentDialog()
{
Title = "Oops...",
Content = "Failed to connect to the EZPPFarm Website.\n" + error,
PrimaryButtonText = "Exit"
};
await dialog.ShowAsync();
this.Close();
}
private async void ShowInstallerUpdateDialog()
2021-05-25 06:44:50 +00:00
{
UpdateInstallButton(false);
2021-05-25 06:44:50 +00:00
var dialog = new ContentDialog()
{
Title = "New version available.",
Content = "Please download the latest version.",
PrimaryButtonText = "Download"
};
var result = await dialog.ShowAsync();
if (result == ContentDialogResult.Primary)
{
System.Diagnostics.Process.Start("https://ez-pp.farm/download");
ShowInstallerUpdateDialog();
2021-05-25 06:44:50 +00:00
}
}
private void UpdateInstallButton(bool enable)
{
InstallButton.Content = enable ? "Install" : "Reinstall";
linkFoldersCheckbox.IsEnabled = enable;
2021-05-25 06:44:50 +00:00
}
private async void Install_Click(object sender, RoutedEventArgs e)
2021-05-25 06:44:50 +00:00
{
string osuFolder = folderTextbox.Text;
bool isValid = await isValidOsuFolder(osuFolder);
if (!isValid)
{
SystemSounds.Asterisk.Play();
await new ContentDialog()
{
Title = "Hmmm..",
Content = "It seems like the selected folder is not a osu! installation.",
PrimaryButtonText = "Okay qwq"
}.ShowAsync();
return;
}
2021-05-27 08:40:02 +00:00
var type = InstallButton.Content;
RegistryUtil.SetUsedReleaseStream(RELEASESTREAM);
if (!Directory.Exists(osuFolder + "\\EZPPClient"))
{
Directory.CreateDirectory(osuFolder + "\\EZPPClient");
}
string EZPPFolder = osuFolder + @"\EZPPClient";
if (ProcessUtil.ProgramIsRunning(folderTextbox.Text + @"\EZPPClient.exe"))
{
_ = new ContentDialog()
{
Title = "Oops..",
Content = "The EZPPClient is currently running.",
PrimaryButtonText = "Oh"
}.ShowAsync();
return;
}
if (InstallButton.Content.Equals("Install"))
{
if (linkFoldersCheckbox.IsChecked.Value)
{
if (!Directory.Exists(string.Format(@"{0}\Skins\", EZPPFolder)) && Directory.Exists(string.Format(@"{0}\Skins\", osuFolder)))
{
if (!CreateSymbolicLink(string.Format(@"{0}\Skins\", EZPPFolder), string.Format(@"{0}\Skins\", osuFolder), SymbolicLink.Directory))
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = "Failed to create Symlink to Skins folder.",
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
}
else
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = "Failed to locate Skins folder.",
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
if (!Directory.Exists(string.Format(@"{0}\Songs\", EZPPFolder)) && Directory.Exists(string.Format(@"{0}\Songs\", osuFolder)))
{
if (!CreateSymbolicLink(string.Format(@"{0}\Songs\", EZPPFolder), string.Format(@"{0}\Songs\", osuFolder), SymbolicLink.Directory))
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = "Failed to create Symlink to Songs folder.",
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
}
else
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = "Failed to locate Songs folder.",
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
}
string userName = Environment.UserName;
if(File.Exists(string.Format(@"{0}\osu!.{1}.cfg", osuFolder, userName)) && !File.Exists(string.Format(@"{0}\osu!.{1}.cfg", EZPPFolder, userName)))
{
try
{
if (!CreateSymbolicLink(string.Format(@"{0}\osu!.{1}.cfg", EZPPFolder, userName), string.Format(@"{0}\osu!.{1}.cfg", osuFolder, userName), SymbolicLink.File))
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = "Failed to create Symlink to cfg file.",
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
}
catch (Exception)
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = string.Format("Failed to link osu!.{0}.cfg", userName),
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
}
if (File.Exists(string.Format(@"{0}\scores.db", osuFolder)) && !File.Exists(string.Format(@"{0}\scores.db", EZPPFolder)))
{
try
{
if (!CreateSymbolicLink(string.Format(@"{0}\scores.db", EZPPFolder), string.Format(@"{0}\scores.db", osuFolder), SymbolicLink.File))
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = "Failed to create Symlink to scores.db file.",
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
}
catch (Exception)
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = "Failed to link scores.db",
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
}
if (File.Exists(string.Format(@"{0}\collection.db", osuFolder)) && !File.Exists(string.Format(@"{0}\collection.db", EZPPFolder)))
{
try
{
if (!CreateSymbolicLink(string.Format(@"{0}\collection.db", EZPPFolder), string.Format(@"{0}\collection.db", osuFolder), SymbolicLink.File))
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = "Failed to create Symlink to collection.db file.",
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
}
catch (Exception)
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = "Failed to link collection.db",
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
}
if (File.Exists(string.Format(@"{0}\osu!.db", osuFolder)) && !File.Exists(string.Format(@"{0}\osu!.db", EZPPFolder)))
{
try
{
if (!CreateSymbolicLink(string.Format(@"{0}\osu!.db", EZPPFolder), string.Format(@"{0}\osu!.db", osuFolder), SymbolicLink.File))
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = "Failed to create Symlink to osu!.db file.",
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
}
catch (Exception)
{
ContentDialog dg = new ContentDialog()
{
Title = "Hmmm..",
Content = "Failed to link osu!.db",
PrimaryButtonText = "Okay :/"
};
await dg.ShowAsync();
}
}
}
2021-05-27 07:00:12 +00:00
List<string> filesToDownload = await DownloadUtil.FilesToDownload(EZPPFolder, InstallButton.Content.Equals("Reinstall"));
Visibility prevInstallBtnVis = InstallButton.Visibility;
Visibility prevUninstallBtnVis = Uninstall_Button.Visibility;
Visibility prevLinkFCVis = linkFoldersCheckbox.Visibility;
BrowseButton.IsEnabled = false;
InstallButton.Visibility = Visibility.Hidden;
Uninstall_Button.Visibility = Visibility.Hidden;
linkFoldersCheckbox.Visibility = Visibility.Hidden;
2021-05-27 08:02:42 +00:00
ReleaseStreamComboBox.IsEnabled = false;
Download_Text.Visibility = Visibility.Visible;
Download_Progressbar.Visibility = Visibility.Visible;
await DownloadUtil.DownloadFiles(filesToDownload, EZPPFolder);
2021-05-27 08:40:02 +00:00
if (type.Equals("Install"))
{
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
2021-05-27 11:19:44 +00:00
string desktopLinkFile = Path.Combine(desktopPath, "Start EZPPClient.lnk");
string startMenuPath = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
2021-05-27 11:19:44 +00:00
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";
2021-05-27 11:19:44 +00:00
shortcut.TargetPath = Path.Combine(EZPPFolder, "EZPPClient.exe");
shortcut.Save();
}
if (!File.Exists(startMenuLinkFile))
{
WshShell shell = new WshShell();
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(startMenuLinkFile);
shortcut.Description = $"Starts the EZPPClient";
2021-05-27 11:19:44 +00:00
shortcut.TargetPath = Path.Combine(EZPPFolder, "EZPPClient.exe");
shortcut.Save();
}
}
InstallButton.Visibility = prevInstallBtnVis;
Uninstall_Button.Visibility = prevUninstallBtnVis;
linkFoldersCheckbox.Visibility = prevLinkFCVis;
BrowseButton.IsEnabled = true;
2021-05-27 08:02:42 +00:00
ReleaseStreamComboBox.IsEnabled = true;
Download_Text.Visibility = Visibility.Hidden;
Download_Progressbar.Visibility = Visibility.Hidden;
Uninstall_Button.Visibility = Visibility.Visible;
UpdateInstallButton(false);
2021-05-27 07:00:12 +00:00
List<string> outdatedFiles = await DownloadUtil.FilesToDownload(EZPPFolder, false);
if (!IsEmpty(outdatedFiles))
{
UpdateInstallButton(true);
InstallButton.Content = "Update";
linkFoldersCheckbox.IsEnabled = false;
string updateText = "It seems like the installation was faulty, please hit Update to repair the EZPPClient.";
2021-05-27 08:40:02 +00:00
switch (type)
{
case "Update":
updateText = "It seems like the update was faulty, please hit Update to repair the EZPPClient.";
break;
case "Reinstall":
updateText = "It seems like the reinstallation was faulty, please hit Update to repair the EZPPClient.";
break;
}
_ = new ContentDialog()
{
Title = "Hmmm..",
Content = updateText,
PrimaryButtonText = "Okay qwq"
}.ShowAsync();
SystemSounds.Asterisk.Play();
this.Focus();
}
else
{
string updateText = "The EZPPClient was successfully installed!";
2021-05-27 08:40:02 +00:00
switch (type)
{
case "Update":
updateText = "The EZPPClient was successfully updated!";
break;
case "Reinstall":
updateText = "The EZPPClient was successfully reinstalled!";
break;
}
_ = new ContentDialog()
{
Title = "Success!",
Content = updateText,
PrimaryButtonText = "Yaaay :3"
}.ShowAsync();
SystemSounds.Asterisk.Play();
this.Focus();
UpdateInstallButton(false);
}
2021-05-25 06:44:50 +00:00
}
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
System.Diagnostics.Process.Start("https://ez-pp.farm/");
e.Handled = true;
}
private async void Browse_Click(object sender, RoutedEventArgs e)
2021-05-25 06:44:50 +00:00
{
if (InstallButton.Visibility == Visibility.Hidden)
return;
2021-05-25 06:44:50 +00:00
using (var fbd = new FolderBrowserDialog())
{
DialogResult result = fbd.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK && !string.IsNullOrWhiteSpace(fbd.SelectedPath))
{
bool isValid = await isValidOsuFolder(fbd.SelectedPath);
2021-05-25 06:44:50 +00:00
if (!isValid)
2021-05-25 06:44:50 +00:00
{
SystemSounds.Asterisk.Play();
await new ContentDialog()
2021-05-25 06:44:50 +00:00
{
Title = "Hmmm..",
2021-05-25 09:33:06 +00:00
Content = "It seems like this location is not an osu! installation.",
2021-05-25 06:44:50 +00:00
PrimaryButtonText = "Okay qwq"
}.ShowAsync();
}
else
{
bool foundInstall = isEZPPClientInstallationFound(fbd.SelectedPath);
2021-05-25 06:44:50 +00:00
folderTextbox.Text = fbd.SelectedPath;
if (foundInstall)
{
Uninstall_Button.Visibility = Visibility.Visible;
UpdateInstallButton(false);
string osuEZPPPath = folderTextbox.Text + @"\EZPPClient";
2021-05-27 07:00:12 +00:00
List<string> outdatedFiles = await DownloadUtil.FilesToDownload(osuEZPPPath, false);
2021-05-25 09:33:06 +00:00
if (!IsEmpty(outdatedFiles))
{
UpdateInstallButton(true);
InstallButton.Content = "Update";
2021-05-25 09:33:06 +00:00
}
else
{
UpdateInstallButton(true);
}
}
else
{
UpdateInstallButton(true);
}
2021-05-25 06:44:50 +00:00
}
}
}
}
private async void Uninstall_Button_Click(object sender, RoutedEventArgs e)
{
if(ProcessUtil.ProgramIsRunning(folderTextbox.Text + @"\EZPPClient.exe"))
{
_ = new ContentDialog()
{
Title = "Oops..",
Content = "The EZPPClient is currently running.",
PrimaryButtonText = "Oh"
}.ShowAsync();
return;
}
SystemSounds.Asterisk.Play();
ContentDialog cd = new ContentDialog()
{
Title = "Confirm uninstall",
Content = "Are you sure you want to remove the EZPPClient?",
PrimaryButtonText = "Yes",
SecondaryButtonText = "No"
};
ContentDialogResult result = await cd.ShowAsync();
if (result == ContentDialogResult.Primary)
{
string osuEZPPPath = folderTextbox.Text + @"\EZPPClient";
if (Directory.Exists(osuEZPPPath))
Directory.Delete(osuEZPPPath, true);
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
2021-05-27 11:19:44 +00:00
string linkFile = Path.Combine(desktopPath, "Start EZPPClient.lnk");
if (File.Exists(linkFile))
File.Delete(linkFile);
string startMenuPath = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
2021-05-27 11:19:44 +00:00
string startMenuPathPrograms = Path.Combine(startMenuPath, "Programs");
string startMenuLinkFile = Path.Combine(startMenuPathPrograms, "Start EZPPClient.lnk");
if (File.Exists(startMenuLinkFile))
File.Delete(startMenuLinkFile);
_ = new ContentDialog()
{
Title = "Success!",
Content = "The EZPPClient was successfully uninstalled!",
PrimaryButtonText = "Okay"
}.ShowAsync();
SystemSounds.Asterisk.Play();
this.Focus();
Uninstall_Button.Visibility = Visibility.Hidden;
UpdateInstallButton(true);
}
}
private bool isEZPPClientInstallationFound(string folder)
{
return Directory.Exists(folder + @"\EZPPClient");
}
private async Task<bool> isValidOsuFolder(string folder)
{
if (string.IsNullOrEmpty(folder) || string.IsNullOrWhiteSpace(folder))
return false;
string[] files = Directory.GetFiles(folder, "*");
string[] subDirs = Directory.GetDirectories(folder, "*");
bool hasSongsFolder = false;
bool hasSkinsFolder = false;
bool hasOsuExecutable = false;
foreach (string file in files)
{
if (file.Contains("osu!.exe"))
{
hasOsuExecutable = true;
break;
}
}
foreach (string dir in subDirs)
{
if (dir.Contains("Songs") && !hasSongsFolder)
hasSongsFolder = true;
if (dir.Contains("Skins") && !hasSkinsFolder)
hasSkinsFolder = true;
if (hasSkinsFolder && hasSongsFolder)
break;
}
return hasOsuExecutable && hasSkinsFolder && hasSongsFolder;
}
2021-05-25 09:33:06 +00:00
public static bool IsEmpty<T>(List<T> list)
{
if (list == null)
{
return true;
}
return !list.Any();
}
2021-05-25 06:44:50 +00:00
private enum SymbolicLink
{
File,
Directory
}
public static void updateProgress(string file, double progress)
{
Instance.Download_Progressbar.IsIndeterminate = (progress == 100);
Instance.Download_Progressbar.Value = progress;
Instance.Download_Text.Content = "Downloading: " + file;
}
2021-05-27 07:00:12 +00:00
private async void ReleaseStreamComboBox_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
{
bool init = string.IsNullOrEmpty(RELEASESTREAM);
RELEASESTREAM = (string)ReleaseStreamComboBox.SelectedValue;
if (init)
return;
2021-05-27 08:02:42 +00:00
ReleaseStreamComboBox.IsEnabled = false;
BrowseButton.IsEnabled = false;
InstallButton.IsEnabled = false;
Uninstall_Button.IsEnabled = false;
2021-05-27 07:00:12 +00:00
string osuPath = folderTextbox.Text;
bool isValidFolder = await isValidOsuFolder(osuPath);
UpdateInstallButton(!string.IsNullOrEmpty(osuPath));
if (!string.IsNullOrEmpty(osuPath) && isValidFolder)
{
bool foundInstall = isEZPPClientInstallationFound(osuPath);
if (foundInstall)
{
string osuEZPPPath = osuPath + @"\EZPPClient";
Uninstall_Button.Visibility = Visibility.Visible;
UpdateInstallButton(false);
List<string> outdatedFiles = await DownloadUtil.FilesToDownload(osuEZPPPath, false);
if (!IsEmpty(outdatedFiles))
{
UpdateInstallButton(true);
InstallButton.Content = "Update";
linkFoldersCheckbox.IsEnabled = false;
}
}
folderTextbox.Text = osuPath;
}
_ = new ContentDialog()
{
Title = "Success!",
Content = "ReleaseStream changed to " + RELEASESTREAM,
PrimaryButtonText = "Okay"
}.ShowAsync();
2021-05-27 08:02:42 +00:00
ReleaseStreamComboBox.IsEnabled = true;
BrowseButton.IsEnabled = true;
InstallButton.IsEnabled = true;
Uninstall_Button.IsEnabled = true;
2021-05-27 07:00:12 +00:00
}
2021-05-25 06:44:50 +00:00
}
}