public async Task DeployCoreAndWindows(InstallOptions options, Phone phone, IObserver <double> progressObserver = null) { await EnsureValidCoreWindowsDeployment(); Log.Information("Deploying Core And Windows 10 ARM64..."); await coreDeployer.Deploy(phone); await windowsDeployer.Deploy(options, phone, progressObserver); Log.Information("Deployment successful"); }
protected override async Task ExecuteCore() { Log.Information("Deploying Windows..."); await deploymentContext.DiskLayoutPreparer.Prepare(await deploymentContext.Device.GetDeviceDisk()); await deployer.Deploy(deploymentContext.DeploymentOptions, deploymentContext.Device, progressObserver, OperationContext.CancellationToken); }
public async Task Deploy(IDownloadProgress progressObserver) { var device = deviceProvider.Device; var options = optionsProvider.Options; if (options == null) { throw new ApplicationException("No deployment options can be found. Cannot deploy Windows."); } Log.Information("Preparing for Windows deployment..."); await deployer.Deploy(options, device, progressObserver); }
private async Task Restore() { var filters = new List <(string, IEnumerable <string>)> { ("install.wim", new[] { "install.wim" }), ("Windows Images", new[] { "*.wim", "*.esd" }), ("All files", new[] { "*.*" }) }; var fileName = uiServices.OpenFilePicker.Pick(filters, () => lumiaSettingsService.WimFolder, x => { lumiaSettingsService.WimFolder = x; }); if (fileName == null) { return; } context.DeploymentOptions = new WindowsDeploymentOptions { ImageIndex = 1, ImagePath = fileName, UseCompact = lumiaSettingsService.UseCompactDeployment }; await context.DiskLayoutPreparer.Prepare(await context.Device.GetDeviceDisk()); await deployer.Deploy(context.DeploymentOptions, context.Device, progress); await uiServices.ContextDialog.ShowAlert(this, Resources.Done, Resources.ImageRestored); }
public async Task DeployWindows(InstallOptions options, RaspberryPi device, IObserver <double> progressObserver = null) { await windowsDeployer.Deploy(options, device, progressObserver); }
public Task Execute() { return(windowsDeployer.Deploy()); }