Jump to content

Recommended Posts

Posted

If $colItems1.Count = 0 and StringInStr(@IPAddress1,"10.9") then

and

If StringInStr($objAntiVirusProduct.displayName, "ESET Smart Security" @IPAddress1,"10.9") then

error.

Posted (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 by ZacUSNYR
Posted

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)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...