XOR help

(imported topic written by sinucus)

I’m trying to write a fixlet similar to an XOR statement. I’m having an issue with a specific MS hotfix. The issue is that on some systems, the dll’s are not being updated in \system32\drivers. The new files are being written to \system32\driverstore\filerepository.

What I’m trying to look for is, if \drivers\file.dll version is < 6002.22000 then I need the patch, but only if \system32\driverstore\filerepository\file.dll exists and is NOT > 6002.22000

So if drivers\file is 6002.18000 but \filereposity\ exists and is 6002.22009 then I’m good, but if \fileposistory does not exist, then patch.

On this same note, is there an XOR equivilent?

q: true or false

A: True

I’d like to see

q: true XOR false

A: false

(imported comment written by SystemAdmin)

As far as I can tell, your second sentence essentially covers it. Also, I would tend to check the file version <=6002.22000, rather than negating a >6002.22000. I always try to avoid negatives where i can, as it’s then too easy to end up with multiples and have to think through the logic carefully. :wink:

(Note: not real relevance)

Q: If ((exists \system32\driverstore\filerepository\file.dll and version of file <= 6002.22000) and \drivers\file.dll version is < 6002.22000) then patch away.

Would this not cover what you’re trying to do?

-Jim