public void LogError(string message) Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine($"[ERROR] DateTime.Now:HH:mm:ss - message"); Console.ResetColor();
public USBDKInstallerFeature(ILogger logger = null) _downloadPath = Path.Combine(Path.GetTempPath(), INSTALLER_FILENAME); _logger = logger ?? new ConsoleLogger(); 2-download and install usbdk-1.0.22-x64.msi
private bool IsUSBDKInstalled() try // Check if USBDK driver exists string driverPath = Path.Combine(Environment.SystemDirectory, "drivers", "UsbDk.sys"); if (File.Exists(driverPath)) return true; public void LogError(string message) Console