Пример #1
0
		public bool CheckVersion(Assembly Asm, string Url) {
			mUrl = Url;
			CleanUp();

			DownloadVersionfile();
			if (mVersionFile == null) {
				CleanUp();
				return false;
			}

			Version thisVersion = Asm.GetName().Version;
			int iThisVersion = thisVersion.ToInt();
			Version fileVersion = new Version(mVersionFile.Version);
			int iFileVersion = fileVersion.ToInt();
			if (iFileVersion <= iThisVersion) {
				CleanUp();
				return false;
			}

			return true;
		}