InstallEnterpriseApplication install behavior

Hello,

While working with the InstallEnterpriseApplication command, we ran into an interesting situation that we wanted to understand what the expected behavior would be.

On a machine bound to our MDM, we had previously installed Firefox 88.0.1. We uploaded a properly formatted and signed installation package for Firefox 78.10.1 and instructed our MDM to push InstallEnterpriseApplication to the client machine that had 88.0.1 installed.

What happened next was interesting! We still had 88.0.1 listed on the machine as current, both the Info.plist and the application on disk think it is 88.0.1.

However, pkgutil pkg-info org.mozilla.firefox reports back the older version:

package-id: org.mozilla.firefox
version: 78.10.1
volume: /
location: Applications
install-time: 1622056611

What I was expecting was either a wholesale replacement of Firefox.app, and a committed receipt to match, OR a refusal to replace Firefox.app (version on disk was higher than the installer package), and either no receipt (if a drag-from-a-DMG install was done), or the previous receipt.

What should have happened here? The fugue station of a receipt for 78.10.1 and the application for 88.0.1 was confusing.

InstallEnterpriseApplication install behavior
 
 
Q