mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Improved app updater
This commit is contained in:
parent
349570e97d
commit
81eaf98047
4 changed files with 0 additions and 17 deletions
|
|
@ -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";
|
||||
|
|
|
|||
10
Crypto Notepad/Properties/Resources.Designer.cs
generated
10
Crypto Notepad/Properties/Resources.Designer.cs
generated
|
|
@ -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.
Binary file not shown.
Loading…
Reference in a new issue