Checking CUrrent Adobe Version

(imported topic written by mruszkowski)

got this currently to check if adobe 6.0 reader exists:

if (exists folder “C:\Program Files\Adobe\Acrobat 6.0\Reader” whose ( exists file “Acrofx32.dll” of it )) then (version of file “Acrofx32.dll” of folder “C:\Program Files\Adobe\Acrobat 6.0\Reader”) as string else “Not Installed”

want to be able to check if other adobe reader version are present, how do I have it check when the install path is diffeent for each version.

tried this and got error,

if (exists folder “C:\Program Files\Adobe\Acrobat 6.0\Reader” whose ( exists file “Acrofx32.dll” of it )) then (version of file “Acrofx32.dll” of folder “C:\Program Files\Adobe\Acrobat 6.0\Reader”) as string OR if (exists folder “C:\Program Files\Adobe\Acrobat 7.0\Reader” whose ( exists file “Acrofx32.dll” of it )) then (version of file “Acrofx32.dll” of folder “C:\Program Files\Adobe\Acrobat 7.0\Reader”) as string else “Not Installed”

(imported comment written by SystemAdmin)

I think you need to change the ‘OR’ in your expression to an ‘else’. So it should be

if (exists folder “C:\Program Files\Adobe\Acrobat 6.0\Reader” whose ( exists file “Acrofx32.dll” of it )) then (version of file “Acrofx32.dll” of folder “C:\Program Files\Adobe\Acrobat 6.0\Reader”) as string

else

if (exists folder “C:\Program Files\Adobe\Acrobat 7.0\Reader” whose ( exists file “Acrofx32.dll” of it )) then (version of file “Acrofx32.dll” of folder “C:\Program Files\Adobe\Acrobat 7.0\Reader”) as string else “Not Installed”

(imported comment written by mruszkowski)

thanks, that worked :slight_smile: