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
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
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
Re: Passing a variable to the Web Update file
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
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
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
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
Re: Passing a variable to the Web Update file
Guess he must be winding down for the holiday season..... <VBG>
Mike
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