Install a PKG with config files

hallfire
New Contributor II

Hello there

I want to know if somebody know how to deploy a PKG with config files

We use LiveNavigator for backup our macOS.

For configure the server at the install the PKGs have to be run with a file name "autoconfig.txt" in the same folder.

bdb259ad47eb4037872b4bb3d0d4d260

Regards,

2 REPLIES 2

CSCC-JS
Contributor III

I had something similar, techsmith relay.

What I did was copy both files to a sub folder under temp. Then use a script to execute the installation. When I get a chance I can post my relay info.

CSCC-JS
Contributor III

My Notes

Copy contents to /tmp
Add to composer
Export as dmg
Upload via jamf admin

You must capture the original pkg file & the config file.
When the pkg file runs, it reads the settings from the .plist file.

Installation

• Distribute via policy • Run Install Script

Install Script

#!/bin/zsh
installer -pkg /tmp/yourinstaller.pkg -target /
exit 0