Contents

InstallApplicationCommand.Command

The command to install a third-party app on a device.

Declaration

object InstallApplicationCommand.Command

Properties

NameTypeDescription
AttributesInstallApplicationCommand.Command.Attributes

A dictionary that contains the initial attributes of the app, if you choose to provide it.

Available: iOS 7+ | iPadOS 7+ | tvOS 10.2+ | visionOS 1.1+ | watchOS 10+

ChangeManagementStatestring

The change management state. This value doesn’t work with the user enrollment feature introduced in iOS 13, or any type of account driven enrollment. The only possible value is:

  • Managed: Take management of the app if the user installed it already and InstallAsManaged is true.

Available: iOS 9+ | iPadOS 9+ | macOS 11+ | tvOS 10.2+ | visionOS 1.1+ | watchOS 10+

ConfigurationInstallApplicationCommand.Command.Configuration

A dictionary that contains the initial configuration of the app, if you choose to provide it.

Available: iOS 7+ | iPadOS 7+ | macOS 11+ | tvOS 10.2+ | visionOS 1.1+ | watchOS 10+

Identifierstring

The app’s bundle identifier.

Available: iOS 7+ | iPadOS 7+ | macOS 10.9+ | tvOS 10.2+ | visionOS 1.1+ | watchOS 10+

InstallAsManagedboolean

If true, install the app as a managed app. Otherwise, the system installs the app as unmanaged. If you reinstall a manged app and omit this value or set it to false, the app becomes unmanaged.

For manifest-based installs, if true, the system only considers apps installed in /Applications as managed. In macOS 11 through 13, the system requires that the pkg only contains a single signed app.

Available: macOS 11+

iOSAppboolean

If true, the app is an iOS app that can run on a Mac with Apple silicon in macOS 11 and later.

Available: macOS 11+

iTunesStoreIDinteger

The app’s iTunes Store identifier.

ManagementFlagsinteger

A bitwise OR of the management flags. The possible values are:

  • 1: If InstallAsManaged is true, remove the app upon removal of the MDM profile.

  • 4: Prevent backup of app data.

  • 5: Both 1 and 4.

Available: iOS 5+ | iPadOS 5+ | macOS 11+ | tvOS 10.2+ | visionOS 1.1+ | watchOS 10+

ManifestURLstring

The URL of the app manifest, which needs to begin with https:. The manifest is returned as a property list that uses the ManifestURL format.

Available: iOS 7+ | iPadOS 7+ | macOS 10.9+ | tvOS 10.2+ | visionOS 1.1+ | watchOS 10+

OptionsInstallApplicationCommand.Command.Options

A dictionary that contains the app installation options.

Available: iOS 7+ | iPadOS 7+ | macOS 10.9+ | tvOS 10.2+ | visionOS 1.1+ | watchOS 10+

RequestRequiresNetworkTetherboolean

If true, the device needs to be network-tethered to run the command.

RequestType Requiredstring

The request type for this command.

Topics

Objects