Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Exit script doesn't

  1. #1

    Default Exit script doesn't

    Hi Friedrich,

    In a very simple script that checks for file existence and if they
    exists, creates appropriate shortcut, I have this at the top of my script:

    Set Variable %BROKER_OFFICE_PATH% to "C:\BrokerOffice"
    If %BROKER_OFFICE_PATH%\DBSERV11.EXE "File or Folder doesn't exist" Then
    Display Message Box ("The DBSERV11.EXE file could not be found in
    the C:\BrokerOffice folder.", "Required file does not exist")
    Exit Installation ("99") [Cancel Wizard]
    End
    If %BROKER_OFFICE_PATH%\BROKERPARAMETERS.PM "File or Folder doesn't
    exist" Then
    Display Message Box ("The BrokerParameters.pm file could not be
    found in the C:\BrokerOffice fold...", "Required file does not exist")
    Exit Installation ("99") [Cancel Wizard]
    End

    When I run the installer exe with both files missing, I get both errors
    and then it continues. If the first one exists but not the second, it
    shows just the one message and then continues. It's like the "Exit
    Installation" is not working at all!

    I have used it before in other installs and it worked fine. This is SB
    build 10.0.5452 downloaded and installed this morning.

    Best regards,

    --
    Arnor Baldvinsson
    Icetips Alta LLC

  2. #2

    Default Re: Exit script doesn't

    Hi Friedrich,

    > Set Variable %BROKER_OFFICE_PATH% to "C:\BrokerOffice"
    > If %BROKER_OFFICE_PATH%\DBSERV11.EXE "File or Folder doesn't exist" Then
    > Display Message Box ("The DBSERV11.EXE file could not be found in the
    > C:\BrokerOffice folder.", "Required file does not exist")
    > Exit Installation ("99") [Cancel Wizard]
    > End
    > If %BROKER_OFFICE_PATH%\BROKERPARAMETERS.PM "File or Folder doesn't
    > exist" Then
    > Display Message Box ("The BrokerParameters.pm file could not be found
    > in the C:\BrokerOffice fold...", "Required file does not exist")
    > Exit Installation ("99") [Cancel Wizard]
    > End

    This is what happens when I run the script, with both files missing:

    https://www.screencast.com/t/nTtJHQQvM3Q

    This stuff is at the top of a wizard created script:

    https://www.screencast.com/t/gW4D33QcH7V

    Nothing fancy, it just checks if those files exist and if they do it
    creates couple of shortcuts.

    Am I missing something?

    Best regards,

    --
    Arnor Baldvinsson
    Icetips Alta LLC

  3. #3

    Default Re: Exit script doesn't

    Hi Friedrich,

    >> Exit Installation ("99") [Cancel Wizard]

    Found it! It was the [Cancel Wizard] - if I uncheck it, the exit
    happens instantly. I must have checked it, but shouldn't it work
    regardless if the Exit is outside of the wizard loop?

    Best regards,

    --
    Arnor Baldvinsson
    Icetips Alta LLC

  4. #4

    Default Re: Exit script doesn't

    Hi Arnor,

    > Found it! It was the [Cancel Wizard] - if I uncheck it, the exit
    > happens instantly. I must have checked it, but shouldn't it work
    > regardless if the Exit is outside of the wizard loop?

    The "Cancel Wizard" checkbox option is there to "cancel" the Loop Wizard.
    This option posts an IDCANCEL event to the dialog. It is ignored outside
    the Loop Wizard.

    http://www.lindersoft.com/forums/sho...1854#post51854

    By the way, IMO this option is broken (don't know why and when, but think in
    late 7.x). I'll check this.

    But "Cancel Wizard" will never work outside the "Loop Wizard".

    Friedrich
    Attached Images Attached Images  

  5. #5

    Default Re: Exit script doesn't

    Hi Friedrich,

    > The "Cancel Wizard" checkbox option is there to "cancel" the Loop Wizard.
    > This option posts an IDCANCEL event to the dialog. It is ignored outside
    > the Loop Wizard.
    >
    > http://www.lindersoft.com/forums/sho...1854#post51854
    >
    > By the way, IMO this option is broken (don't know why and when, but think in
    > late 7.x). I'll check this.
    >
    > But "Cancel Wizard" will never work outside the "Loop Wizard".

    Understood, but should it not still terminate the script, even if the
    "Cancel Wizard" is accidentally checked? To me it sounds like it should
    just be ignored if you are not inside the loop.

    Best regards,

    --
    Arnor Baldvinsson
    Icetips Alta LLC

  6. #6

    Default Re: Exit script doesn't

    Hi Arnor,

    > But "Cancel Wizard" will never work outside the "Loop Wizard".
    >
    > Understood, but should it not still terminate the script, even if the
    > "Cancel Wizard" is accidentally checked? To me it sounds like it should
    > just be ignored if you are not inside the loop.

    No, in this case it should not terminate the script if it is not inside a
    "Loop Wizard".

    The "Exit Installation..." script function with the "Cancel Wizard" option
    *UN*checked terminates the script processing immediately. But the "Exit
    Installation..." script function with "Cancel Wizard" checked does not
    really terminate the script. Instead, it posts (sends) an event to the
    dialog to "simulate" a clicked 'Cancel' button (IDCANCEL message). This
    event cancels the installation and (optionally) displays the "final" wizard
    dialog(s) (e.g. "install has been canceled yada"). [note: this seems to be
    broken].

    Friedrich

  7. #7

    Default Re: Exit script doesn't

    I'll post an example to demonstrate the difference between 'Exit
    Installation ("1234")' and 'Exit Installation ("1234") [Cancel Wizard]' when
    I have fixed it in SB.

    Friedrich

  8. #8

    Default Re: Exit script doesn't

    Hi Friedrich,

    > No, in this case it should not terminate the script if it is not inside a
    > "Loop Wizard".
    >
    > The "Exit Installation..." script function with the "Cancel Wizard" option
    > *UN*checked terminates the script processing immediately. But the "Exit
    > Installation..." script function with "Cancel Wizard" checked does not
    > really terminate the script. Instead, it posts (sends) an event to the

    Understood. Could the compiler throw a warning IF it encounters a
    "Exit" WITH the "Cancel Wizard" checked OUTSIDE of a LOOP?

    I must have checked this accidentally and it completely failed to do
    what I expected it to do. It would be nice if the compiler could help out

    Best regards,

    --
    Arnor Baldvinsson
    Icetips Alta LLC

  9. #9

    Default Re: Exit script doesn't

    "WARNING: If you do this again, you'll lose one month of subscription
    time"<g>

    >Understood. Could the compiler throw a warning IF it encounters a
    >"Exit" WITH the "Cancel Wizard" checked OUTSIDE of a LOOP?

    Jeff Slarve
    www.jssoftware.com
    Twitter free since Jan 11, 2016
    I'll search help files & Google for you.

    Grammar troll's, are the worse.

  10. #10

    Default Re: Exit script doesn't

    > "WARNING: If you do this again, you'll lose one month of subscription
    > time"<g>

    <G> ;-)

    Friedrich

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •