How to make an app - Andromo App Maker

Announcement

Collapse
No announcement yet.

Packages - a variable for "allow user to change"?

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

  • Packages - a variable for "allow user to change"?

    Hello Ulrich!
    My installer is designed for a few platforms (programs). A user selects one in the Radio Buttons window, then he is able to choose some settings in the Packages window. But is it possible to make some packages unavailable to user depending on what he has selected in the Radion Buttons window? Using add_package = {Install=true}; I am able to select & install particular packages depending on which Radio Buttons are selected but is it possible to edit the settings of the packages depending on a variable? I mean something like this:

    If Radio Button #3 is selected, change package ID#7 "allow user to change" setting to OFF.

    The result - when user selects Radio Button #3 he won't be able to operate the "tick". But if f/e Radio Button #4 is selected he would be able to tick/untick a package.
    Is it possible? Thanks for your help!

  • #2
    I attached two samples here, one without and one with categories. The second uses DlgSelectPackages.SetCategoryProperties(), and both use SetupData.SetPackageProperties() to control the individual packages. It depends on your setup which one is more appropriate for your case. They should be easy enough to understand...

    Ulrich
    Attached Files
    Last edited by Ulrich; 07-09-2018, 08:53 PM. Reason: Attached samples

    Comment


    • #3
      Amazing support, thanks!!!

      Comment


      • #4
        Works perfectly, thanks you so much!

        Just one more thing - I wish to get a package install status in the end of the install to do some other stuff depending on if it is installed or not. My guess is that Install = SetupData.GetPackageProperties("Core"); would be used? So if installed, the result would be just "true"? What would be the correct way of doing:

        If [Install = SetupData.GetPackageProperties("Core");] = true do [something] ?

        Comment


        • #5
          You would use something like this:
          Code:
          if SetupData.GetPackageProperties("PackageName").Install then
              -- Package was selected for installation
          end
          Ulrich

          Comment


          • #6
            Great! Thank you very very much!

            Comment

            Working...
            X