<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ColorSync",
  "identifier" : "/documentation/ColorSync/ColorSyncProfileInstall(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "ColorSync"
    ],
    "preciseIdentifier" : "c:@F@ColorSyncProfileInstall"
  },
  "title" : "ColorSyncProfileInstall(_:_:_:_:)"
}
-->

# ColorSyncProfileInstall(_:_:_:_:)

Installs a profile in the specified domain.

```
func ColorSyncProfileInstall(_ profile: ColorSyncProfile!, _ domain: CFString!, _ subpath: CFString!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> Bool
```

## Parameters

`profile`

The profile to install.

`domain`

The domain to install into, either [`kColorSyncProfileComputerDomain`](/documentation/ColorSync/kColorSyncProfileComputerDomain) or [`kColorSyncProfileUserDomain`](/documentation/ColorSync/kColorSyncProfileUserDomain).

`subpath`

A string created from the file system representation of the path of the file to contain the installed profile.

`error`

On failure, a pointer to an error describing the problem. Optional.

## Return Value

`true` on success, or `false` in case of error.

## Discussion

The `domain` is either [`kColorSyncProfileComputerDomain`](/documentation/ColorSync/kColorSyncProfileComputerDomain) or [`kColorSyncProfileUserDomain`](/documentation/ColorSync/kColorSyncProfileUserDomain).
[`kColorSyncProfileComputerDomain`](/documentation/ColorSync/kColorSyncProfileComputerDomain) is for sharing the profiles (from
`/Library/ColorSync/Profiles`). [`kColorSyncProfileUserDomain`](/documentation/ColorSync/kColorSyncProfileUserDomain) is for user custom profiles
(installed under the home directory, that is, in `~/Library/ColorSync/Profiles`). `NULL` is the
same as [`kColorSyncProfileUserDomain`](/documentation/ColorSync/kColorSyncProfileUserDomain).

The `subpath` is the file system representation of the path of the file to contain the installed
profile. The function interprets the last component of the path as a file name if it ends with the
extension `.icc`. Otherwise, the function interprets the subpath as the directory path and creates
the file name from the profile description tag, appended with the `.icc` extension.

Using this function requires `COLORSYNC_PROFILE_INSTALL_ENTITLEMENT`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)