コード例 #1
0
        private void GetDownloadPercentsFromRegistry()
        {
            var tmp = RegistryUtil.GetRegistryKeyValue(quitFlagPath, quitFlagName);

            if (!string.IsNullOrEmpty(tmp))
            {
                status.DownloadPercent = uint.Parse(tmp);
            }
        }
コード例 #2
0
        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";
        }