Hello Folks!
Just came across this site after deciding to automate a Malwarebytes install. Like so many others before me I think i've racked my brain to the point where I can't get it so here I am.
The script works great all but for one step. After the program updates, a dialog box pops up and says that the database was successfully updated. I tried Winwaitactive then enter to try to get it to get out of that prompt and continue with my quickscan but it just won't go. I'm posting the code below. I've been editing between lines 8 and 9, the last two commands. Please help!!!
$ver=FileGetVersion("C:\Program Files\Malwarebytes' Anti-Malware\mbam.exe")
If $ver<"1.46.0.0" Then ;Check if installed. If not, do so.
InetGet("http://www.malwarebytes.org/mbam/program/mbam-setup.exe", "c:\mb.exe", 0)
RunWait("c:\mb.exe /SILENT")
FileDelete ("c:\mb.exe")
EndIf
;Installed. Update then scan.
RunWait("C:\Program Files\Malwarebytes' Anti-Malware\mbam.exe /updateshowdialog")
RunWait("C:\Program Files\Malwarebytes' Anti-Malware\mbam.exe /quickscanterminate")
I think I'm running into troubles because there's two boxes open with Malwarebytes in the title, the update window and the dialog box saying it was successful. Thanks everyone!!! mbam2.au3