Best way to replace/overwrite a file on a Mac?

KarlHavoc
New Contributor

I need to update the PaperCut server on our Macs via the /Applications/PaperCut Print Deploy Client/data/config/client.conf.toml file so our devices will pick it up.

I created a pkg with Composer that solely consists of that modified file, but it is failing to deploy.

Here is the error I'm receiving:

Installation failed. The installer reported: installer: Package name is PaperCutConfig installer: Installing at base path / installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. The package is attempting to install content to the system volume.)

Any help would be appreciated.Screenshot 2024-08-27 at 2.41.22 PM.png

3 REPLIES 3

howie_isaacks
Valued Contributor II

In this specific case are you able to write a script that would write the changes to the "client.conf.toml" file? Does this software have a running service that may need to be stopped before you run this package?

talkingmoose
Moderator
Moderator

I don’t think the problem is the .toml file but rather the .VolumeIcon.icns file that’s trying to install at the root of the volume.

Great catch! I always look over my Composer package builds before saving them as a package. That's an alias file so if the package is trying to install that alias it won't resolve to anything on the destination could cause a problem.