fixed updates
This commit is contained in:
parent
360d811fdf
commit
3eb5710d89
3 changed files with 20 additions and 3 deletions
|
@ -13,6 +13,7 @@
|
|||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<ApplicationIcon>wicns.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
|
|
|
@ -7,6 +7,7 @@ namespace Update
|
|||
{
|
||||
internal class Program
|
||||
{
|
||||
public static bool keepWindowOpen = false;
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Path: " + args[0]);
|
||||
|
@ -31,6 +32,12 @@ namespace Update
|
|||
File.Delete(args[3]);
|
||||
}
|
||||
|
||||
if (keepWindowOpen)
|
||||
{
|
||||
Console.WriteLine("Window kept open to see error message, press enter to continue");
|
||||
Console.ReadLine();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
public static class ZipArchiveHelper
|
||||
|
@ -59,9 +66,18 @@ namespace Update
|
|||
if (file.Name != "")
|
||||
file.ExtractToFile(completeFileName, true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (IOException ex)
|
||||
{
|
||||
Console.WriteLine(ex.ToString());
|
||||
if (file.FullName == "Update.exe")
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine(ex.ToString());
|
||||
Console.WriteLine(file.FullName + " couldnt be overwritten, an error has occured");
|
||||
Program.keepWindowOpen = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace WeeXnes.Core
|
|||
public static string encryptionKey = "8zf5#RdyQ]$4x4_";
|
||||
public static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "WeeXnes");
|
||||
public static string SettingsFileName = "settings.ini";
|
||||
public static string version = "2.7.3";
|
||||
public static string version = "2.7.4";
|
||||
public static bool info_isRpcRunning = false;
|
||||
public static bool info_RpcAutoStart;
|
||||
public static string apiUrl = "http://www.weexnes.com:5169/";
|
||||
|
|
Loading…
Add table
Reference in a new issue