예제 #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;
 }
예제 #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;
 }
예제 #3
0
파일: InstallerBase.cs 프로젝트: agocke/sdk
 /// <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;
 }
예제 #4
0
파일: InstallerBase.cs 프로젝트: nohwnd/sdk
 /// <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;
 }