I am saying that.

The detection method detects that the ts environment is present so presumes to 
be in a task sequence. And if the ts variable is present it uninstalls the app 
because you can only use the install application step. If distributed through 
app model then the detection method functions pretty much as normal.

We have applied to around 2000+ applications which are delivered through task 
sequences. All applications are packaged to a standard, which means that 
although complex, the complexity is kept to a minimum because a tool is used to 
generate the install and uninstall wrappers, and the task sequences. The 
script-based detection method is stored as a template.

MS would like everyone to use the app model. The attitude is that complexity is 
only required to install and complex deinstallations is not in the remit.

Try not to revert to packages and programs.... This method with ts means we can 
maintain use of app model.

From: [email protected] [mailto:[email protected]] On 
Behalf Of Roland Janus
Sent: Montag, 26. August 2013 12:33
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]> 
[mailto:[email protected]] On Behalf Of Craig Andrew (OIZ)
Sent: Montag, 26. August 2013 10:49
To: [email protected]<mailto:[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]> 
[mailto:[email protected]] On Behalf Of Roland Janus
Sent: Montag, 26. August 2013 10:34
To: [email protected]<mailto:[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








Reply via email to