I want to prepare an insatller for my .exe file but people who want to benefit from this software must have Acrobat Reader 10 installed...so how can I get people install Acrobat Reader 10 wiht my own software too. Thank you very much.

In other words when they install my software, I want my installer to ask them to insatll acrobat reader 10 too... Thank you very much.

asked 30 Dec '11, 11:56

PDFci's gravatar image

PDFci
1111
accept rate: 0%


I believe you first need to apply for a license as explained here

After that, you will be able to download a redistributable package, which can be installed in unattended mode from the installer using the command suggested in this post:

<runProgram>
  <program>${installdir}/adobe/AdobeRdr1000.exe</program>
  <programArguments>/msi EULA_ACCEPT=YES /qn</programArguments>
</runProgram>

Or if you want to just point your users to the website for them to download it, you could launch a browser to the download page if the user does not have it:

<booleanParameter>
   <name>get_adobe_reader</name>
   <explanation>Adobe Reader is required, check the below if you do not already have it installed to visit the download page. After downloading and installing it, please continue with the installation</explanation>
   <description>Visit Adobe Reader Download Page</description>
   <value>1</value>
   <postShowPageActionList>
    <launchBrowser>
      <url>http://get.adobe.com/reader/</url>
      <ruleList>
        <isTrue>
            <value>${get_adobe_reader}</value>
        </isTrue>
      </ruleList>
    </launchBrowser>
   </postShowPageActionList>
   <ruleList>
     <registryTest>
       <key>HKEY_CURRENT_USER\\Software\\Adobe\\Acrobat Reader\\10.0\\InstallPath</key>
       <logic>does_not_exist</logic>
       <name></name>
     </registryTest>
   </ruleList>
</booleanParameter>

Please not the page is just displayed if Adobe Reader is not found in the registry but it still make it possible to continue without installing it. If you want to prevent the installation, you could just throw an error in the initialization:

<initializationActionList>
    <actionGroup>
        <actionList>
            <launchBrowser>
                <url>http://get.adobe.com/reader/</url>
            </launchBrowser>
            <throwError>
                <text>This installer requires Adobe Reader. Please, install it and relaunch te process.</text>
            </throwError>
        </actionList>
        <ruleList>
          <registryTest>
            <key>HKEY_CURRENT_USER\\Software\\Adobe\\Acrobat Reader\\10.\\InstallPath</key>              
            <logic>does_not_exist</logic>
            <name></name>
          </registryTest>
        </ruleList>
    </actionGroup>
</initializationActionList>
link

answered 30 Dec '11, 12:41

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×29
×11
×6
×1
×1
×1
×1

Asked: 30 Dec '11, 11:56

Seen: 3,793 times

Last updated: 30 Dec '11, 12:41