Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: ReturnCodes

  1. #1
    Join Date
    Jun 2010
    Posts
    2

    ReturnCodes

    Has anyone been successful in returning any return codes other than 0 when using Application.Exit and Applicaiton.ExitScript in SF7? I've also tried the trial version 8.2 and no luck.

    No matter what I use, SetupFactory always returns a 0.

    I've tried a variety of numbers with the same result, 0.

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    how are you testing the return code? (exit code)

    works flawlessly in 7 and 8. (and 6 and....)

    if you're doing something like dropping to a dos box and then running your setup and then doing:
    echo %ErrorLevel%
    it will always be 0 - you need to do it in a batch file.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Jun 2010
    Posts
    2
    Thanks! the batch works. This brings up another question... why would you need a batch or outside script to call the setupfactory package to get the correct exitcode?
    Last edited by bt185025; 06-18-2010 at 09:01 AM.

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by bt185025 View Post
    Thanks! the batch works. This brings up another question... why would you need a batch or outside script to call the setupfactory package to get the correct exitcode?
    You don't "need" a batch file -- that's the only way to get the environment variable %ErrorLevel% to work.
    If you launch your setup from another program, you can correctly evaluate the exit code -- provided that language's "file run" function waits for the exe to finish and accepts it -- some languages return the PID -- clearly not your issue.

    Since we don't know how you're looking at the exit code -- we are not going to be able to tell you, specifically, why your method fails.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Posting Permissions

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