Jump to content

StringInStr problem


Resul
 Share

Recommended Posts

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
Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...