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

Thread: Passing a variable to the Web Update file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Passing a variable to the Web Update file

    Hi Friedrich

    I am passing the version number from my compiled app to SB5 via an INI file..

    In the SB5 script, at "Initialise Setup", I read the INI Build value into a contant - #const $BUILD$ = Get value from INI file:....
    Then I move the value from $BUILD$ into a compiler variable [VERSION] - #set compiler variable [VERSION] = $BUILD$

    I then use the compiler variable in the iDeploy Web Update - Product Version field

    I find that the first time I compile the script after opening SetupBuilder, the value in [VERSION] and hence the Web Update INI file is "$BUILD$"
    The next time I compile, it has the correct value of "3.7.25" or whatever it received from the INI file. So it appears that the $BUILD$ constant had not been initialised by the time I move the constant into the compiler variable, but then it is later on.

    I'm not sure why this is the case. Is "Initialise Setup" the correct place to load the constant from my INI file? Or is there an earlier place that I should do it?

    Ive attached my script.

    Thanks

    Mike

  2. #2

    Default Re: Passing a variable to the Web Update file

    Mike,

    Good question! I have to check this and get back to you.

    Thanks,

    Friedrich

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    "point. click. ship" - that's SetupBuilder 5

  3. #3

    Default Re: Passing a variable to the Web Update file

    Mike,

    Could you please send me the script password via private email? I cannot
    open the script.

    Thanks,

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    "point. click. ship" - that's SetupBuilder 5

  4. #4

    Default Re: Passing a variable to the Web Update file

    Sent

  5. #5

    Default Re: Passing a variable to the Web Update file

    Received, thank you. I'll see what I can do here (it's by design).

    Friedrich

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    "point. click. ship" - that's SetupBuilder 5

  6. #6

    Default Re: Passing a variable to the Web Update file

    Hi Mike,

    We found a "solution" for your specific case. The problem is that those
    (general) compiler variables are initialized before the compiler processed
    the script.

    We'll add some notes to the documentation.

    Thanks,
    Friedrich

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    "point. click. ship" - that's SetupBuilder 5

  7. #7

    Default Re: Passing a variable to the Web Update file

    Thanks Friedrich. BTW, isn't it the weekend on your side of the world too?

    Mike

  8. #8

    Default Re: Passing a variable to the Web Update file

    So far there's been 1,321 days in Friedrich's week and it still
    doesn't look like getting to the end too soon. <g>

    Best Regards,
    Geoff Spillane
    Data Down Under

  9. #9

    Default Re: Passing a variable to the Web Update file

    Guess he must be winding down for the holiday season..... <VBG>

    Mike

  10. #10

    Default Re: Passing a variable to the Web Update file

    Yes, it was <g>. And my goal was to fix a few minor bugs, but then came
    down with a flu this weekend.

    Friedrich

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Web update file diffs
    By timbojones in forum SetupBuilder
    Replies: 0
    Last Post: 10-30-2006, 04:22 PM
  2. Setting the installer/web update Version Info from a file
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 4
    Last Post: 08-23-2006, 07:59 AM
  3. SetupBuilder 5.5 Update Information [July 11, 2006]
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 2
    Last Post: 07-13-2006, 07:04 AM
  4. Configure iDeploy Web Update
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 1
    Last Post: 05-17-2006, 02:36 AM
  5. Passing a Constant or Variable Name to Install File(s)
    By LoboMgr in forum SetupBuilder 'How Do I' Questions
    Replies: 2
    Last Post: 12-13-2005, 11:15 AM

Posting Permissions

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