@if /I "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
  REM echo Installing driver from 64-bit installer on 64-bit OS
  dpinst64.exe /sw /lm /f /p /sa
) else if /I "%PROCESSOR_ARCHITECTURE%" == "X86" (
  @if /I "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
    REM echo Installing driver from 32-bit installer on 64-bit OS (WOW64)
    rem  For separate driver package, x64DIR\dpinst.exe)
    dpinst64.exe /sw /lm /f /p /sa
  ) else (    REM echo Installing driver from 32-bit installer on 32-bit OS
    rem  For separate driver package, x86DIR\dpinst.exe)
    dpinst32.exe /sw /lm /f /p /sa
  )
)