Announcement

Collapse
No announcement yet.

Abort Setup doesn't work properly

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

  • Abort Setup doesn't work properly

    k, i've setup some code in the beginning of my installer (in the Before tab of the first install screen), it checks the web for an update, if update found, it downloads and launches the update, and is supposed to abort...

    well, at first, i had the Abort Setup cmd inside an IF statement, but it wasn't working, so i moved it outside the IF, and set up some labels, similar to the Help manual, yet it's still not working (it will properly detect the update, download, and execute, but it won't abort....)

    <pre>IF (%executed%=TRUE)
    GOTO Label (abort)
    END IF
    IF (%executed%=FALSE)
    GOTO Label (skip abort)
    END IF

    abort <<<<label
    Abort Setup

    skip abort <<<<label
    </pre>


    any ideas what i'm doing wrong?

  • #2
    Re: Abort Setup doesn't work properly

    btw, i found a workaround

    i put all the update code in the Startup Actions section, and just put an Abort screen at the beginning of the installer, and moved Abort Setup to the Before section of the Abort screen, so it just quits... but if you know why the other way wasn't working, i'd appreciate knowing, it'd be much handier [img]/ubbthreads/images/icons/smile.gif[/img]

    Comment


    • #3
      Re: Abort Setup doesn't work properly

      I created a test consisting of assigning a value of TRUE to a variable and then checking the contents of that variable using the IF control structure which will execute the Abort action if the variable equals the string TRUE. I didn't have any problems on my end accomplishing that.

      Therefore, my guess that your problem is with the value of %executed%. There may be a trailing space in the value you are assigning to it. That is something to check.

      Comment


      • #4
        Re: Abort Setup doesn't work properly

        in that workaround, i did the exact same code (except the Abort Setup cmd was moved to a different screen), and it worked... =-\


        all i did was copy/paste

        Comment


        • #5
          Re: Abort Setup doesn't work properly

          If there is a bug there, we would like to resolve it. I couldn't seem to replicate it given the information you provided, however if you sent me your project file, I may be able to see something that was outside of your posted action script.

          Comment


          • #6
            Re: Abort Setup doesn't work properly

            How are you checking the web for an update?

            You might want to make sure the actions that do that are waiting for a result before continuing on.
            --[[ Indigo Rose Software Developer ]]

            Comment


            • #7
              Re: Abort Setup doesn't work properly

              i have a Get action that contacts a web script w/ the client version, and the web script compares the current version against the client version, and passes back a true/false type of result depending on what is found

              anyways, the workaround works fine (putting the actions on separate action tabs...), so i'll stick with that for now

              i'm out of town at the moment, but once i get back, i'll try to debug it a bit, see if i can track down what might be causing the error...

              Comment

              Working...
              X