@echo off

rem for emulex cli install
rem (2016/08/17)

setlocal

rem path adjustment
cd /d %~dp0\

if not EXIST "c:\Program Files\Emulex\Util\OCManager\HbaCmd.exe" (
    echo Now install the HBA Utility. Please wait a few minutes.
    elxocmcore-windows-x64-11.1.172.14-1.exe mmode=1 achange=0 /q2 > nul
    sc config "Emulex HBA Management" start= disabled > nul
    sc config "Emulex Management Interface Library v2" start= disabled > nul
    sc config "Emulex SvcMgr" start= disabled > nul
    sc stop "Emulex HBA Management" > nul
    sc stop "Emulex SvcMgr" > nul
)