Windows file lock test ignored during uninstall

Comments

1 comment

  • Avatar
    michiel

    If an error is found during uninstallation, it is silently ignored and the uninstallation continues, although the rest of actions are not executed.

    In this case you can use <exit exitCode="1"/> and <showWarning> in an <actionList> like in the following example:

      <preUninstallationActionList>
        <actionGroup>
          <actionList>
            <showWarning>
              <text>You must close the application ${project.fullName}
              before launching the uninstaller</text>
            </showWarning>
            <exit exitCode="1"/>
          </actionList>
          <ruleList>
             <processTest name="${project.fullName}.exe" logic="is_running" />
          </ruleList>
        </actionGroup>
      </preUninstallationActionList>
    

Please sign in to leave a comment.