public StudioVersionService(PluginPackageInfo pluginPackage) { _installedStudioVersions = new List<StudioVersion>(); _pluginPackage = pluginPackage; Initialize(); }
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; }
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; } }
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); }
public InstallService(PluginPackageInfo pluginPackageInfo,List<StudioVersion> studioVersions) { _pluginPackageInfo = pluginPackageInfo; StudioVersions = studioVersions; }
public InstallService(PluginPackageInfo pluginPackageInfo) : this(pluginPackageInfo, new List<StudioVersion>()) { }