public List<BaseModel> GetModelListByValue()
 {
     List<BaseModel> list = new List<BaseModel>();
     foreach (string valuname in mKey.GetValueNames())
     {
         string value = mKey.GetValue(valuname).ToString();
         value = GetPureValueName(value);
         FileVersionHelper fvHelper = new FileVersionHelper(value);
         BaseModel model = fvHelper.GetFileInfoModel();
         model.Name = valuname;
         list.Add(model);
     }
     return list;
 }
 private static List<BaseModel> MakeListByKey(RegistryKey objKey)
 {
     List<BaseModel> modelList = new List<BaseModel>();
     foreach (string value in objKey.GetSubKeyNames())
     {
         try
         {
             RegistryKey subKey = objKey.OpenSubKey(value);
             Object exec = subKey.GetValue("Exec");
             if (exec == null)
             {
                 exec = subKey.GetValue("Script");
             }
             if (exec != null)
             {
                 FileVersionHelper fHelper = new FileVersionHelper(exec.ToString());
                 RegistryReader regReader = new RegistryReader(subKey);
                 modelList.Add(fHelper.GetFileInfoModel(regReader.GetEntryName()));
             }
         }
         catch (Exception e)
         {
             Console.WriteLine(e.ToString());
         }
     }
     return modelList;
 }
 private static List<BaseModel> MakeListByKey(RegistryKey objKey, RegistryKey dataKey)
 {
     List<BaseModel> modelList = new List<BaseModel>();
     string[] valueList = objKey.GetSubKeyNames();
     foreach (string value in valueList)
     {
         try
         {
             RegistryKey rightKey = dataKey.OpenSubKey(value);
             if (rightKey != null)
             {
                 RegistryKey subKey = rightKey.OpenSubKey(INPROCSERVER);
                 FileVersionHelper vHelper = new FileVersionHelper(subKey.GetValue("").ToString());
                 modelList.Add(vHelper.GetFileInfoModel(rightKey.GetValue("").ToString()));
             }
         }
         catch (Exception e)
         {
             Console.WriteLine(e.ToString());
         }
     }
     return modelList;
 }