Throw error if program is already installed (Linux)

Answered

Comments

1 comment

  • Avatar
    Michiel

    You can use <fileTest> for this purpose.

      <preInstallationActionList>
        ...
        <throwError text="Program already installed">
          <ruleList>
            <fileTest condition="exists" path="${installdir}">
            </fileTest>
          </ruleList>
        </throwError>
       ...
      </preInstallationActionList>
    

Please sign in to leave a comment.