How to determine version of Mac OS X 10.9 'Mavericks' (preview)?

Answered

Comments

2 comments

  • Avatar
    juanjo

    OS X 10.9 is not yet officially supported. While that is released, you can use a regular expression to get the version:

    <setInstallerVariableFromScriptOutput>
        <exec>sw_vers</exec>
        <execArgs></execArgs>
        <name>text</name>
    </setInstallerVariableFromScriptOutput>
    <setInstallerVariableFromRegEx>
        <name>detected_version</name>
        <pattern>.*ProductVersion:\s*(\d+\.\d+).*</pattern>
        <substitution>\1</substitution>
        <text>${text}</text>
    </setInstallerVariableFromRegEx>
    
  • Avatar
    Dirk Stegemann

    Since InstallBuilder version 8.6.0-201401281501, all version are reported correctly on OS X.

Please sign in to leave a comment.