Jump to content
Sign in to follow this  
Resul

StringInStr problem

Recommended Posts

Resul

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

and

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

error.

Share this post


Link to post
Share on other sites
ZacUSNYR

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

Share this post


Link to post
Share on other sites
Resul

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)

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.