PDA

View Full Version : Install TPSFIX Version dependent



NewsArchive
10-08-2013, 08:53 AM
Need some suggestions on best how to accomplish the following.
Currently in Clarion 8 but going to Clarion 9 soon. Latest SB
Developer.

I have installation scripts that work fine except that they are
version dependent (they reference Clarion BIN folder directly). Using
the project "COPY DLL" function, I now have all referenced DLL's
copied into my work folder and reference that instead. All is good.

However how can I handle TPSFIX.EXE so that the installation will
pickup the proper version EXE since TPSFIX is dependent on runtime
DLL's? I assume that installing Clarion 8 TPSFIX probably won't work
to well in a Clarion 9 installation<vbg>.

I would like to be able to set it so that it will work regardless of
which version of Clarion is be used (major or even minor if runtime
changes).

Is there a command that can copy the correct TPSFIX based on current
project path to the work folder when the project is built? Is it
better to handle in SB? Inquiring minds want to know<g>.






Barton Whisler
Prosoft Inc.
Tampa, Florida

NewsArchive
10-09-2013, 01:00 AM
Barton,

What about the following (I'm thinking out loud):

1. Read (using the "#get file info..." compiler directive) the version
resource from one of the Clarion runtime DLLs located your work folder and
store it into a [CLARION_VERSION] compiler variable. Or better, read the
Version File Description.

2. Use "#ifcompvar... (Contains)" to check if [CLARION_VERSION] contains
Version 8 or 9 specific information. Then you know whether it is C8 or C9.

Based on this information, pick the correct (version specific) TPSFIX.EXE.

Should work fine.

Friedrich

NewsArchive
10-09-2013, 01:03 AM
Sounds like a excellent idea, will give it a try.

Thanks!

Barton Whisler
Prosoft Inc.
Tampa, Florida

NewsArchive
10-09-2013, 01:07 AM
>
> Sounds like a excellent idea, will give it a try.
>

Please keep us posted.

Friedrich