You can add an AutoInstall uninstall command to an AI package if you are deploying non-Microsoft software. This feature does not work with Microsoft products because you must build the AI package before any restarts.