public async Task Execute() { var efiEspVolume = await phone.GetPartitionByName(PartitionName.EfiEsp); efiEspPath = efiEspVolume.Root; destinationFolder = Path.Combine(efiEspVolume.Root, "Windows", "System32", "BOOT"); bcdPath = efiEspVolume.Root.CombineRelativeBcdPath(); bcdInvoker = bcdInvokerFactory.Create(bcdPath); var shouldInstall = !IsAlreadyInstalled(); if (shouldInstall) { await CopyDevMenuFiles(); } await ConfigureBcd(); if (shouldInstall) { await dialog.Pick(Resources.DeveloperMenuInstalled, new List <Option>() { new Option("Continue", OptionValue.OK), }); } }
public async Task Execute() { var efiEsp = await phone.GetPartitionByName(PartitionName.EfiEsp); var bcdPath = efiEsp.Root.CombineRelativeBcdPath(); var bcdInvoker = bcdInvokerFactory.Create(bcdPath); await new BcdConfigurator(bcdInvoker, efiEsp).SetupBcd(); }