Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Answered Launch condition - string comparison

  • 2012년 3월 5일 월요일 오전 10:16
     
     

    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.

모든 응답