In this lesson, we're going to discuss upgrading software with Monkey.
So let's go ahead and launch Firefox.
And you can see that we are running version sixty six point O, and we can also see that there is actually
a newer version than sixty six 03.
So let's just for this exercise it cancel on that.
And so over in about Firefox it says OK, sixty six Dotto.
Now.
So in Monkey, we had two versions of Firefox, we had sixty six oh and we had sixty six oh three and
if you remember that we had only sixty six oh enabled in production.
So let's just say our testing group has approved sixty six point three and we're going to go ahead and
put it in production.
So all you got to do is hit the check mark.
Now, I'm going to go ahead and on Firefox, I'm going to change it to an unattended install and I'm
going to go ahead and save that and then let's go ahead and let's Firefox is still running, but we're
going to go ahead and upgrade it anyway.
Now, I'm going to go ahead and also I'm going to put a live log on this machine.
And so what that means is basically I'm going to be looking at the log file in real time while I run
Monkey on the Machine.
Now, on this terminal over here, I'm going to run monkey from the command line.
So right now I'm running it.
And you can see the log is outputting and you can see that it's downloading Firefox onto the machine.
And then what we're going to do is we're going to hit install only now Firefox is a drag and drop app.
So in other words, we're taking the Firefox app folder and we're overwriting the Firefox DOT at folder.
So even if you were manually upgrading Firefox, you don't have to uninstall Firefox.
You just copy Firefox on top of Firefox and you get the latest version.
And you can see in the log that that's exactly what's happening.
OK, so that's done.
And so let's go over here and let's take a look at Firefox now.
Do we have the latest version running right now?
And we don't.
But it says to restart it.
So if we quit Firefox and then we launch it again, we should have sixty six of three because that's
the version that we installed.
And see, it's still saying that we have a sixty six Dotto four available.
And I guess we could run auto package and it would probably upgrade us to sixty six or four.
All right, so we are at sixty six point three right now.
So let's go ahead and quit that.
So when you're upgrading software and monkey, you have to consider how software updates naturally.
So if if let's just say, for example, Firefox had kept version numbers and when you upgrade Firefox
using its native package, you had both versions, then you would have both versions when you would
updated in monkey monkeys doing everything that would happen if you did it manually.
It's just doing it for you automatically.
So you're going to have to consider that.
And again, you'll be using a testing group so you'll know what happens when you're ready for production
at any anyway.
But that's essentially how it works.
Now, what happens with packages that you build yourself now?
All the packages that we built are version 1.0.
What happens if we want to upgrade them now?
I imported a new package called Remote Management, and what it's designed to do is enable remote management
and sharing.
So remote desktop will turn on.
So if I go ahead and let's go ahead and make sure that it gets deployed, so I'm going to go to site
to fall, managed install and then remote management.
So let's add that to our manifest.
And I'm going to go ahead and.
I'm going to go ahead and run monkey.
And it's saying it's not in production, so let's double check that.
Yeah, it's not in production.
OK, so it's safe.
So it's now in production.
It's also in the manifest.
So this time it should install.
All right, it's downloaded it.
And let's go ahead and install it.
OK, so it installed it, so let's quit system preferences and see if it worked.
And remote management is still off.
All right, so something went wrong, so let's go ahead.
I'm in the package directory and let's go ahead and take a look at scripts.
And we have a post install script.
And I put I left these hashtags on so none of the code actually ran.
All right.
So now I have to rebuild my package because 1.0 was broken and I need a 1.0 one.
So what you need to do is you need to go into the build info list and you need to change your version
number.
All right.
So we're going to be one dot o one now.
We're going to go ahead and save it and then we're going to go ahead and build the package.
OK, so it wrote a one on one, and so now let's go ahead and import.
Our one on one package now, I don't think we've imported an upgrade before, so as you can see, it
says it says I found something similar in the repo.
Do you want to use the old version as a template?
And so what we're going to do is we're going to hit.
Yes.
And so basically all of our choices are automatically filled in.
And then we have the one on one version.
No.
So now we're going to have an upgrade in place with all the same settings that we had before.
And so we're going to go ahead and import it and rebuild the catalog.
And when I hit Refresh and Monkey.
You can now see I have got Remote Management 1.0 and I've got one oh one, so let's go over to our catalogs
and let's get one or one out of production and put one and one into production.
And now what we're going to do is we're going to go ahead and run monkey again on our target machine.
And you can see now it says that I have one on one available because one and one is newer than one Dotto.
So now we're going to go ahead and install it and I'm going to just go ahead and quit sharing.
And then when it's done, I should be able to go back to sharing.
And then my remote management should be turned on now, which it is, if you remember, I had triggered
auto package to run and now look what happened here.
Now we've got sixty six oh four.
So let's go ahead and click save.
And then we'll go ahead and run monkey again.
And see, now it's downloading sixty six Dotto for.
And we'll go ahead and let it install.
And then when it's done, we'll have sixty six oh four on our machine.
Now, one thing to keep in that I want to keep reminding is we're triggering all this stuff manually,
you know, because of the lessons.
It's an exercise.
But all of this stuff could be happening in the background.
And so we wouldn't have to trigger any commands.
Monkey would run on its own.
It would have upgraded the software.
We could have had auto packager running on its own and it would have updated Firefox for us.
And so all of this could be completely automatic.
And so let's go to look at Firefox and take a look at the version that we're running.
And you can see that we have sixty six so far.
So there you go.
That's how you can upgrade existing software, auto package software and software that you create yourself.