Unattended installation - log error and abort

Answered

Comments

1 comment

  • Avatar
    juanjo

    You could use the below code:

    <actionGroup>
        <actionList>
              <logMessage>
                 <text>You must install a version of .NET between ${dotNetRequired} and ${dotNetMax} before attempting to install ${project.shortName}</text>
              </logMessage>
              <exit/>
        </actionList>
        <ruleList>
            <platformTest type="windows"/>
           <compareText>
              <text>${installer_interactivity}</text>
              <logic>does_not_equal</logic>
              <value>normal</value>
           </compareText>
            <isFalse value="${dotnet_autodetected}"/>
        </ruleList>
    </actionGroup>
    

    Please also note I change the check used to determine if the installer is running in unattended mode so it also works when using --unattendedmodeui minimal or --unattendedmodeui minimalWithDialogs

Please sign in to leave a comment.