A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/sccm/apps/deploy-use/create-applications below:

Create applications - Configuration Manager

Applies to: Configuration Manager (current branch)

A Configuration Manager application defines the metadata about application. An application has one or more deployment types. These deployment types include the installation files and information that are required to install software on devices. A deployment type also has rules, such as detection methods, and requirements. These rules specify when and how the client installs the software.

Create applications using the following methods:

This article also includes the following information to configure a deployment type:

Create an application
  1. In the Configuration Manager console, go to the Software Library workspace, expand Application Management, and select the Applications node.

  2. On the Home tab of the ribbon, in the Create group, select Create Application.

Next, automatically detect or manually specify application information:

Automatically detect application information
  1. On the General page of the Create Application wizard, select Automatically detect information about this application from installation files.

  2. In the Type drop-down list, select the application installation file type that you want to use to detect application information. For more information about the available installation types, see Deployment types supported by Configuration Manager.

  3. In the Location box, specify the application installation file that you want to use to detect application information. This location is either a network path (\\server\share\filename) or a store link. You must have access to the network path and any subfolders that include application content.

    Important

    When you select Windows Installer (*.msi file) as an application type, the site imports all of the files in the specified folder. It then sends these files to distribution points. Make sure that the specified folder contains only the files that are necessary to install the application. Microsoft tests Configuration Manager to support up to 20,000 files in the application package. If your application has more files, consider creating multiple applications with less files.

  4. On the Import Information page of the Create Application wizard, review the information, and then select Next. If necessary, select Previous to go back and fix any errors.

  5. On the General Information page of the Create Application wizard, specify the following information:

    Note

    If Configuration Manager automatically detects this information from the application installation files, it's already populated here. Additionally, the displayed options might be different depending on the application type that you create.

  6. Choose Next, review the application information on the Summary page, and then finish the Create Application wizard.

The new application now appears in the Applications node of the Configuration Manager console. You've finished creating an application.

To add more deployment types or configure other settings, see Create deployment types for the application.

Manually specify application information
  1. On the General page of the Create Application wizard, select Manually specify the application information, and then choose Next.

  2. Specify General Information about the application:

  3. On the Software Center page of the Create Application wizard, specify the following information:

  4. On the Deployment Types page of the Create Application wizard, choose Add to create a new deployment type. For more information, see Create deployment types for the application.

  5. Choose Next, review the application information on the Summary page, and then finish the Create Application wizard.

The new application now appears in the Applications node of the Configuration Manager console.

Create deployment types for the application

If you automatically detect application information, you may not need to finish some of the steps in this section.

Start the Create Deployment Type wizard

There are three ways to start the Create Deployment Type wizard:

Then use one of the following procedures to automatically identify or manually specify deployment type information.

Automatically identify deployment type information
  1. On the General page of the Create Deployment Type wizard:

    1. Select the application installation file Type to detect the deployment type information.

    2. Select Automatically identify information about this deployment type from installation files.

    3. In the Location box, specify the application installation file that you want to use to detect the deployment type information. This location is either a network path (\\server\share\filename) or a store link. You must have access to the network path and any subfolders that include application content.

  2. On the Import Information page of the Create Deployment Type wizard, review the information, and then select Next. If necessary, select Previous to go back and fix any errors.

  3. On the General Information page of the Create Deployment Type wizard, specify the following information:

    Note

    Some of the deployment type information might already be present if it was read from the application installation files. Additionally, the displayed options might differ, depending on the deployment type that you're creating.

  4. Choose Next, and then continue to Deployment type Content options.

Manually specify the deployment type information
  1. On the General page of the Create Deployment Type wizard, in the Type drop-down list, choose the application installation file type for this deployment type.

  2. Select Manually specify the deployment type information, and then select Next.

  3. On the General Information page of the Create Deployment Type wizard, specify a Name for the deployment type. Optionally specify Administrator comments, select the Languages for this deployment type, and then select Next.

  4. Continue to Deployment type Content options.

Deployment type Content options

On the Content page, specify the following information:

Note

When you view the properties of an existing deployment type, some of these options appear on the Content tab and some on the Programs tab.

Deployment type properties Content options

When you view the properties of a deployment type, the following options appear only on the Content tab:

Note

Windows BranchCache is always enabled on clients. If the distribution point supports BranchCache, clients use it. For more information, see BranchCache.

Deployment type Task Sequence options

For more information on the task sequence deployment type, see Task sequence deployment type.

