none
Launch condition - string comparison

    Question

  • Hi

    I have inherited am install project that requires/installs SQL2008 R2 EXPRESS and includes a launch condition to ensure that the install will not proceed if it cannot find it. It retrieves the version from the registry key:

    SOFTWARE\Microsoft\Microsoft SQL Server\SQLEXPRESS\MSSQLServer\CurrentVersion

    then has a launch condition:

    (SQL2008R2EXPRESSVERSION<>null) AND (SQL2008R2EXPRESSVERSION>="10.50.1600.1")

    My concern is that, if an earlier version of the form 9.nn.nnnn.n is installed it will actually pass the above string comparison test when I do not want it to - i.e. string "9..." is > string "10...". Am I correct and, if so, can anyone suggest a workaround please?

    Many thanks.

    Monday, March 05, 2012 10:16 AM

Answers

All replies