SoftwareCentral · Applications

Update Java Using Replace Package

An example of updating Java on all computers with the Replace Package interface: choose the new version, choose the old version, check the settings and click Replace.

Test first New and old version Schedule optional

1 Before you start

This example updates Java on all clients with Replace Package.

In this example, the new Java package has already been imported and tested on the test machines.

The newer version must update the older one The newer version must be able to update the previous version for this scenario to work.

For the general use of the interface, see Replace Package / Application. The example also works for applications; see Replace Application.

2 Choose the new and the old version

Choose the new version first. The list of old programs only appears after you have chosen it.

  1. In Select the new app:, choose the new version, Oracle Java 8 Update 72 x64.
  2. In Select programs to replace:, tick the old version, Oracle Java 8 Update 71 x64.
Replace Package window with the search text java 8 typed into the Source (old) list. The list shows three Java 8 items, including Oracle Java 8 Update 71 x64 and Oracle Java 8 Update 72 x64.
Earlier version: the old version chosen in the Source (old) list, with the search text java 8. In the current window the old version is ticked in Select programs to replace: after the new version has been chosen.
Replace Package window with the Target (new) list open. The search text java 8 is typed and Oracle Java 8 Update 72 x64 is highlighted.
Earlier version: the new version chosen in the Target (new) list, Oracle Java 8 Update 72 x64. The current label is Select the new app:. The site code in the footer of the list is masked.

3 Check the computers

The centre list shows the computers that have the old version. These are the computers that will be updated with the new version.

The list is headed Resource Name. Use Search in assigned resources: to find a computer. If no computer has the old version, the list shows No resources match your criteria.

Replace Package window with the centre list of computers that have Oracle Java 8 Update 71 x64, named LAPTOP-0142 to LAPTOP-0154, and the Target (new) list still empty.
Earlier version: the computers with Oracle Java 8 Update 71 x64 in the centre, before a new version is chosen. The computer names are masked. The current list has the same computers and a checkbox in front of each one.

4 Check the settings

The settings are in the right-hand Settings panel. The defaults are the ones this example needs, so check that they are ticked as shown.

SettingDefaultWhat it does
Delete old programOffRemoves the old program from SoftwareCentral as well. See Best practice.
Remove resources from old install collectionOnTakes the computers out of the install collection of the old version. For an Intune application the label is Remove resources from old install group.
Install new programOnInstalls the new version on the computers in the centre list.
Replace in Software GroupsOnPuts the new version in the software groups that had the old version.
Replace in ShopOnReplaces the old version in the shop with the new one. You can do this for one old program only.
Enable ScheduleOffSchedules the installation of the new version. See Schedule the installation.

You can also choose to replace Java in all Software Groups. This will make sure that only the new version is installed during operating system deployments.

We also replace Java in the shop. The new version will then be added to the shop, with the same meta data as the previous version.

Replace Package window with the Settings panel. Remove resources from old install collection and Install new program are ticked and outlined, and Replace in Software Groups and Replace in Shop are ticked. Enable Schedule is not ticked.
Earlier version: the Settings panel, with Remove resources from old install collection and Install new program outlined. The labels of the settings are the same in the current window. The left-hand labels have changed, and the computer names are masked.

5 Click Replace

Click Replace in the lower right corner. Java is then updated on the selected resources.

The Replace button is enabled when a new version is chosen, at least one old version is ticked, and the new version is not one of the old ones. The resources that are updated are the ones ticked in the centre list; the header box ticks all of them.

6 Schedule the installation

Use the Enable Schedule checkbox to schedule the replacement for later.

This will only schedule the installation of the new version. The program will be replaced in Software Groups and so forth immediately. The computers are also removed from the old install collection straight away, not on the schedule.

When Enable Schedule is ticked, enter the start and end time. The start time must be now or later. The end time must be later than the current time.

7 Best practice

  • Import the new version and test it on test machines first, then replace. The replacement changes every computer in the centre list.
  • Leave Delete old program off until the new version has been rolled out. With it on, the old program is removed from SoftwareCentral.
  • Replace in Software Groups and in the shop at the same time, so that users and deployments pick up the new version together.
  • Use Enable Schedule only when the install must wait. The software group, shop and collection changes happen at once, whatever the schedule says.

8 Troubleshooting

SymptomCauseWhat to do
Replace stays greyed outNo new version is chosen, no old version is ticked, or the same program is both the new and the old version.Choose the new version, tick the old version, and make sure the two are different programs.
Replace in Shop is greyed out, with the tip Can not replace multiple application in the shopMore than one old version is ticked.Replace the shop item one old version at a time.
Replace in Software Groups is greyed out, with the tip Only packages can replace packages, and applications can replace applications, in Software Groups.The old and the new version are of different types, one a package and one an application.Choose a new version of the same type as the old one, or leave the setting off.
Scheduled start time must be now or later.The start time is earlier than the current time.Pick a start time that is later than now.
Scheduled end time must greater than the start time.The end time is not later than the current time. The check compares the end time with the current time, not with the start time.Pick an end time that is later than now and after the start time.