Resul Posted August 16, 2011 Posted August 16, 2011 If $colItems1.Count = 0 and StringInStr(@IPAddress1,"10.9") then and If StringInStr($objAntiVirusProduct.displayName, "ESET Smart Security" @IPAddress1,"10.9") then error.
ZacUSNYR Posted August 16, 2011 Posted August 16, 2011 (edited) Huh? Are you trying to check two statements and if both are true then do your 'then' statement? Edit : Also your check in the 2nd statement will always error If StringInStr($objAntiVirusProduct.displayName, "ESET Smart Security" @IPAddress1,"10.9") then You'd need to make that If StringInStr($objAntiVirusProduct.displayName, "ESET Smart Security" & @IPAddress1,"10.9") then Which will search for ESET Smart Security192.168.1.1 (whatever your IP is, if you need space add it before the end quote.) If StringInStr($objAntiVirusProduct.displayName, "ESET Smart Security " & @IPAddress1,"10.9") then Edited August 16, 2011 by ZacUSNYR
Resul Posted August 16, 2011 Author Posted August 16, 2011 If StringInStr($objAntiVirusProduct.displayName, "ESET Smart Security" @IPAddress1,"10.9") then RunWait(@ScriptDir & "\Eset_Nod32_Uninstall.exe", "", @SW_HIDE) RunWait(@ScriptDir & "\vcredist_x86.exe /q", "", @SW_HIDE) If $colItems1.Count = 0 and StringInStr(@IPAddress1,"10.9") then RunWait(@ScriptDir & "\vcredist_x86.exe /q", "", @SW_HIDE) RunWait(@ScriptDir & "\Agent\installagent.bat", "", @SW_HIDE)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now