View Full Version : Web version updates, INI etc.
NewsArchive
01-20-2006, 04:31 AM
Hi Friedrich,
I have a project that I update frequently via the webupdate. It has
happened that I have forgot to change the Product Version in the
"Enable iDeploy Web Updates" section, causing the update to fail.
Since I use the CWVersionRes template in my Clarion app, I wrote a
template that writes the version information to an INI file, that I
place in the same directory as the .sb5 file. That way, every time I
compile, this INI file is updated. My idea was then to show a message
in SB5 that showed the Product Version in the SB5 script, and the
value of the Product Version in the INI file.
So I used:
Set Variable %OFFICEVERSION% To GetIni("ProductVersion...)
But when I use a #MSG or #MSGBOX to show the %OFFICEVERSION% all I get
is the symbol, not the value. So I see:
"Office version is: %OFFICEVERSION%"
instead of:
"Office version is: 1.3.8.1939"
I've also tried with a compiler variable, same thing.
Also: How do I get the Product Version from the "Enable iDeploy Web
Updates" section???
BTW: I hadn't updated to the latest build, I'm downloading it now -
will report back if there is any difference...
Best regards,
Arnór Baldvinsson
Icetips Software
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
01-20-2006, 04:31 AM
Hi Arnor
You are going through the same problems that I went through recently!
First you have to set a Constant from the INI file.
Next set a Compiler varialbe from that constant
Then use that Compiler variable in the iDeploy Version field.
This works well, but please note that you need to compile TWICE since the
Compiler variable is set after the value is passed to the iDeploy
application. I've reported this to Friedrich am am awaiting his
reccomendations.
Regards
Mike
NewsArchive
01-20-2006, 04:31 AM
Mike,
Thanks for sending the script. Item in review.
Friedrich
--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 5
NewsArchive
01-20-2006, 04:31 AM
Hi Arnór,
Exactly what Mike said. But there seems to be a compiler problem
and Mike has to compile TWICE. Item in review.
BTW, #MSG does not resolve any compiler variable or constant. I'll
see if we can add this. But it will not be possible to display an
installer runtime variable (%OFFICEVERSION%) in the compiler window.
Friedrich
--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 5
NewsArchive
01-21-2006, 06:53 AM
Mike,
I think it's fixed now. We'll test it over the next few days.
Thanks,
Friedrich
--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 5
NewsArchive
01-21-2006, 06:53 AM
Hi Mike,
>First you have to set a Constant from the INI file.
>Next set a Compiler varialbe from that constant
>Then use that Compiler variable in the iDeploy Version field.
That is not the problem or what I want to do. I do not want the
version in the webupdate to be updated from the outside. What I want
to be able to do is to _show in a message_ the value of the ideploy
version and the value read in from my ini. The problem is that the
variables are not expanded in a #msg or #msgbox
Best regards,
Arnór Baldvinsson
Icetips Software
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
01-21-2006, 06:54 AM
Hi Friedrich,
>Exactly what Mike said. But there seems to be a compiler problem
>and Mike has to compile TWICE. Item in review.
See my reply to Mike, this is not the problem and not what I want to
do.
>BTW, #MSG does not resolve any compiler variable or constant. I'll
>see if we can add this. But it will not be possible to display an
>installer runtime variable (%OFFICEVERSION%) in the compiler window.
This is a real problem. In many cases I would like to put up messages
for me or the user where I need to be able to put information that I
have no idea what is at compile time.
Could I call a dll and pass the ideploy version information to it and
do this myself? All I need is to be able to compare the version
information in the ideploy against the ini value. I do _not_ want SB
to read the ini and put that into the ideploy, that has to be a manual
operation in this case.
Best regards,
Arnór Baldvinsson
Icetips Software
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
01-21-2006, 06:54 AM
Hi Arnór,
Aha, no I see what you are doing.
Set Variable %OFFICEVERSION% To GetIni("ProductVersion...)
Then display %OFFICEVERSION% in #MSG
But Set Variable is executed at installer runtime. Not at compile
time!
For example, if you use MYVAR = GETINI(Yadda) in Clarion then it's
also impossible to display the value of MYVAR at compile time (because
GETINI is executed at runtime).
You have to use compiler directives here.
I am leaving for the Depeche Mode mega concert now. I'll send you
some demo code this weekend.
Friedrich
--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 5
NewsArchive
01-21-2006, 06:54 AM
Hi Friedrich,
>Aha, no I see what you are doing.
>
>Set Variable %OFFICEVERSION% To GetIni("ProductVersion...)
>Then display %OFFICEVERSION% in #MSG
Well, my problem was that all I got was %OFFICEVERSION% not "1.3.8.0"
in the #MSG box, i.e. the variable was not expanded. I'll take a look
tomorrow with the latest build and see if there is a difference.
Enjoy your concert:)
Best regards,
Arnór Baldvinsson
Icetips Software
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
NewsArchive
01-24-2006, 05:15 AM
Arnór,
Both #msg and #msgbox compiler directives can resolve compiler variables
and constants now. This will be available in the next build.
--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 5
NewsArchive
01-25-2006, 03:19 AM
Hi Friedrich,
>Both #msg and #msgbox compiler directives can resolve compiler variables
>and constants now. This will be available in the next build.
AWSOME! Thank you very much:)
Best regards,
Arnór Baldvinsson
Icetips Software
San Antonio, Texas, USA
www.icetips.com
Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.