PDA

View Full Version : SB8 Request



NewsArchive
05-31-2015, 10:37 AM
Is Friedrich away? I'm not getting any replies which is unusual.

From: John Fligg
Sent: 29 May 2015 10:57
To: Friedrich Linder (Friedrich Linder)
Subject: SB8 request?

Hi Friedrich

I am currently developing heavily and finding the version number something
of a nuisance when I have to reset the registry every time I reinstall.

I was wondering:

Would it be possible to have a checkbox which incremented the [PRODUCTVER]
every time the installer compiled? Would there be a way to do that? Or could
it be coded?

Do you see the problem? Because I am developing and installing over and over
again my registry is updated to the same version number every time and my
script is checking the version every time and telling me the version already
exists.

Maybe there is another way round and that is to check if I am running in
development mode but I don’t see how that is possible as I am actually
testing so far as the installer knows in a live environment.

So the easiest solution is simply to update that version number each time it
compiles. So it would be each time compiled from 15.50.00 to 15.50.01 and so
on.

Many thanks
John Fligg

NewsArchive
05-31-2015, 10:38 AM
John,

Use either the SV version template or the CHT version template that
increments the version number when you compile.

You can then use the #get file info command to extract the version
number and use as you wish.

--

Russ Eggen
RADFusion International, LLC

NewsArchive
06-01-2015, 02:20 AM
John,

There are probably a number of more elegant solutions. But here's a
workaround using that Swiss Army tool - SB.

What I've done is create a small helper app to run at the start of the
compiling of the actual installer. Its purpose is just to increment the
version number (in an INI file). I've done similar things with Clarion
(running a helper app at the start of compile) to update an include file
that has a compile date/time.

I used the helper app rather than trying to increment the version in the
main installer because I wanted to use functions (specifically, handle
string operation) that aren't available at compile time.

I think this version incrementing should work for what you need. But YMMV.

jf

NewsArchive
06-01-2015, 02:34 AM
Hi John,

> Would it be possible to have a checkbox which incremented the [PRODUCTVER]
> every time the installer compiled? Would there be a way to do that? Or could
> it be coded?

Use Build Automator. I do this with every single install I create - let
BA handle all version information. Takes about 10 seconds for you to
set up:)

Best regards,


--
Arnor Baldvinsson - Icetips Alta LLC

NewsArchive
06-01-2015, 02:35 AM
Is that thing turbo charged?

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

Source code is like a joke.
If you have to explain it, then it's not funny.

NewsArchive
06-01-2015, 02:35 AM
Hi Jeff,

> Is that thing turbo charged?

YES!<g>

To see how to do this, download the Utilities example from
http://www.buildautomator.com/download-examples.php - it's old, but it
will show how I do it.

I let BA completely update all my version resources in all my installs.
I use variables in BA for the major and minor versions and then an
incrementing variable for the subversion number (3rd element of the
version number string). See http://screencast.com/t/42CQnRjRg3

Best regards,

--
Arnor Baldvinsson - Icetips Alta LLC

NewsArchive
06-01-2015, 02:37 AM
That's a good idea. I modified the SV resource template to use a
global minor version file instead of having to update each app
individually, but I should have checked BA out first.

>
>I let BA completely update all my version resources in all my installs.
> I use variables in BA for the major and minor versions and then an
>incrementing variable for the subversion number (3rd element of the
>version number string). See http://screencast.com/t/42CQnRjRg3

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

Source code is like a joke.
If you have to explain it, then it's not funny.

NewsArchive
06-01-2015, 02:37 AM
> Use Build Automator. I do this with every single install I create - let
> BA handle all version information. Takes about 10 seconds for you to
> set up:)

+1


:-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
www.clarionproseries.com - ProScan, ProImage, ProPath and other Clarion
developer tools!
www.seal-soft.com - The xProduct Clarion templates - xWordCOM, xToolTip,
xDataBackup Manager and more!
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
06-03-2015, 01:48 PM
John no longer uses Clarion, but he still uses SetupBuilder.

Andre Labuschagne

NewsArchive
06-03-2015, 01:49 PM
Forgot to reply to this thread. There will be a built-in function in the
next SB release to handle this.

Friedrich

NewsArchive
06-03-2015, 01:49 PM
Excellent

Andre Labuschagne

NewsArchive
08-29-2015, 11:15 AM
> Would it be possible to have a checkbox which incremented the [PRODUCTVER]
> every time the installer compiled? Would there be a way to do that? Or
> could it be coded?

This is a new built-in feature of the upcoming SetupBuilder 10.

Friedrich