Archive: Adobe Reader Installed Check


Adobe Reader Installed Check
  I feel like such a dweeb, this seems like a simple question, but I've been having trouble with it--how can I check if Adobe Acrobat Reader (You know, for PDFs) is installed? :weird:


EnumRegKey$0 "HKLM" "SOFTWARE\\Adobe\\Acrobat Reader" "0"


>IfErrors 0 EndError

# Put anything here to be executed when the code above
# has an error

>EndError:

>StrCmp $0 "" 0 EndNotExists

# Put anything here to be executed when Adobe Acrobat
# doesn't exist

>EndNotExists:

># Normal Code
This code detects too its major version (returned on the result).

(Tested only with Acrobat Reader 6.0)