Hi,
I have an app (CRM plugin for outlook) that i want to uninstall. So i have created 2 DT under the app, whereby the first DT (in priority order) will prompt user to close Outlook before uninstalling (under user experience with when user logged on only) and the second DT to uninstall straight away (install for system, when user is not logged in).
When i deploy it to a device collection, i notice that it attempts to run the first DT then second DT. Which is why it never got uninstalled when i logged off the machine. So i proceed to uninstall it via the first DT (which is just accepting the prompt to close outlook) and it got uninstall successfully. After that i got an error saying the deployment failed in software center and the error from appenforce.log is as below:
The enforcement of this App DT requires all users to be logged off. The deployment cannot specify a user collection when the deployment type requires that a user must be logged off. Aborting enforcement.AppEnforce
This seem make sense because i was logged in. My question is how do i make sure the DT will run on the condition of whether user is logged in or not ? i.e. if user is not logged in it should run the second DT instead of the first DT and not in priority order.