Hi,
I have an app that I am trying to install, and I want to provide command line parameters for the install. I don't see an option for providing command line arguments in. JAMF Pro configuration
sudo securityagent.pkg --key=XXX --env=XXX
Hi,
I have an app that I am trying to install, and I want to provide command line parameters for the install. I don't see an option for providing command line arguments in. JAMF Pro configuration
sudo securityagent.pkg --key=XXX --env=XXX
Best answer by Tribruin
You would need to build a custom package and post install script to run the installer. Build a package that puts the installer package (securityagent.pkg
) in a custom location (e.g. /var/tmp
) and then create post-install script to run the installer from that location:
#!/bin/sh
# Run installer
/var/tmp/securityagent.pkg --key=XXX --env=XXX
# Remove package after install
rm /var/tmp/securityagent.pkg
You then create a policy in Jamf to install this new package instead of original installer package.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.