public MsiPackageCache(InstallElevationContextBase elevationContext, ISetupLogger logger, string packageCacheRoot = null) : base(elevationContext, logger) { PackageCacheRoot = string.IsNullOrWhiteSpace(packageCacheRoot) ? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "dotnet", "workloads") : packageCacheRoot; }
/// <summary> /// Creates a new <see cref="MsiInstallerBase"/> instance. /// </summary> /// <param name="dispatcher">The command dispatcher used for sending and receiving commands.</param> /// <param name="logger"></param> /// <param name="reporter"></param> public MsiInstallerBase(InstallElevationContextBase elevationContext, ISetupLogger logger, IReporter reporter = null) : base(elevationContext, logger) { Cache = new MsiPackageCache(elevationContext, logger); RecordRepository = new RegistryWorkloadInstallationRecordRepository(elevationContext, logger); UpdateAgent = new WindowsUpdateAgent(logger); Reporter = reporter; }
/// <summary> /// Creates a new <see cref="InstallerBase"/> instance using the specified elevation context and logger. /// </summary> /// <param name="elevationContext"></param> /// <param name="logger"></param> protected InstallerBase(InstallElevationContextBase elevationContext, ISetupLogger logger) { ElevationContext = elevationContext; Log = logger; }
/// <summary> /// Creates a new <see cref="InstallerBase"/> instance using the specified elevation context and logger. /// </summary> /// <param name="elevationContext"></param> /// <param name="logger"></param> /// <param name="verifySignatures"></param> protected InstallerBase(InstallElevationContextBase elevationContext, ISetupLogger logger, bool verifySignatures) { ElevationContext = elevationContext; Log = logger; VerifySignatures = verifySignatures; }