Skip to main content
All CollectionsTroubleshooting and How-ToHow-To Articles
How to customize the Mac installation package
How to customize the Mac installation package
A
Written by Arick Disilva
Updated over 2 months ago

You can customize the standard installation package so that you can add any scripts or modify the configuration file post-installation.

For example, if you want to add the network-exclude-bundles parameter to exclude the Chrome process from the network driver, you can do the following:

1. Extract the content of the pkg file to any folder. For example:

pkgutil --expand tmagent-stealth-24.29.5022.pkg tmp


2. Open the postinstall script file using a text editor. For example:

nano tmp/Scripts/postinstall

3. Use the echo command to add lines to the configuration file:

echo "network-exclude-bundles=com.google.Chrome">>/usr/local/teramind/agent/etc/agent.conf

4. Save the file, and close it.

5. Pack the tmp folder to the pkg file using the packaging utility (pkgutil):

pkgutil --flatten tmp tmagent-stealth-24.29.5022.pkg

6. Run the package file. The network-exclude-bundles parameter will be added to the configuration file.

After the pkg file modification, macOS might show a warning about the pkg file not being trusted. If this case, hold the CONTROL(^) button, click the pkg file, and select the "Open" option from the context menu.

Check out the How to download and install the Teramind Agent article to learn more about the installation/configuration parameters.

Modifying the installer package this way might corrupt the installer and cause strange system behaviors. Use with caution!

Did this answer your question?