Minor stuffs
This commit is contained in:
parent
6a2a988e9f
commit
fec2d7dcdc
|
@ -1 +1,9 @@
|
|||
# UpTool2
|
||||
Downloading software from online repos since 2019
|
||||
|
||||
[![CodeFactor](https://www.codefactor.io/repository/github/jfronny/uptool2/badge)](https://www.codefactor.io/repository/github/jfronny/uptool2)
|
||||
![GitHub release (latest by date)](https://img.shields.io/github/v/release/JFronny/UpTool2)
|
||||
![GitHub repo size](https://img.shields.io/github/repo-size/JFronny/UpTool2)
|
||||
![GitHub All Releases](https://img.shields.io/github/downloads/JFronny/UpTool2/total)
|
||||
|
||||
![Discord](https://img.shields.io/discord/466965965658128384)
|
|
@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||
FolderLayout.txt = FolderLayout.txt
|
||||
.github\workflows\main.yml = .github\workflows\main.yml
|
||||
Meta.xml = Meta.xml
|
||||
README.md = README.md
|
||||
Repo.xml = Repo.xml
|
||||
ToDo and Notes.txt = ToDo and Notes.txt
|
||||
EndProjectSection
|
||||
|
|
|
@ -241,7 +241,7 @@ namespace UpTool2
|
|||
public uint NumberOfSymbols;
|
||||
public ushort SizeOfOptionalHeader;
|
||||
public ushort Characteristics;
|
||||
};
|
||||
}
|
||||
|
||||
static DateTime GetBuildDateTime(Assembly assembly)
|
||||
{
|
||||
|
|
|
@ -56,11 +56,11 @@ namespace UpTool2
|
|||
FixXML(xml);
|
||||
string metaXML = XDocument.Load(xml).Element("meta").Element("UpdateSource").Value;
|
||||
online = Ping(metaXML);
|
||||
#if DEBUG
|
||||
#if !DEBUG
|
||||
if (Application.ExecutablePath != GlobalVariables.dir + @"\Install\UpTool2.exe")
|
||||
{
|
||||
if (!online)
|
||||
throw new WebException("Could not install");
|
||||
if ((!online) || MessageBox.Show("Thank you for downloading UpTool2.\r\nTo prevent inconsistent behavior you will need to install this before running.\r\nFiles will be placed in %appdata%\\UpTool2 and %appdata%\\Microsoft\\Windows\\Start Menu\\Programs\r\nDo you want to continue?", "UpTool2", MessageBoxButtons.YesNo) != DialogResult.Yes)
|
||||
throw new WebException("Could fetch Metadata (are you online?)");
|
||||
MessageBox.Show("Installing an Update. Please restart from your start menu!");
|
||||
installUpdate(XDocument.Load(metaXML).Element("meta"));
|
||||
Shortcut.Make(GlobalVariables.dir + @"\Install\UpTool2.exe", Environment.GetFolderPath(Environment.SpecialFolder.Programs) + "\\UpTool2.lnk");
|
||||
|
|
Reference in New Issue