Skip to main content
Question

Deploying a pkg with text file using Jamf Pro on macOS


Forum|alt.badge.img+2

Hi all,

 

I have a software for macOS with an installation that includes a pkg and txt file (contain arguments). Both files must be on the same folder for the installation.

After installation and giving full disk access, I used the PPPC Utility to create the profile. But how can I attach the txt file for future installations?

Or- once I installed once and created the profile, I don't need the txt file anymore?

 

Thanks!

Ben.

2 replies

jamf-42
Forum|alt.badge.img+17
  • Esteemed Contributor
  • 744 replies
  • June 12, 2023

using composer, put both pkg and text files into /tmp/softwarename 

then run post install script... installer -pkg /tmp/softwarename/sofwarename.pkg 

 


AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • 2717 replies
  • June 12, 2023

Depends on what exactly you are doing.

  • If you are making the package yourself, just shove the .txt in the directory it needs to be within composer and build the package. 
  • If its a vendor provided package, you likely need to either:
    • convert to source in composer, and add the text file and rebuild the package (this will break the signature of the package)
    • make a new package, adding the vendors package and the text file to the payload. Then use a post install script to run the vendor package (as JAMF wont run it because the .pkg is just a payload) and add whatever arguments are needed to call the text file. 

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings