Announcement

Collapse
No announcement yet.

Repeating screens during setup

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

  • Repeating screens during setup

    Is it possible to programatically control what order screens appear in during a setup?

    I've got a screen where the users enter certain information (an edit boxes screen). In an "After action" I validate the data the user typed. When the data is invalid, I want to present a Message Box describing the error and then show the screen again so the user can correct the input.

    How can I do this?

    Thanks,

    Dan

  • #2
    Re: Repeating screens during setup

    Hi Dan,

    First make sure you are using the latest build 6.0.1.2.

    The following information was taken from the Setup Factory 6.0 Command Reference which should answer your question:

    %PreventNextPage%
    This is a special variable that can be set on a screen's Before or After action tabs. If this variable is set to TRUE, the installer will not allow the user to proceed to the next screen when the Next button is clicked; instead, the user will remain on the current screen. If set to FALSE, the installer will allow the user to proceed normally when they click Next.

    This variable is useful if you want to validate the data entered by the user on a screen. If the data is incorrect, you could display an error message and set %PreventNextPage% to "true" to make the user go back and enter valid data.

    The value of %PreventNextPage% is reset to FALSE every time a screen is displayed.

    Comment


    • #3
      Re: Repeating screens during setup

      Thanks. That works great.

      Is there any way to get rid of the "Displaying Dialog" dialog that appears when a message box is on the screen?

      Dan

      Comment


      • #4
        Re: Repeating screens during setup

        For that you could use the following built-in variable:

        %ShowActionProgressDlg%
        This variable controls whether or not the Action Progress dialog is visible. If this variable is set to TRUE, the Action Progress dialog will be visible. If it's set to FALSE, the Action Progress dialog won't be visible.

        Note: This variable has no affect during the uninstall.

        Comment


        • #5
          Re: Repeating screens during setup

          Thanks. I tried that and the dialog didn't go away.

          I tried setting as both before and after actions on the screen and as a before installing action in the project.

          Any thoughts?

          Comment


          • #6
            Re: Repeating screens during setup

            I just did a test and didn't have any problems.
            I placed the Assign Value action to set %ShowActionProgressDlg% to FALSE on the Before actions tab, and then the other actions on the AFTER actions tab of the screen. Are you using 6.0.1.2?

            Comment


            • #7
              Re: Repeating screens during setup

              That's exactly what I am doing. In my after handler I display a message box and I see this weird dialog. I've included a screen shot.

              I am using 6.0.1.2 evaluation.

              14073-untitled.JPG

              Comment


              • #8
                Re: Repeating screens during setup

                try again for the picture... Send me your real e-mail address (mine is [email protected]) and I'll e-mail you the picture since it doesn't seem to upload.

                14074-untitled.JPG

                Comment


                • #9
                  Re: Repeating screens during setup

                  If you're still having problems, send your project file(.sf6) to [email protected] and I'll take a look.

                  Make sure that you haven't made any spelling mistakes when assigning your value to the built-in variable.

                  Comment

                  Working...
                  X
                  😀
                  🥰
                  🤢
                  😎
                  😡
                  👍
                  👎