diff --git a/lib/shared/sdk/usbboot/usb.js b/lib/shared/sdk/usbboot/usb.js index d0e2d98f..6e3bc98f 100644 --- a/lib/shared/sdk/usbboot/usb.js +++ b/lib/shared/sdk/usbboot/usb.js @@ -74,15 +74,22 @@ exports.listDevices = () => { // Include driverless devices into the list of USB devices. if (process.platform === 'win32') { - const winusbDriverGenerator = require('winusb-driver-generator') - for (const device of winusbDriverGenerator.listDriverlessDevices()) { - devices.push({ - accessible: false, - deviceDescriptor: { - idVendor: device.vid, - idProduct: device.pid - } - }) + // NOTE: Temporarily ignore errors when loading winusb-driver-generator, + // due to C Runtime issues on Windows; + // see https://github.com/resin-io/etcher/issues/1956 + try { + const winusbDriverGenerator = require('winusb-driver-generator') + for (const device of winusbDriverGenerator.listDriverlessDevices()) { + devices.push({ + accessible: false, + deviceDescriptor: { + idVendor: device.vid, + idProduct: device.pid + } + }) + } + } catch (error) { + // Ignore error } }