Updating Package Version Number

Update the version number of an installed package with package version "bumper" package fragment installer

The PackageVersionBumperFragmentInstaller can update the version number for a package already installed in C1 CMS.

Normally, C1 CMS prevents installing a package if the same or a newer version of the package is already installed. This package can be used in upgrade packages for other packages.

Example:

<mi:Add
	installerType="Composite.Core.PackageSystem.PackageFragmentInstallers.PackageVersionBumperFragmentInstaller, Composite">
	<PackageVersions>
		<PackageVersion 
			packageId="b9d6fe7d-2a4a-4414-818c-b4d62cd6421b" 
			newVersion="1.3.8" />
	</PackageVersions>
</mi:Add>

The <PackageVersions /> element

The PackageVersions element can contain one or more PackageVersion elements, which allow you to specify the ID of the package you want to update the version of and a new version number.

The PackageVersion element has the following attribute:

  • packageId: The ID of a package to update the version of.
  • newVersion: A new version number