PDA

View Full Version : SB5 - clarion build number



NewsArchive
04-04-2006, 07:48 AM
Is there a way to detect Clarion build number for example, 9050 or 9051.

TIA

Ingasoftplus

NewsArchive
04-04-2006, 07:48 AM
Hello,

Yes, no problem. Three lines of code.

1. Detect the Clarion folder

2. Use Get File Information to get the File Version Resource of
%CLARIONFOLDER%\Build\c60runx.dll and store the value into a
%FILERESOURCE% variable.

3. Use Extract Build Number to get the build number out of
%FILERESOURCE% and store it into a %BUILDNUMBER% variable.

It displays 9051 for C63 build 9051.

Does this help?

Friedrich

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

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

NewsArchive
04-04-2006, 10:19 AM
Or you can use this:

If System does have Clarion 6.3 Then

Set Variable %FILERESOURCE% to ScriptItem->Get File Information(File Version (Resource)) of file "%_SB_TMP%"
Set Variable %CLARIONBUILD% to ScriptItem->Extract Build Number(%FILERESOURCE%)
Display Message Box "%CLARIONBUILD%" -- ""End

1. Use the If Clarion... Statement to check for a specific Clarion
version. If available, %_SB_TMP% holds the full qualified file
name to the Clarion IDE.

2. Use Get File Information and Extract Build Number to retrieve
the IDE build number

HTH,

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

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

NewsArchive
04-04-2006, 10:19 AM
Hi friedrich,

> Yes, no problem. Three lines of code.
>
> 1. Detect the Clarion folder
>
> 2. Use Get File Information to get the File Version Resource of
> %CLARIONFOLDER%\Build\c60runx.dll and store the value into a
> %FILERESOURCE% variable.
>
> 3. Use Extract Build Number to get the build number out of
> %FILERESOURCE% and store it into a %BUILDNUMBER% variable.
>
> It displays 9051 for C63 build 9051.
>
> Does this help?

Yes! Great! Thank you!