On the Task Sequence page, specify the following information:

Tip

If your task sequence doesn't appear in the list, double-check that it doesn't include any OS deployment or OS upgrade steps. Also confirm that it isn't marked as a high-impact task sequence. For more information, review the prerequisites for the Task sequence deployment type.

Deployment type Detection Method options

This procedure sets up a detection method that indicates the presence of the deployment type. In other words, whether the Windows device already has the application installed. Use one of the two following methods to create a detection method:

Configure rules to detect the presence of this deployment type
  1. On the Detection Method page, the option to Configure rules to detect the presence of this deployment type is selected by default. Select Add Clause.

  2. In the Detection Rule dialog box, select a Setting type to detect the presence of the deployment type:

  3. At the bottom of the Detection Rule window, specify whether the item must exist or satisfy a rule. For example, if you detect with a file, the following option is selected by default: The file system setting must exist on the target system to indicate presence of this application. Select the other option to create a rule for detection based on file or folder properties. These properties include Date Modified, Date Created, Version, or Size. These rule criteria are different for each setting type.

  4. Select OK to close the Detection Rule dialog box.

When you create more than one detection method for a deployment type, you can group clauses together to create more complex logic.

Group detection clauses (optional)
  1. Create three or more detection method clauses on a deployment type.

  2. Select two or more consecutive clauses, and then select Group. You'll see the parentheses added to the associated columns, which show where the group starts and ends.

    Example:

    Connector ( Clause ) MSI Product Code Or ( file1.text exists And file2.txt exists )
  3. To remove the group, select the grouped clauses, and then select Ungroup.

Continue to the next section on using a custom script as a detection method. Or skip to the User Experience options for the deployment type.

Use a custom script to check for the presence of a deployment type
  1. On the Detection Method page, select the Use a custom script to detect the presence of this deployment type box. Then select Edit.

  2. In the Script Editor dialog box, select a Script type to detect the deployment type: PowerShell, VBScript, or JScript.

    Note

    When a Windows PowerShell script runs as a app detection method, the Configuration Manager client calls PowerShell with the -NoProfile parameter. This option starts PowerShell without profiles. A PowerShell profile is a script that runs when PowerShell starts.

  3. In the Script contents box, enter the script that you want to use, or paste in the contents of an existing script. Choose Open to browse to an existing saved script. Select Clear to remove the text in the Script contents field. If necessary, enable the option to Run script as 32-bit process on 64-bit clients.

    Note

    The maximum size for a script is 32 KB.

  4. Select OK to save the script and close the Script Editor dialog box. Back on the Create Deployment Type wizard, the Script Type and Script Length fields update with details about your script.

About custom script detection methods

Configuration Manager checks the results from the script. It reads the values written by the script to the standard output (STDOUT) stream, the standard error (STDERR) stream, and the exit code. If the script exits with a non-zero value, the script fails, and the application detection status is Unknown. If the exit code is zero, and STDOUT has data, the application detection status is Installed.

Tip

When writing a detection script, if you return a zero exit code but don't return output (data in STDOUT), the application will not be detected as installed. For more information, see the following examples.

Use the following tables to check whether an application is installed from the output from a script:

Zero exit code STDOUT STDERR Script result Application detection state Empty Empty Success Not installed Empty Not empty Failure Unknown Not empty Empty Success Installed Not empty Not empty Success Installed Non-zero exit code STDOUT STDERR Script result Application detection state Empty Empty Failure Unknown Empty Not empty Failure Unknown Not empty Empty Failure Unknown Not empty Not empty Failure Unknown Examples

Use the following PowerShell/VBScript examples to write your own application detection scripts:

Example 1: The script returns an exit code that's not zero. This code indicates the script failed to run successfully. In this case, the application detection state is unknown.

Exit 1
WScript.Quit(1)

Example 2: The script returns an exit code of zero, but the value of STDERR isn't empty. This result indicates the script failed to run successfully. In this case, the application detection state is unknown.

Write-Error "Script failed"
Exit 0
WScript.StdErr.Write "Script failed"
WScript.Quit(0)

Example 3: The script returns an exit code of zero, which indicates it ran successfully. However, the value for STDOUT is empty, which indicates the application isn't installed.

Exit 0
WScript.Quit(0)

Example 4: The script returns an exit code of zero, which indicates it ran successfully. The value for STDOUT isn't empty, which indicates the application is installed.

