Install AlertLogic 2.1.1.0

email me

I created this to install AlertLogic from LANDesk. This will run in the ‘System’ account.

@echo on
set CurDir=%CD%
set ThisVer=2.1.1.0

REM CREATE EVENT LOG
\\%computername%\c$\windows\system32\EVENTCREATE.exe /T INFORMATION /L Application /ID 777 /d “Alert Logic %ThisVer% package installation STARTED by LANDesk”

REM INSTALL ALERTLOGIC
rem stop service
\\%computername%\c$\windows\system32\sc.exe stop “al_agent”
\\%computername%\c$\windows\system32\ping.exe -n 10 127.0.0.1>nul

rem install msi – use CurDir or a static [UNC] path to your msi
\\%computername%\c$\windows\system32\msiexec.exe /i “%CurDir%\al_agent.msi” prov_only=host
rem YOUR KEY GOES HERE
prov_key=b5ffb33f532d8263e3c55ad5336108b6dfdd21433356803677 /qn /norestart REBOOT=ReallySuppress
rem config service as automatic
\\%computername%\c$\windows\system32\sc.exe config al_agent start= auto

rem start service
\\%computername%\c$\windows\system32\sc.exe start “al_agent”
rem found in service config
rem “C:\Program Files (x86)\AlertLogic\agent\al-agent.exe” -d

REM STAMP REGISTRY
\\%computername%\c$\windows\system32\REG.exe ADD “HKEY_LOCAL_MACHINE\SOFTWARE\MYSOFTWARE\AlertLogic\%ThisVer%” /v InstallDate /d “%date% %time%” /t REG_SZ /f
\\%computername%\c$\windows\system32\REG.exe ADD “HKEY_LOCAL_MACHINE\SOFTWARE\MYSOFTWARE\AlertLogic\%ThisVer%” /v InstalledBy /d “LANDesk” /t REG_SZ /f

REM CREATE EVENT LOG
\\%computername%\c$\windows\system32\EVENTCREATE.exe /T INFORMATION /L Application /ID 777 /d “Alert Logic %ThisVer% package COMPLETED SUCCESSFULLY!”

exit /b 0

Reference: https://www.alertlogic.com/