packagesdev / packages

Integrated Packaging Environment for OS X
306 stars 44 forks source link

Partial installation support #150

Open iradization opened 8 months ago

iradization commented 8 months ago

Hi, I'd like to support a package file that installs multiple applications - in the preinstall, the script will read a configuration file that contain a mask that represent which app/apps to install.

Is there an option to support it in Packages ?

packagesdev commented 8 months ago

There's nothing to reliably supports that kind of thing.

Can't you just let the users select which application(s) they want to install through the Custom install mode?

iradization commented 8 months ago

Hi and thanks for you reply.

Custom install mode is great, but what happen if I run the installer from terminal (using /usr/sbin/installer) which is rather common when pushing applications from MDM.

Is there a way to control what will be installed in this case ?

packagesdev commented 8 months ago

Check the -showChoicesXML, -showChoiceChangesXML, -applyChoiceChangesXML options of installer(8).