You always follow their recommendation? J
Nevertheless. Uninstalling dependent apps doesn't work with the app-model unless you get really innovative. So, how do you uninstall all apps which were dependent using the app model only? You mentioned TS below, so not like that, right? -R From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Ratliff Sent: Montag, 26. August 2013 14:24 To: [email protected] Subject: RE: [mssms] CM12: uninstall a group of apps? Per Microsoft, using a task sequence to install apps/packages is not recommended. It's the whole reason they build the app model. I know it has a few shortfalls though, so some circumstances have no other option. Daniel Ratliff From: [email protected] [mailto:[email protected]] On Behalf Of Roland Janus Sent: Monday, August 26, 2013 6:33 AM To: [email protected] Subject: RE: [mssms] CM12: uninstall a group of apps? Figured that this wouldn't be possible. You're basically saying that the detection method must check differently when using a TS: If TS always run the install command and that also means always a script if you might use this ever as a dependency and want to uninstall? The install command then would actually uninstall when it figures that this is running using a TS? You're saying that? That approach sounds really complicated. How many like that have you? So, MS didn't provide anything to uninstall if dependencies or a TS with apps are used? Sigh. Sounds like using a package with an uninstall program is so much easier. Of course then all the other benefits are gone. Sigh.. -R From: [email protected] [mailto:[email protected]] On Behalf Of Craig Andrew (OIZ) Sent: Montag, 26. August 2013 10:49 To: [email protected] Subject: RE: [mssms] CM12: uninstall a group of apps? Hi Roland, There is no uninstall App step in TS. But it is possible to do if you use a script-based Detection Method and a TS variable. The problem is the discovery, and a normal discovery method would end up looping when you try to put uninstall command lines in the deployment type. Basically the detection method must return true if the app is deployed normally, to allow for install/uninstall in software center. And you need to wrap your install deployment type in a script as well. Like setup.vbs or setup.ps1 for example. Add into your detection script that is the ts environment if present, then look for a ts variable like action=uninstall. If no variable is present then it will return the same value as when used normally. If it finds the variable then it returns false regardless. This forces the app to run even if the app is already installed. The setup script must determine if this uninstall action is called and run the command line accordingly. I have this working in a large environment quite happily. From: [email protected] [mailto:[email protected]] On Behalf Of Roland Janus Sent: Montag, 26. August 2013 10:34 To: [email protected] Subject: [mssms] CM12: uninstall a group of apps? I have 4 apps, with install and uninstall I install them with a TS using "install application" They install fine, but how do I uninstall that group again? There is no uninstall when using the install app step in a TS. Can apps be uninstalled when using a TS? What am I missing? -R The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information.

