Skip to main content
Question

Install a PKG with config files

  • November 27, 2020
  • 2 replies
  • 19 views

Forum|alt.badge.img+5

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.

Regards,

2 replies

CSCC-JS
Forum|alt.badge.img+8
  • Valued Contributor
  • November 29, 2020

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
Forum|alt.badge.img+8
  • Valued Contributor
  • November 30, 2020

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