Improved app updater

This commit is contained in:
Alexander 2019-11-22 17:37:58 +02:00
parent 349570e97d
commit 81eaf98047
4 changed files with 0 additions and 17 deletions

View file

@ -237,7 +237,6 @@ private void DeleteUpdateFiles()
string exePath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\";
string UpdaterExe = exePath + "Updater.exe";
string UpdateZip = exePath + "Crypto-Notepad-Update.zip";
string ZipDll = exePath + "Ionic.Zip.dll";
if (File.Exists(UpdaterExe))
{
File.Delete(UpdaterExe);
@ -246,10 +245,6 @@ private void DeleteUpdateFiles()
{
File.Delete(UpdateZip);
}
if (File.Exists(ZipDll))
{
File.Delete(ZipDll);
}
}
private void SaveConfirm()
@ -316,7 +311,6 @@ private void CheckForUpdates(bool autoCheck)
MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if (res == DialogResult.Yes)
{
File.WriteAllBytes(exePath + "Ionic.Zip.dll", Resources.Ionic_Zip);
File.WriteAllBytes(exePath + "Updater.exe", Resources.Updater);
var pr = new Process();
pr.StartInfo.FileName = exePath + "Updater.exe";
@ -1018,7 +1012,6 @@ private void StatusPanelLabel_Click(object sender, EventArgs e)
MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if (res == DialogResult.Yes)
{
File.WriteAllBytes(exePath + "Ionic.Zip.dll", Resources.Ionic_Zip);
File.WriteAllBytes(exePath + "Updater.exe", Resources.Updater);
var pr = new Process();
pr.StartInfo.FileName = exePath + "Updater.exe";

View file

@ -280,16 +280,6 @@ internal static System.Drawing.Bitmap information {
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Byte[].
/// </summary>
internal static byte[] Ionic_Zip {
get {
object obj = ResourceManager.GetObject("Ionic_Zip", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
/// </summary>

Binary file not shown.