Using InstallerJS in MDM distributed package

Hi,

We are creating a Installer package which will be distributed to user through MDM with the InstallApp command.

Our distribution package use the Distribution.xml file and InstallerJS to check each flat package version and select the package for install only if there is no receipt or if the already installed package version is older.

The package is working fine when using the GUI Installer or through the command line installer.

When trying to install the package through MDM, all package which use InstallerJS javascript to decide if it will be install or not will not be selected and thus will not be installed.

Is this the expected behaviour?

Looking at the install log, I can see that the package selection seems to be done by appstored when installing through MDM.

Is appstored not able to understand the InstallerJS script?

The documentation specifies that InstallerJS is for the Installer application. https://developer.apple.com/documentation/installer_js

If that's the case is there a way to select specific flat package for install when distributing through MDM?

Thanks in advance!

Hi there, can you please file a report through the feedback app with a sysdiagnose and if possible include a copy of the pkg you are trying to install. Also were you trying to install the app as managed? Please post the FB here after you file so we can continue the investigation.

Do we have any solution for this? Facing similar issue.

Using InstallerJS in MDM distributed package
 
 
Q