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 in iOS 7 and later, and tvOS 10.2 and later.

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. Available in iOS 9 and later, macOS 11 and later, and tvOS 10.2 and later. The only possible value is:

Managed

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

ConfigurationInstallApplicationCommand.Command.Configuration

A dictionary that contains the initial configuration of the app, if you choose to provide it. Available in iOS 7 and later, macOS 11 and later, and tvOS 10.2 and later.

Identifierstring

The app’s bundle identifier.

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 in macOS 11 and later.

iOSAppboolean

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

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 in iOS 5 and later, macOS 11 and later, and tvOS 10.2 and later.

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.

OptionsInstallApplicationCommand.Command.Options

A dictionary that contains the app installation options.

RequestRequiresNetworkTetherboolean

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

RequestType Requiredstring

The request type for this command.

Topics

Objects