Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-installing profiles #7

Open
majorsl opened this issue May 14, 2015 · 1 comment
Open

Re-installing profiles #7

majorsl opened this issue May 14, 2015 · 1 comment

Comments

@majorsl
Copy link

majorsl commented May 14, 2015

I'm trying to build a package to do the following, all in one shot, I don't know if this tool can do it however. Everything else I've tried has been a complete failure.

I need to:

  1. remove existing profiles if they exist.
  2. install the trust profile.
  3. install the enrollment profile.

I want a single pkg that our tier 1 techs can just double-click and be done with.

Thoughts anyone?

@timsutton
Copy link
Owner

This tool has some of the bits you need, but you'll need to do some work to build a single pkg that meet your needs.

make-profile-pkg builds a single pkg for a single profile, so you could potentially use it to build your two packages, and then use productbuild to put them together into a single distribution pkg.

For removing existing profiles, you could add a preinstall script to one of the packages or add a third package that handles the removal using a preinstall script. If you build a pkg using pkgbuild and use the --nopayload option, it won't leave behind a receipt, and so can instead be used as a vehicle for running scripts.

Note that if your new profile has the same identifier as the old versions, those will be "updated" so you don't necessarily need to remove old ones first. But, only if the identifiers are the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants