Starting with EPM Agent 25.6 Idira is providing a tool to build a post-install activation script.
Steps
- Downloaded the Agent Install Package to a Mac and unzip it
- Open terminal and navigate to the location where you extracted the install package. This file may not be executable. If needed, run this command to make it executable
sudo chmod +x prepare_activation.command

- Before launching ./prepare_activation.command ensure that the .config file is in the same folder
- Try to launch ./prepare_activation.command
- If you see a message like this...

...then you will need to allow it to run. Go to system settings > Privacy and Security. Look in the "Security" section. If you see "Prepare_activation.command was blocked to protect your Mac" then click "Open Anyway"

Try to launch again using ./prepare_activation.command
- Example of successful generation

- Use finder to browse to the extracted install folder. You should now see a new file named "epm_activation.sh". Open that using textedit

- Find where the DEFAULT_INSTALLATION_KEY is set to "" (shown below). Paste your installation key in between those quotes

- Optional: If you intend to specify an admin username during the activation, enter the credentials in between the quotes for DEFAULT_ADMIN_USER and DEFAULT_ADMIN_PASSWORD as shown below.
This is needed to enable credential rotation. More info about this option:
https://docs.cyberark.com/epm/latest/en/content/installation/macos-installagents.htm?Highlight=prepa...

- Save epm_activation.sh
- Deploy this script after pkg installation to activate EPM