Q: if (exists folder “C:\Program Files (x86)\ZOHO Corp\ADSelfService Plus Client Software” whose ( exists file “ADSSPDesktop.exe” of it )) then (“Installed”) as string else (“Not Installed” ) AND if (exists folder “C:\Program Files\ZOHO Corp\ADSelfService Plus Client Software” whose ( exists file “ADSSPDesktop.exe” of it )) then (“Installed”) as string else (“Not Installed” )
E: This expression could not be parsed.
Q: not exists folder “C:\Program Files (x86)\ZOHO Corp\ADSelfService Plus Client Software” OR not exists folder "C:\Program Files\ZOHO Corp\ADSelfService Plus Client Software
E: A string constant had no ending quotation mark.
A couple problems with the first clause. You can’t perform Boolean commands (AND) on strings, and you should use parentheses to better control order of execution.
Q: if ((exists folder “C:\Program Files (x86)\ZOHO Corp\ADSelfService Plus Client Software” whose ( exists file “ADSSPDesktop.exe” of it)) OR (exists folder “C:\Program Files\ZOHO Corp\ADSelfService Plus Client Software” whose ( exists file “ADSSPDesktop.exe” of it ))) then (“Installed”) else (“Not Installed”)
For the second Clause, the Error tells you that a closing quote is missing.
Q: not exists folder “C:\Program Files (x86)\ZOHO Corp\ADSelfService Plus Client Software” OR not exists folder “C:\Program Files\ZOHO Corp\ADSelfService Plus Client Software”