Posted on 05-08-2023 05:27 AM
Just curious to know what are the most complex packages are there for macOS and we can easily build those package using by composer? I am looking for their name and why it is complex and which method I need to build it? Like SAP GUI is one of them what I can say any other please?
Posted on 05-08-2023 05:37 AM
@Asifahmed Composer isn't really intended to create "complex" packages. If you need a tool that will do that you should look at scripting the pkgbuild tool directly, or try the Packages tool: http://s.sudre.free.fr/Software/Packages/about.html
Posted on 05-08-2023 05:39 AM
Can you please give me few examples where I cant use composer and I nee to use Packages or pkgutil utility?
Posted on 05-08-2023 06:45 AM
@Asifahmed That's going to be up to evaluate and decide
Posted on 05-08-2023 07:44 AM
I use Packages when the vendor provides a .pkg and along with a customized file (.txt, .plist, .xml) or certificate.
I've used these articles as templates for how I deploy VMware Horizon Client, F5 BIG-IP Edge, Broadcom Symantec DLP... and many more.
https://derflounder.wordpress.com/2016/01/14/creating-an-office-2016-15-18-0-installer/
https://derflounder.wordpress.com/2013/11/03/re-packaging-installer-packages-with-packages/
05-08-2023 01:56 PM - edited 05-08-2023 01:57 PM
You are asking a very open ended question. There are assuredly tens (hundreds) of thousands of packages when you consider organization that build (or repackage) their own packages. Packages can be very simple with a single script to very complex, with mulitple payloads and multiple scripts and ability to use an xml to specify certain components to install.
If you are looking for packaging help, I would recommend this book:
https://books.apple.com/us/book/packaging-for-apple-administrators/id1173928620
by Armin Briegel (ScriptingOSX).
If you are having a specific packaging issue, go ahead and ask a detailed question.
Posted on 05-08-2023 10:46 PM
Can I do something in this way that if MS Excel is installed then MS Word will be installed or else no, I mean one app installation is dependent on another app installation result.
Posted on 05-09-2023 05:19 AM
You could either use Smart Group logic within Jamf to determine if Excel should be installed. Otherwise creating a custom package that includes preflight script to determine if Excel should be installed.
In this example, I would recommend leaning towards Jamf and smart groups. Every app will have it's own situation and different ways to approach it.
Posted on 05-09-2023 05:33 AM
Is the Office apps reference just an example, or are you looking to create a custom installer package for Office apps to install them in a different manner than the Microsoft provided installer? If the latter that's probably something you really do not want to do. Can you describe the problem you're trying to solve? (and tagging @pbowden since he may be interested in this discussion)
Posted on 05-09-2023 06:00 AM
Yes, I am looking for custom installer rather than MS provides us the installer. If one app is installed successfully(Excel) then other app like MS Word will be installed. I just want to know the process to build this custom installer so that if needed I can apply this concept for different app also if applicable for that one.
Posted on 05-09-2023 06:23 AM
Are you actually seeing a problem where the standard Microsoft installer successfully installs one app but then fails to install another one? That seems like a problem you shouldn't need to solve for yourself but should raise with Microsoft.
Posted on 05-09-2023 06:45 AM
No such problem with installation, but I need to customized the installation. So looking for a generic way to do this. If any way is there then it will be good. Or else I need to do straight forward way and then use postinstall script to remove the app not needed.
05-09-2023 07:09 AM - edited 05-09-2023 07:10 AM
If you're looking to install only a subset of the apps in the Office Suite installer you really should be following the advice @dmccluskey provided in the "ChoicesXML file is not working for deployment" thread (https://community.jamf.com/t5/jamf-pro/choicesxml-file-is-not-working-for-deployment/m-p/290472/high...) you created.
His example specifically shows how to prevent installation of OneNote, but the "Excluding apps" section of the https://learn.microsoft.com/en-us/deployoffice/mac/preferences-office article he linked to covers settings for all of the other apps in the suite installer.
Posted on 05-09-2023 07:22 AM
That is OK, I did it and worked. I have few other requirements and I am trying to gather those info. I have few clients and they do have different requirements. Selective installation is OK and working fine, now I am looking for conditional approach if possible.
05-09-2023 07:39 AM - edited 05-09-2023 07:41 AM
In addition to conditional you need to consider automatable because interactive tools like Composer or Packages aren't practical if you're talking about creating customized installations of multiple applications.
The Packaging for Apple Administrators book that @Tribruin recommended discusses using the pkgbuild tool. You should take a look at AutoPkg (and the AutoPkgr GUI for it) which is an automation tool that can be set up to download any updates for applications of interest and can then create a customized installation .pkg with the configurations you, or your clients want to apply. Googling AutoPkg and AutoPkgr will turn up a number of tutorials.
Posted on 05-09-2023 07:47 AM
I was never been able to build a package using by pkgutil tool from scratch, I used AutoPKGr before to download the .pkg only , but did not see any such option for configuration. I need to check it then as you suggested.
Posted on 05-09-2023 07:59 AM
The actions AutoPkg takes are controlled by recipe files, you would create a recipe file to apply your specific customizations.