Installing Adobe Reader with systems that do NOT have acrobat installe

(imported topic written by SystemAdmin)

We are upgrading to Adobe Reader 9.0:

Fixlet:

Adobe Reader 9.0 Available - Adobe Reader < 9.0

and have found that some systems have Acrobat installed… which causes a conflict when we upgrade them.

So we want to push this upgrade to only systems that do NOT have Acrobat installed. Below is the relevance to determine which version of acrobat is currently installed. All we need is to exclude any version of Acrobat.

unique values of (if exists value “DisplayName” of it then value “DisplayName” of it as string & " | " & (if exists value “DisplayVersion” of it then value “DisplayVersion” of it as string as version as string else “<N/A>”) else nothings) of keys whose ((exists value “UninstallString” whose (exists match (regex “(AC76BA8.)-(\d})-(.{4{4})-(7760|BA7E)-(.{12})”) of (it as string)) of it) OR ((exists match (regex “^\sadobe\sacrobat\s*\d+(.\d+)\s$”) of (value “DisplayName” of it as string as lowercase)) AND (exists value “InstallLocation” whose (exists folder “Acrobat” of folder (it as string)) of it))) of key “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry

Thanks!

(imported comment written by BenKus)

You might try adding “not exists …” to the front of your expression so it will return TRUE only if no version of Acrobad is installed:

not exists unique values of (if exists value “DisplayName” of it then value “DisplayName” of it as string & " | " & (if exists value “DisplayVersion” of it then value “DisplayVersion” of it as string as version as string else “<N/A>”) else nothings) of keys whose ((exists value “UninstallString” whose (exists match (regex “(AC76BA8.)-(\d})-(.{4{4})-(7760|BA7E)-(.{12})”) of (it as string)) of it) OR ((exists match (regex “^\sadobe\sacrobat\s*\d+(.\d+)\s$”) of (value “DisplayName” of it as string as lowercase)) AND (exists value “InstallLocation” whose (exists folder “Acrobat” of folder (it as string)) of it))) of key “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry

Ben

(imported comment written by SystemAdmin)

thanks Ben