private void GetDownloadPercentsFromRegistry() { var tmp = RegistryUtil.GetRegistryKeyValue(quitFlagPath, quitFlagName); if (!string.IsNullOrEmpty(tmp)) { status.DownloadPercent = uint.Parse(tmp); } }
public AppBundleCMD(string appGUID, string regBasePath, ref Status status) { this.status = status; GUID = appGUID; registryBasePath = regBasePath; updatePath = RegistryUtil.GetRegistryKeyValue(registryBasePath, "path"); quitFlagPath = registryBasePath + @"ClientState\{" + GUID + @"}\CurrentState"; quitFlagName = "DownloadProgressPercent"; }