In this lesson, we're going to learn how to remove software with monkey, so to remove software from
monkey.
You need to go into your manifest and we need to go ahead and put things into managed uninstall.
Now we have to get rid of things and manage installs to put them and manage on installs.
So let's go ahead and let's remove audacity from our system and then we'll go ahead and add that to
managed and installs.
And I also want to get rid of Adobe Flash Player because, well, Adobe or Audacity is a drag and drop
package and Adobe Flash Player is a package install from the vendor, not one we created.
So that would give us two varieties of installs.
And then I also want to get rid of settings for pushchairs on the dock because that's a mobile config
profile that doesn't have a script.
All right.
So this gives us three different types of different packages in Monkey that we can go ahead and get
rid of.
Now, the issue that we're going to have here is that flash player was a requirement for Firefox and
Firefox is on in the installer.
So we'll be in a catch twenty two.
And then also I need to get rid of settings for pushchairs on Doc because that's still in managed installs.
So let's go ahead and save our manifest.
And then let's go to Adobe Flash Player and let's go to requirements and let's remove the requirement
for Firefox and let's go ahead and save our package.
All right.
So now we should be ready to run, manage software update.
And you can see that it has the three items that we want to uninstall.
So let's go ahead and let it uninstall.
And we can see that flash player is here and in our profiles, we've got the pushchairs on the dock
profile and then of course we have our share that's in the dock.
So when this is done, all of this stuff should be removed.
OK, so are we had we had our share removed from the dock, the mobile profile is gone.
And our flash icon is still there, but let's quit system preferences and reload it, and now it's gone
completely.
And D'Asti was the last program and audacity is gone, too.
So, as you can see, removing software is pretty straightforward, but not everything is going to be
that straightforward.
So let's go ahead and talk about a couple of things that may not be so.
If we take a if we think about our enable SFH package, basically this package had no payload in it
and it ran a script.
So if Monkey removes the package from our system, it's going to know that enable SNH is not installed
anymore, but it's not going to turn off because that was done in a script and it's not going to know
how to do that.
Now, if by removing enable S.H., we actually want Monkey to disable SS, we can go into uninstall
scripts and we could type in a script that would then reverse the effects of enable SS age.
And then when we got rid of this package, then SS age would then be turned off.
And so if we go to our install printer package, we know that this basically ran a script and it put
a PDF file on the machine.
So if we remove this package, then it would remove the peg file, but it wouldn't remove the printer.
Also on our joined domain, we had it lay down a mobile config profile and we used a script to edit
the mobile config profile and then import that mobile config profile.
And then the script removed the mobile config profile after it installed it.
So there's no payload left basically on our computer for this one.
It effectively was just a script to join the domain.
And so if we uninstall this, we're still going to be on the domain.
So when you go to remove software packages that you create yourself, you really need to consider what's
the likelihood of these things being removed?
And if if you do remove them, is it going to do what you need now?
Like I said, enable us to say we may want to disable it again in some of these other packages.
We just may never have any need to remove them at all.
So once they're basically they're basically used to set up a computer out of the box or to get it into
a new configuration for something you've changed on your network.
And then once they're installed and they get your computer in a place, they probably never going to
be removed and maybe you will make an upgrade to them, you'll go from one zero one zero to one to one
to fix something.
But you're probably never going to remove these.
So you have to keep this in mind when you import your packages in.
What are you going to what might your needs be if you want to remove these packages?