-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathServerFile.cs
50 lines (44 loc) · 1.37 KB
/
ServerFile.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using System.Collections.Generic;
namespace wyUpdate.Common
{
public class VersionChoice
{
public string Version;
public string Changes;
public bool RTFChanges;
public List<string> FileSites = new List<string>();
public long FileSize;
public long Adler32;
public byte[] SignedSHA1Hash;
//Determine if client elevation is needed (Vista & non-admin users)
public InstallingTo InstallingTo = 0;
}
[Flags]
public enum InstallingTo {
BaseDir = 1,
SysDirx86 = 2,
CommonDesktop = 4,
CommonStartMenu = 8,
CommonAppData = 16,
SysDirx64 = 32,
WindowsRoot = 64,
CommonFilesx86 = 128,
CommonFilesx64 = 256,
ServiceOrCOMReg = 512,
NonCurrentUserReg = 1024
}
public class NoUpdatePathToNewestException : Exception { }
public class PatchApplicationException : Exception
{
public PatchApplicationException(string message) : base(message) { }
}
public partial class ServerFile
{
public string NewVersion;
public List<VersionChoice> VersionChoices = new List<VersionChoice>();
public string MinClientVersion;
public string NoUpdateToLatestLinkText;
public string NoUpdateToLatestLinkURL;
}
}