shawnlehner
Posts: 5
Joined: Sun Sep 23, 2012 8:47 pm

Selecting a version for Adobe Reader prerequisite

Hello everyone,

I apologize in advance if this has already been asked but I could not find anything with my searching of these boards or the tutorials section ...

I need to have Adobe reader installed for my application. The version isn't very important to me ... I just need to make sure they have something installed that can view basic PDF files. Currently my installer has "Adobe Reader 9" checked, however, it appears to run into issues on Windows 8 if they already have Adobe Reader X (maybe XI) installed. So my questions are as follows:

1. Which options should I check for Adobe Reader? I assumed that if I wanted Adobe Reader 9 or newer I should simply checked Adobe Reader 9 but that does not appear to be the case.
2. Should I checked all Adobe Reader versions I accept? (9, X, XI)?
3. Is there a better way to handle this situation in general?


Thank you!
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Selecting a version for Adobe Reader prerequisite

Hello,

Indeed, this seems to be an Advanced Installer limitation. An improvement will be available in a future version of Advanced Installer, thank you for bringing this to our attention. Until then, as a workaround you can proceed like this:
- Go to "Prerequisites" page and add our "Adobe Reader 9" predefined prerequisite to your project.
- Go to "Install Conditions" tab and in the "Install Conditions" search list add the following search:
  • Criteria: Registry key exists
    Search String: HKLM\Software\Adobe\Acrobat Reader\11.0\InstallPath
- Build and run your project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shawnlehner
Posts: 5
Joined: Sun Sep 23, 2012 8:47 pm

Re: Selecting a version for Adobe Reader prerequisite

Thank you Daniel.

For my special case I actually changed the logic so it doesn't care what version you have installed and it seems to be working well. Here is the key I use:

HKLM\Software\Adobe\Acrobat Reader

I understand this means they could have a version older than 9 but like I said, this isn't important in my specific case. The most important thing is to make sure it is future proof.

Thanks!
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Selecting a version for Adobe Reader prerequisite

You're welcome. I'm glad you got this working.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Selecting a version for Adobe Reader prerequisite

Hello,

This improvement was added in version 10.5 of Advanced Installer released on September 02, 2013.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”