Write-Host "The application is installed"
Exit 0
WScript.StdOut.Write "The application is installed"
WScript.Quit(0)

Example 5: The script returns an exit code of zero, which indicates it ran successfully. The values for STDOUT and STDERR aren't empty, which indicates the application is installed.

Write-Host "The application is installed"
Write-Error "Completed"
Exit 0
WScript.StdOut.Write "The application is installed"
WScript.StdErr.Write "Completed"
WScript.Quit(0)
Deployment type User Experience options

These settings specify how the client installs the application on devices, and what the user sees.

On the User Experience page, specify the following information:

Deployment type properties User Experience options

When you view the properties of a deployment type, the following options appear only on the User Experience tab:

Enforce specific post-installation behavior. Select one of the following options:

Deployment type Requirements

Configuration Manager verifies these requirements on devices before installing the deployment type. Use requirements to further refine and control the devices or users that receive this application. For example, if you deploy the application to a user collection, specify the app's hardware requirements here.

  1. On the Requirements page, select Add to open the Create Requirement dialog box.

  2. In the Category drop-down list, select whether this requirement is for a Device or a User.

    Select Custom to use a previously created global condition. When you select Custom, you can also choose Create to create a new global condition. For more about global conditions, see How to create global conditions.

    Important

    If you deploy the application to a device collection, the client ignores any requirement of the category User and the condition Primary Device.

  3. In the Condition drop-down list, select the condition to assess whether the user or device meets the installation requirements. The contents of this list vary depending on the selected category.

  4. In the Operator drop-down list, select the operator to use. This operator compares the selected condition to the specified value. It assesses whether the user or device meets the installation requirement. The available operators vary depending on the selected condition. When using the One Of operator, the Values field has validation that you have to enter one entry per row.

    Note

    The available requirements differ depending on the device type that the deployment type uses.

  5. In the Value box, specify the values to use for comparison. These values, along with the selected condition and operator, evaluate whether the user or device meets the installation requirements. The available values vary depending on the selected condition and the selected operator.

  6. Choose OK to save the requirement and close the Create Requirement dialog box.

Deployment type Dependencies

Dependencies define one or more deployment types from another application that the client must install before it installs this deployment type.

Important

In some cases, a deployment type is dependent on a deployment type that also has dependencies. The maximum number of supported dependencies in the chain is five.

  1. On the Dependencies page, select Add.

  2. In the Add Dependency window, enter the Dependency group name. This name refers to this group of application dependencies.

  3. In the Add Dependency window, select Add.

  4. In the Specify Required Application window, select an available application and at least one of its deployment types to use as a dependency.

    Tip

    Select View to display the properties of the selected application or deployment type.

  5. Select OK to close the Specify Required Application window.

  6. If you want the client to automatically install the dependent application, select Auto Install next to the dependency.

    Note

    You don't need to deploy a dependent application for the client to automatically install it.

  7. If you add more than one dependency, use the Increase Priority and Decrease Priority buttons. These actions change the order in which the client evaluates each dependency.

  8. Select OK to close the Add Dependency window.

Deployment type Return Codes

Note

This page isn't in the Create Deployment Type wizard. It's only a tab on the properties of an existing deployment type.

Specify return codes to control behaviors after the deployment type completes. For example, signal that a restart is required, the installation is complete.

  1. On the Return Codes tab of the deployment type properties window, select Add.

  2. In the Add Return Code window, specify the Return Code Value that you expect from this deployment type. This value is any positive or negative integer between -2147483648 and 2147483647.

  3. Select a Code Type from the drop-down list. This setting defines how Configuration Manager interprets the specified return code from this deployment type. The available types vary based on the deployment type technology.

  4. Optionally, enter a Name and Description for this return code.

  5. Select OK to close the Add Return Code window.

Example: non-zero success

You're deploying an application that returns an exit code of 1 when it successfully installs. By default, Configuration Manager detects this non-zero return code as a failure. Specify the Return Code Value of 1, and select the Code Type of Success (no reboot). Now Configuration Manager interprets that return code as a success for this deployment type.

Default return codes

When you create some deployment types, Configuration Manager automatically adds the following return codes that are common to that technology:

Windows Installer (*.msi file) Value Code Type 0 Success (no reboot) 1707 Success (no reboot) 3010 Soft Reboot 1641 Hard Reboot 1618 Fast Retry Script Installer Value Code Type 0 Success (no reboot) 1641 Hard Reboot 3010 Soft Reboot 1618 Fast Retry Windows app package (*.appx, *.appxbundle, *.msix, *.msixbundle) Value Code Type 15605 Fast Retry 15618 Fast Retry Additional options for App-V deployment types

