Announcement

Collapse
No announcement yet.

Silent adobe acrobat install

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Silent adobe acrobat install

    Hi
    ​​​​​​i made exe program to show PDF files with PDF object but if i run it on any PC doesn't have Adobe acrobat reader it showing me error "there's no reader".
    so how to make the program check if there is Adobe acrobat installed on PC or not,,, ،، then,,,, ,,,,if not install Adobe acrobat first in silent mode then open my exe program.
    Thanks 4 ur time

  • #2
    File = File.DoesExist(_ProgramFilesFolder..."\\Adobe\\Rea der.exe")
    if File then
    TODO
    else
    Shell.Execute(_SourceFolder.."\\AutoPlay\\Docs\\Re ader.exe", "open", "/S", "", SW_HIDE, false);


    search parameters for abobe silent installation
    and replace

    Comment


    • #3
      taito2020
      In Help menu (F1) there is a section "How do I?" where you can find how to check if a specific software is installed. (see attachment).

      Additionally, there is a fantastic plugin that allows to see PDF within your application even if there is no Adobe Reader installed!

      You can find it here: https://www.facebook.com/Programando...ayMediaStudio/

      David
      Attached Files

      Comment


      • #4
        hey man does not seem the case to stop publishing links from other sites without having permission

        Comment


        • #5
          Herrin, did not know that restriction. I am sorry. How do I delete the post?

          David

          Comment


          • #6
            Originally posted by daviz View Post
            Herrin, did not know that restriction.
            David

            why did you ask permission from the "brazilian"
            or to the "Spaniards"? do you think they like?
            next time make sure first.....
            ok let's close here and learn how to behave




            Here an ActiveX PDF reader example without adobe reader (http reader too)


            Click image for larger version

Name:	Cattura.PNG
Views:	204
Size:	57.2 KB
ID:	304601






            PDFViewer 1.1.0.0

            Comment


            • #7
              Actually, yes. I asked permission from the creator of plugin. Is it ok, then?

              David

              Comment


              • #8
                @taito2020

                In response to the 1st part of your question: as suggested by daviz, the easiest way to check for dependencies such as Adobe Acrobat is by using the built-in Dependencies function under the Project menu:



                From there you can set Dependency preferences for Display Name, Minimum Version No, Download Link, etc...




                However, the better way is by coding the Dependency into Globals, yourself. This will give you greater control over specifics - as well as giving you the option to tailor GUI responses for the missing Dependency. Create a custom function to do this.

                Attached is an example of this kind of custom function. It'll detect for the presence of both the free Adobe Reader & the full Adobe Acrobat Pro. The example apz is just to demonstrate the concept. (Tailor it to your needs). The functions contained herein have been tested on Win7 (for both the free Adobe Reader & the full Adobe Acrobat Pro) up until & including Adobe Reader DC v19.8.20071.41678.

                Note that later versions of Acrobat remain untested - so to be inclusive of the most recent versions, it may be necessary to update Line-26 & Line-30 in Globals. These variables identify the Acrobat executable via registry key. This example also remains untested under Win10 - so no guarantees from this end.

                ......

                In regards the 2nd part of your question (to have Acrobat install silently), you'd need to detect & find the 'silent switch' for the particular version of Acrobat to which the user is being directed by your Dependency module. So first, I'd recommend some background reading on 'switches', viz: http://unattended.sourceforge.net/installers.php

                Then have a look at utilities which can sniff out these switches & generate the relevant commands. ie. USSF (Universal Silent Switch Finder) https://www.raymond.cc/blog/find-hid...or-setup-files

                Also check out sites like ITNinja which publicly post known switches to widely used software: https://www.itninja.com/software-lib...dobe/acrobat-1

                Lastly, check here for Adobe Reader, specifically: http://jaredheinrichs.com/how-to-sil...rrect-way.html
                Attached Files

                Comment


                • #9
                  taito2020

                  In response to the 1st part of your question: as suggested by daviz, the easiest way to check for dependencies such as Adobe Acrobat is by using the built-in Dependencies function under the Project menu:



                  From there you can set Dependency preferences for Display Name, Minimum Version No, Download Link, etc.

                  However, the better way is by coding the Dependency into Globals yourself. Will give you greater control over specifics & the option to tailor GUI responses for the missing Dependency. Create a custom function to do this. Attached is an example which detects for both the free Adobe Reader & the full Adobe Acrobat Pro. This is just to demonstrate the concept (tailor it to your needs).



                  The functions contained therein have been tested under Win7 (for both the free Adobe Reader & the full Adobe Acrobat Pro) up to & including Adobe Reader DC v19.8.20071.41678. Note that latter versions remain untested - so to be inclusive of the most recent releases, it may be necessary to update Lines 26 & 30 in Globals. (These variables identify the Acrobat executable via registry key). This example also remains untested under Win10 (so no guarantees from this end).

                  ......

                  In regards the 2nd part of your question (to have Acrobat install silently), you'd need to detect & find the 'silent switch' for the particular version of Acrobat the user is being prompted to use. So first, I'd recommend some background reading on 'switches'. Then have a look at utilities which can sniff out these switches & generate the relevant commands. ie. USSF (Universal Silent Switch Finder).

                  Some useful links:

                  Comment


                  • #10
                    Edit,
                    Oops, forgot to attach the example. Here you go ...
                    Attached Files

                    Comment


                    • #11
                      That is quite a complete example, returns very specific details, great BioHazard!

                      David

                      Comment


                      • #12
                        Thank you herrin david BioHazard for your help ,,,
                        great info and plugins ,,, my app will see the lights finally

                        Comment

                        Working...
                        X