Exemplo n.º 1
0
 public AdobeProductBean(AdobeProduct product, string version, string icon, string name, string desc, string detail, string launchPath)
 {
     this.product    = product;
     this.version    = version;
     this.icon       = icon;
     this.name       = name;
     this.desc       = desc;
     this.detail     = detail;
     this.LaunchPath = launchPath;
 }
Exemplo n.º 2
0
        public static bool patchProduct(AdobeProduct product, string version)
        {
            List <PatchInfo> productPatchInfo = loadProductPatchInfo(product, version);
            bool             succ             = true;

            foreach (PatchInfo info in productPatchInfo)
            {
                //succ&=ByteHelper.replaceByte(info.InstallPath,info.TargetByteStr,info.NewByteStr);
                succ &= StrongByteHelper.replaceByte(info.InstallPath, info.TargetByteStr, info.NewByteStr);
            }
            return(succ);
        }
Exemplo n.º 3
0
        public static List <PatchInfo> loadProductPatchInfo(AdobeProduct productName, string version)
        {
            if (patchInfos == null)
            {
                patchInfos = new List <PatchInfo>();
                initPatchInfo("2021");
                initPatchInfo("2020");
                initPatchInfo("2019");
            }
            List <PatchInfo> productPatchInfo = new List <PatchInfo>();

            foreach (PatchInfo patchInfo in patchInfos)
            {
                if (patchInfo.Product == productName && patchInfo.Version.Equals(version))
                {
                    productPatchInfo.Add(patchInfo);
                }
            }
            return(productPatchInfo);
        }