Configure additional options that are unique to deployment types for virtual applications (App-V).

App-V deployment type Content options
  1. In the Configuration Manager console, go to the Software Library workspace, expand Application Management, and select the Applications node.

  2. Select an application with an App-V deployment type, and select Properties.

  3. In the application properties, switch to the Deployment Types tab. Select the App-V deployment type, and select Edit.

  4. In the deployment type properties, switch to the Content tab. Configure the following options as necessary:

  5. Select OK to close the deployment type properties. Then select OK to close the application properties.

App-V deployment type Publishing options
  1. In the Configuration Manager console, go to the Software Library workspace, expand Application Management, and select the Applications node.

  2. Select an application with an App-V deployment type, and select Properties.

  3. In the application properties, switch to the Deployment Types tab. Select the App-V deployment type, and select Edit.

  4. In the deployment type properties, switch to the Publishing tab. Select the items in the virtual application that you want to publish.

  5. Select OK to close the deployment type properties. Then select OK to close the application properties.

Import an application

Use the following procedure to import an application into Configuration Manager:

  1. In the Configuration Manager console, go to the Software Library workspace, expand Application Management, and select the Applications node.

  2. In the ribbon, on the Home tab and the Create group, select Import Application.

  3. On the General page of the Import Application Wizard, specify the network path to the File to import. For example, \\server\share\file.zip. This file is a valid compressed archive (ZIP format) of an exported Configuration Manager application.

  4. On the File Content page, select the action to take if this application is a duplicate of an existing application. Create a new application, or ignore the duplicate and add a new revision to the existing application.

  5. On the Summary page, review the actions, and then finish the wizard.

The new application appears in the Applications node.

Tip

The Windows PowerShell cmdlet Import-CMApplication has the same function as this procedure. For more information, see Import-CMApplication.

For more information about how to export an application, see Management tasks for applications.

Supported deployment types

Configuration Manager supports the following deployment types for applications:

Deployment type name Description Windows Installer (*.msi file) A Windows Installer file (.msi). Windows app package (*.appx, *.appxbundle, *.msix, *.msixbundle) Windows app package files (.appx or .msix) or Windows app bundle packages (.appxbundle or .msixbundle). Windows app package (in the Windows Store) Specify a link to the app in the Windows Store, or browse the store to select the app.Note 1 Script Installer Specify a script or program that runs on Windows clients to install content or to do an action. Use this deployment type for setup.exe installers or script wrappers. Microsoft Application Virtualization 4 A Microsoft App-V v4 manifest. Microsoft Application Virtualization 5 A Microsoft App-V v5 package file. Windows Phone app package (*.xap file) A Windows Phone app package file. Windows Phone app package (in the Windows Phone Store) Specify a link to the app in the Windows Store. macOS X For macOS computers running the Configuration Manager client. Create a .cmmac file with the CMAppUtil tool. Web Application Specify a link to a web application. This deployment type installs a shortcut to the web application on the user's device. Windows Installer through MDM (*.msi) Create and deploy Windows Installer-based apps to Windows devices using on-premises mobile device management (MDM). For more information, see Deploy Windows Installer apps to MDM-enrolled Windows devices. Task sequence Install or uninstall complex applications using task sequences. For more information, see Task sequence deployment type.

Note

The Configuration Manager console may display other deployment types, but they are for platforms that are no longer supported. For more information, see What happened to hybrid?.

Note 1: Windows app package (in the Windows Store)

To deploy the app as a link to the Windows Store, configure the group policy Turn off the Store application. Set this policy to Disabled or Not configured. If you enable this setting, clients can't connect to the Windows Store to download and install applications.

Windows clients always evaluate deployment types that use a link to a store before other deployment types. Then the client evaluates deployment types by priority.

Tip

Some store links may cause the following error in the Create Application Wizard: "Invalid Application link". For example, some store Featured Apps may cause this error. You can still select Next on the General page of the wizard. Configuration Manager successfully creates the app, and you can successfully deploy it.

Next steps

After creating an application in Configuration Manager, the next step is to deploy the application.

Create a group of applications that you can send to a user or device collection as a single deployment. For more information, see Create application groups.

For more information about creating applications on different OS platforms, see the following articles:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4