izpack/izpack — pull request #26 by unb (2012-07-18 12:52:46+00:00)
Title: Fix for IZPACK-518 Problems with run-privileged on Linux

For installation, the installer will now only elevate permissions if Info.isRequirePrivilegedExecution() is true and:
* Info.getPrivilegedExecutionConditionID() is null; or
* the condition referred to by Info.getPrivilegedExecutionConditionID() evaluates true

For uninstallation, the exec-admin file is written by UninstallDataWriter to indicate that the uninstaller should elevate privileges.
This will now only be written if Info.isRequirePrivilegedExecutionUninstaller() is true and:
* Info.getPrivilegedExecutionConditionID() is null; or
* the condition referred to by Info.getPrivilegedExecutionConditionID() evaluates true