PDA

View Full Version : Passing a variable to the Web Update file



NewsArchive
12-08-2005, 02:37 AM
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

NewsArchive
12-08-2005, 02:38 AM
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

NewsArchive
12-08-2005, 10:01 AM
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

NewsArchive
12-10-2005, 09:27 AM
Sent

NewsArchive
12-10-2005, 09:28 AM
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

NewsArchive
12-10-2005, 09:28 AM
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

NewsArchive
12-12-2005, 09:31 AM
Thanks Friedrich. BTW, isn't it the weekend on your side of the world too?

Mike

NewsArchive
12-12-2005, 09:31 AM
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

NewsArchive
12-12-2005, 09:31 AM
Guess he must be winding down for the holiday season..... <VBG>

Mike

NewsArchive
12-12-2005, 09:32 AM
Yes, it was <g>. And my goal was to fix a few minor bugs, but then came
down with a flu this weekend.

Friedrich

NewsArchive
12-12-2005, 09:32 AM
A different type of bug to fix.

--
Russ Eggen
www.radfusion.com

NewsArchive
12-12-2005, 09:32 AM
<BG>

Friedrich

NewsArchive
12-14-2005, 01:19 AM
Hi Friedrich

Do you think you could share the solution with me so that I can finish this
project?

Thanks

Mike

NewsArchive
12-14-2005, 01:19 AM
Hi Mike,

It will be available in the next update (I hope to release the new build
today or tomorrow).

As a temporary workaround, your can hardcode the version in your [VERSION]
compiler variable (and replace the $BUILD$ constant).

Friedrich

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

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