RobotStudio event

Getting InterLINK Version via SDK [WebWare SDK]

Options

Hi!

Another nice "problem":

How do I determine the current version of InterLINK installed on a machine? I did search the Help, but didn't find anything about this.

I want to use this method to look for "old" versions of InterLINK running on machines, since we use 3.02, 4.0 and 4.5. If a app is running on a 3.02 it does not work with the new IRC5. So i want to message the user if he tries to access a irc5, that his machine cannot do this.

Any ideas?

thx

M.

--------
01000111

Comments

  • John Wiberg
    Options

    Another?

    There is no easy way to check the interlink version from within the application.

    The closest you have within the SDK is the about box on the helper control.

    But you could use windows to check the file version property on "interlink.exe".

    You need a form a commandbutton and a reference for this example to work

    Private Sub Command1_Click()
    'needs reference:
    'Microsoft scripting runtime
        Dim fsoRes As FileSystemObject
        Dim str1 As String
        Set fsoRes = CreateObject("Scripting.FileSystemObject")
        str1 = fsoRes.GetFileVersion("C:Program FilesCommon FilesABB AutomationInterLinkinterlink.exe")
        Command1.Caption = str1
    End Sub

    John Wiberg38603,7209259259