Announcement

Collapse
No announcement yet.

Install Acrobat, if selected?

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

  • Install Acrobat, if selected?

    I have been trying to use a radio button set to determine whether or not a user wants to install Adobe Acrobat along with the regular application installation. As with the SF6 User Guide, some of my help is in PDFs.

    The programming interface doesn't make senese to me...

  • #2
    Re: Install Acrobat, if selected?

    On the Radio Buttons screen's properties, click the Custom tab. There you will see a field labeled "Store selected button's value in variable". This will enable you to know which one the user selected.

    So what you could do is create a condition on the AFTER actions tab of that screen that will conditionally launch the install based on the user selection.

    For example, you could have something that looks like:

    IF (%RadioSelection% = "Option1")
    Execute(......)
    END IF

    where Option1 is the value of one of the radio buttons.

    That is basically how you would accomplish it. Hope that helps.

    Comment


    • #3
      Re: Install Acrobat, if selected?

      Thanks for your help, but...why does:

      IF %RadioSelectionIndex%= 1)
      Execute (%SrcDir%\acrobat\AdbeRdr60_enu_full.exe)
      END IF

      Cause the expression builder to issue the warning "Invalid Escape Sequence" at position 50?

      I have added quotes and (separately added another "\") to the execute expression and still get errors. The other errors mention someting about an incomplete expression (Execute)

      Why don't you have more "real" examples of acceptable code in the help files?

      Comment


      • #4
        Re: Install Acrobat, if selected?

        I believe the problem you are having is that you are placing the "IF" and the Execute action all inside your condition.

        The only thing that you need to have in the condition is %RadioSelectionIndex%= 1 the rest will be actions such as the Execute action and the IF control structure etc.

        Comment


        • #5
          Re: Install Acrobat, if selected?

          So, then how do you allow for multiple conditions like:

          IF %RadioSelectionIndex%= 1)
          Execute (%SrcDir%\acrobat\AdbeRdr60_enu_full.exe)
          END IF

          and...

          IF %RadioSelectionIndex%= 2)
          Execute (%SrcDir%\acrobat\AdbeRdr60_enu.exe)
          END IF

          Thanks again...

          Comment


          • #6
            Re: Install Acrobat, if selected?

            What you have in your post is exactly what you need to do. You will need to create multiple IF control structures to take care of each condition you need to check for. So you will likely need a few IF control structures if you are checking for a series of different situations.

            Just as a note, you can also use OR, AND in your control structures. So if you need two conditions to be TRUE, you could have something like:

            (%RadioSelectionIndex% = 1) AND (%MyVar% = TRUE)

            You can find further information on Expressions in Chapter 15 of the Setup Factory 6.0 User's Guide.

            Hope that helps.

            Comment

            Working...
            X