Based on productbuild's Distribution XML structure, pkg-ref
's version
attribute is auto-filled by productbuild
itself. You can also specify the package version using a --version
parameter to productbuild
.
I made two packages: package A with version 1.0 and package B with the same binaries with version 2.0. These versions were given in three ways:
- As
--version
parameter - As version of the binary being packed
- version values inside the
Distribution.xml
file
However, it seems Installer doesn't bother checking version and just installs any package being run. If you install version 2.0 first and then run the version 1.0 package next, the app is overwritten.
How do I enforce Installer to check the versions? Is there a key/attribute/parameter I need to specify somewhere to make the package version sensitive?