(imported topic written by SystemAdmin)
Hi,
I am trying to write a relevance clause to indentify a new application instance. The old program is called EA3000, the new one is called UES.
I’ve written two pieces of code. One looks for the existance of the installed programs files folder NOT being there, the other obviously, with the existence of the folder for the new UES program. (BTW, UES is an extension of EA3000, so will be included in addition to the standard EA3000 folders).
The difference between the two programs is the existence of the “Employment Systems” folder at “C:\Program Files”. UES adds this folder in addition to one from EA3000 called “Employment”. EA3000 exists if the folder “C:\Program Files\Common Files\DEWR” exists.
When I run the following relevance (see bottom) it says that “Employment Systems” exists when it does not. I can only assume that it is because the word “Employment” is included in the “Employment Systems” folder.
I’m sure this is probably a syntax problem. Is there a way to include spaces (eg %20) to correct this clause and (if so) what would that look like?
These are the two clauses that I am using are (checks that UES is not installed):
(name of operating system = “WinXP” OR name of operating system = “Win2003” OR (name of it = “WinVista” and product type of it = nt workstation product type) of operating system OR (name of it = “Win2008” or (name of it = “WinVista” and product type of it != nt workstation product type)) of operating system) AND (exists service “Employment Updater”) AND (exists “C:\Program Files\Common Files\DEWR”) AND (not exists “C:\Program Files\Employment Systems”)
and (Checks that UES is installed).
(name of operating system = “WinXP” OR name of operating system = “Win2003” OR (name of it = “WinVista” and product type of it = nt workstation product type) of operating system OR (name of it = “Win2008” or (name of it = “WinVista” and product type of it != nt workstation product type)) of operating system) AND (exists service “Employment Updater”) AND (exists “C:\Program Files\Common Files\DEWR”) AND (exists “C:\Program Files\Employment Systems”)
Thanks in advance
Markj