INNER CODE UNIT · JavaScript

checkForMsvcRuntime

stemrollerapp/stemroller · main-src/main.js:275

async function checkForMsvcRuntime() {
  if (process.platform !== 'win32') {
    return true
  }

  try {
    // Will throw an error if it cannot find the file
    execSync('where vcruntime140.dll', {
      shell: 'cmd.exe',
      stdio: 'pipe',
      encoding: 'utf-8',
    })

    return true
  } catch (err) {
    const { response } = await dialog.showMessageBox(null, {
      type: 'warning',
      buttons: ['Yes', 'No'],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…