Uninstalling Permitted for non-privileged user

Comments

1 comment

  • Avatar
    wojciechka

    The uninstaller ignores action errors to avoid a situation where a small error in uninstallation actions prevents user from uninstalling the package.

    What you can do is show a message and then exit the installer - for example:

    <actionGroup> <actionList> <actionGroup> <actionList> <showWarning> <text>This installation cannot be run with superuser privileges.</text> </showWarning> <exit> <exitCode>1</exitCode> </exit> </actionList> <ruleList> <isTrue value="${installer_is_root_install}"/> <platformTest> <type>linux</type> </platformTest> </ruleList> </actionGroup> <actionGroup> <actionList> <showWarning> <text>This installation can only be run with administrative privileges.</text> </showWarning> <exit> <exitCode>1</exitCode> </exit> </actionList> <ruleList> <isFalse value="${installer_is_root_install}"/> <platformTest> <type>windows</type> </platformTest> </ruleList> </actionGroup> </actionList> </actionGroup>

Please sign in to leave a comment.