コード例 #1
0
        public StudioVersionService(PluginPackageInfo pluginPackage)
        {
            _installedStudioVersions = new List<StudioVersion>();
            _pluginPackage = pluginPackage;

            Initialize();
        }
コード例 #2
0
        public static PluginPackageInfo CreatePluginPackageInfo(string pluginPackagePath)
        {
            var packageInfo = new PluginPackageInfo();
            using (var pluginPackage = new PluginPackage(pluginPackagePath, FileAccess.Read))
            {
                packageInfo.PluginName = pluginPackage.PackageManifest.PlugInName;
                packageInfo.Description = pluginPackage.PackageManifest.Description;
                packageInfo.Path = pluginPackage.FilePath;
                packageInfo.MinRequiredProductVersion = pluginPackage.PackageManifest.MinRequiredProductVersion;
            }

            packageInfo.MaxRequiredProductVersion = GetMaxVersion(pluginPackagePath);
            return packageInfo;
        }
コード例 #3
0
 public InstallerForm(PluginPackageInfo pluginPackageInfo, Logger logger)
     : this()
 {
     _logger = logger;
     try
     {
         _pluginPackageInfo = pluginPackageInfo;
         _studioVersionService = new StudioVersionService(_pluginPackageInfo);
         _installService = new InstallService(_pluginPackageInfo);
     }
     catch (Exception exception)
     {
         _logger.ErrorException("Error constructing installer window",exception);
         throw;
     }
 }
コード例 #4
0
        public static PluginPackageInfo CreatePluginPackageInfo(string pluginPackagePath)
        {
            var packageInfo = new PluginPackageInfo();

            using (var pluginPackage = new PluginPackage(pluginPackagePath, FileAccess.Read))
            {
                packageInfo.PluginName  = pluginPackage.PackageManifest.PlugInName;
                packageInfo.Description = pluginPackage.PackageManifest.Description;
                packageInfo.Path        = pluginPackage.FilePath;
                packageInfo.MinRequiredProductVersion = pluginPackage.PackageManifest.MinRequiredProductVersion;
                packageInfo.MaxRequiredProductVersion = pluginPackage.PackageManifest.MaxRequiredProductVersion;
                packageInfo.Author  = pluginPackage.PackageManifest.Author;
                packageInfo.Version = pluginPackage.PackageManifest.Version;
            }

            packageInfo.MaxRequiredProductVersion = GetMaxVersion(pluginPackagePath);
            return(packageInfo);
        }
コード例 #5
0
 public InstallService(PluginPackageInfo pluginPackageInfo,List<StudioVersion> studioVersions)
 {
     _pluginPackageInfo = pluginPackageInfo;
     StudioVersions = studioVersions;
 }
コード例 #6
0
 public InstallService(PluginPackageInfo pluginPackageInfo)
     : this(pluginPackageInfo, new List<StudioVersion>())
 {
 }