Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 /// <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;
 }
Exemplo n.º 4
0
 /// <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;
 }