How to create applications with System Center Configuration Manager

 

Aplica-se A: System Center Configuration Manager (current branch)

A O System Center Configuration Manager application contains the files and information that are required to deploy software to a device. An application contains one or more deployment types that comprise the installation files and information that are required to install software. A deployment type also contains rules that specify when and how the software is deployed.You can create applications by using the following methods: Automatically create the application and deployment types by reading the application installation files. Manually create the application and then add deployment types later.Import an application from a file.Use the steps in this section to create applications and deployment types using Gestor de configuração. Steps to create an applicationUse the following steps to learn how to create a Gestor de configuração application.Start the create application wizardTo start the create application wizardIn the Gestor de configuração console, click Software Library.In the Software Library workspace, expand Application Management, and then click Applications.On the Home tab, in the Create group, click Create Application.Specify whether you want to automatically detect application information or manually define the informationAutomatically detect application information when you want to create a simple application that has a single deployment type, such as a Windows Installer file that has no dependencies or requirements. After you create an application by using this procedure, you can edit it as needed to add or change deployment types and add detection methods, dependencies, or requirements.Manually specify application information to create more complex applications that have multiple deployment types, dependencies, detection methods, or requirements.To automatically detect application informationOn the General page of the Create Application Wizard, select the Automatically detect information about this application from installation files check box.In the Type drop-down list, select the application installation file type that you want to use to detect application information. For information about the available installation types, see Deployment types supported by Configuration Manager in this topic.In the Location field, specify the UNC path in the form \<server>&lt;share>&lt;filename> or the store link for the application installation file that you want to use to detect application information. Alternatively, click Browse to browse to the installation file.When you select Windows Installer (*.msi file) as an application type, all of the files in the folder that you specify will be imported with the application and will be sent to distribution points. Ensure that only the files that are necessary to install the application are in the folder that you specify. Gestor de configuração is tested to support up to 20,000 application files in the application package. If your application contains more files, consider creating multiple applications that have a smaller number of files. You must have access to the UNC path that contains the application and any subfolders that contain application content. On the Import Information page of the Create Application Wizard, review the information that was imported, and then click Next. If necessary, you can click Previous to go back and correct any errors.On the General Information page of the Create Application Wizard, specify the following information:Some of this information might already be populated if it was automatically obtained from the application installation files. Additionally, the displayed options might be different depending on the application type that you create. Provide general information about the application, such as the application name, comments, version, and an optional reference to help you reference the application in the Gestor de configuração console.Installation program - Specify the installation program and any required properties that are needed to install the application deployment type.If the installation program does not appear, click Browse and browse to the installation program location. Install behavior - Specify whether the application deployment type will be installed for the currently logged-on user only or for all users. You can also specify that the deployment type will be installed for all users if it is deployed to a device or only to a specific user if it is deployed to a user.Use an automatic VPN connection (if configured) -If a VPN profile has been deployed to the device on which the app is launched, launch the VPN connection when the app starts (Windows 8.1 and Windows Phone 8.1 only).On Windows Phone 8.1 devices, automatic VPN connections are not supported if more than one VPN profile has been deployed to the device.For more information about VPN profiles, see VPN profiles in System Center Configuration Manager.Click Next, review the application information on the Summary page, and then complete the Create Application Wizard.The new application appears in the Applications node of the Gestor de configuração console, and you have completed the process of creating an application. If you want to add more deployment types to the application, see Create deployment types for the application in this topic.To manually specify application informationOn the General page of the Create Application Wizard, select Manually specify the application information, and then click Next.Specify general information about the application, such as the application name, comments, version, and an optional reference to help you find the application in the Gestor de configuração console.On the Application Catalog page of the Create Application Wizard, specify the following information:Selected language - In the drop-down list, select the language version of the application that you want to configure. Click Add/Remove to configure more languages for this application.Localized application name - Specify the application name in the language that you selected in the Selected language drop-down list.You must specify a localized application name for each language version that you configure. User categories - Click Edit to specify application categories in the language that you selected in the Selected Language drop-down list. Users of Software Center can use these selected categories to help filter and sort the available applications.User documentation - Click Browse to specify the URL to, or the UNC path and file name of, a file that users of Software Center can read to get more information about this application.Link text - Specify the text that will appear in place of the URL to the application.Application Privacy URL - Specify a URL that links to the privacy statement for the application.Localized description - Enter a description for this application in the language that you selected in the Selected Language drop-down list.Keywords - Enter a list of keywords in the language that you selected in the Selected Language drop-down list. These keywords will help users of Software Center search for the application.Icon - Click Browse to select an icon for this application from the available icons. If you do not specify an icon, a default icon will be used for this application.Display this as a featured app and highlight it in the company portal - Select this option to display the app prominently in the company portal.On the Deployment Types page of the Create Application Wizard, click Add to create a new deployment type.For more information, see Create deployment types for the application in this topic.Click Next, review the application information on the Summary page, and then complete the Create Application Wizard.The new application appears in the Applications node of the Gestor de configuração console.Create deployment types for the applicationIf you select the Automatically identify information about this deployment type from installation files check box on the General page of the Create Deployment Type Wizard, you might not need to complete some of the steps in the following procedures. Start the create deployment type wizardIn the Gestor de configuração console, click Software Library.In the Software Library workspace, expand Application Management, and then click Applications.Select an application and then, on the Home tab, in the Application group, click Create Deployment Type.You can also start the Create Deployment Type Wizard from the Create Application Wizard and from the Deployment Types tab of the <application name>  Properties dialog box. Specify whether you want to automatically detect deployment type information or manually configure the InformationUse one of the following procedures to automatically detect or manually configure deployment type information.To automatically detect the deployment type informationOn the General page of the Create Deployment Type Wizard, select the Automatically identify information about this deployment type from installation files check box.In the Type field, select the application installation file type that you want to use to detect the deployment type information.In the Location field, specify the UNC path in the form \<server>&lt;share>&lt;file_name> or the store link to the application installation files and the content that you want to use to detect the deployment type information. You can also click Browse to locate the installation file.You must have access to the UNC path that contains the application and any subfolders that contain the application content. On the Import Information page of the Create Deployment Type Wizard, review the information that was imported, and then click Next. You can also click Previous to go back and correct any errors.On the General Information page of the Create Deployment Type Wizard, specify the following information: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 are creating.Specify general information about the deployment type, such as the name, administrator comments, and available languages.Installation program - Specify the installation program and any properties that you require to install the deployment type.Install behavior - Specify whether to install the deployment type for the currently logged-on user or for all users. You can also specify whether to install the deployment type for all users if it is deployed to a device, or whether to install the deployment type to a user only if it is deployed to a user.Use an automatic VPN connection (if configured) - If a VPN profile has been deployed to the device on which the app is launched, launch the VPN connection when the app starts (Windows 8.1 and Windows Phone 8.1 only). If multiple VPN profiles have been deployed to a Windows 8.1 device, the first deployed VPN profile is used by default.On Windows Phone 8.1 devices, automatic VPN connections are not supported if more than one VPN profile has been deployed to the device.For more information about VPN profiles, see VPN profiles in System Center Configuration Manager.Click Next, and then continue to Specify content options for the deployment type.To manually configure the deployment type informationOn the General page of the Create Deployment Type Wizard, select Manually specify the deployment type information.In the Type field, choose the application installation file type that you want to use to detect the deployment type information. You can choose the same installation types that you would use when you automatically detect the deployment type information, and you can additionally specify a script to install the deployment type.On the General Information page of the Create Deployment Type Wizard, specify a name for the deployment type, an optional description, and the languages in which you want to make this deployment type available, and then click Next.Continue to Specify content options for the deployment type.Specify content options for the deployment typeTo specify content options for the deployment typeOn the Content page of the Create Deployment Type Wizard, specify the following information:Content location - Specify the location of the content for this deployment type, or click Browse to choose the deployment type content folder.The System account of the site server computer must have permissions to the content location that you specify. Persist content in the client cache - Select this option to specify whether the content should be retained in the cache on the client computer indefinitely, even if it has already been run. Although this option can be useful with some deployments, such as Windows Installer–based software that requires a local source copy to be available for applying updates, it will reduce the available cache space. If you select this option, it might cause a large deployment to fail at a later point if the cache does not have sufficient available space.Allow clients to share content with other clients on the same subnet - Select this option to reduce load on the network by allowing clients to download content from other local clients on the network that have already downloaded and cached the content. This option utilizes Windows BranchCache technology.Installation program - Specify the name of the installation program and any required installation parameters, or click Browse to locate the installation file.Installation start in - Optionally specify the folder that contains the installation program for the deployment type. This folder can be an absolute path on the client, or a path to the distribution point folder that contains the installation files. Uninstall program - Optionally specify the name of the uninstallation program and any required parameters, or click Browse to locate it.Uninstall start in - Optionally specify the folder that contains the uninstallation program for the deployment type. This folder can be an absolute path on the client, or a path that is relative to the distribution point folder that contains the package.Run installation and uninstall program as 32-bit process on 64-bit clients - Use the 32-bit file and registry locations on Windows-based computers to run the installation program for the deployment type.Click Next.Configure detection methods to indicate the presence of the deployment type (Windows PCs only)This procedure configures a detection method that indicates whether the deployment type is already installed.To configure a detection methodOn the Detection Method page of the Create Deployment Type Wizard, select Configure rules to detect the presence of this deployment type, and then click Add Clause.You can also select Use a custom script to detect the presence of this deployment type. For more information, see the To use a custom script to determine the presence of a deployment type section in this topic. In the Detection Rule dialog box, in the Setting type drop-down list, select the method that you want to use to detect the presence of the deployment type. You can choose from the following available methods:File System - Use this method to detect whether a specified file or folder exists on a client device, thus indicating that the application is installed.The File system setting type does not support specifying a UNC path to a network share in the Path field. You can only specify a local path on the client device. Select the option This file or folder is associated with a 32-bit application on 64-bit systems to check 32-bit file locations for the specified file or folder first. If the file or folder is not found, 64-bit locations will be searched. Registry - You can use this method to detect whether a specified registry key or registry value exists on a client device, thus indicating that the application is installed.Select the option This registry key is associated with a 32-bit application on 64-bit systems to check 32-bit registry locations for the specified registry key first. If the registry key is not found, 64-bit locations will be searched. Windows Installer - Use this method to detect whether a specified Windows Installer file exists on a client device, thus indicating that the application is installed.Specify details about the item that you want to use to detect whether this deployment type is installed. For example, you can use a file, folder, registry key, registry value, or a Windows Installer product code.Specify details about the value that you want to assess against the item that you use to detect whether the deployment type is installed. For example, if you use a file to determine whether the deployment type is installed, you can select the The file system setting must exist on the target system to indicate presence of this application check box.Click Next to close the Detection Rule dialog box.To use a custom script to determine the presence of a deployment typeOn the Detection Method page of the Create Deployment Type Wizard, select the Use a custom script to detect the presence of this deployment type check box, and then click Edit.In the Script Editor dialog box, in the Script type drop-down list, select the script language that you want to use to detect the deployment type.In the Script contents field, enter the script that you want to use. You can also paste the contents of an existing script in this field, or click Open to browse to an existing saved script. Configuration Manager determines the results from the script by reading the values that are written to the Standard Out (STDOUT) output stream, the Standard Error (STDERR) output stream, and the exit code from the script. If the exit code is a nonzero value, the script has failed and the application detection status is unknown. If the exit code is zero and STDOUT contains data, the application detection status is Installed.Use the following table to determine how you can use the output from a script to determine whether an application is installed.Script exit codeDetails0Data read from STDOUT - EmptyData read from STDERR - EmptyScript result - SuccessApplication detection state - Not installed0Data read from STDOUT - EmptyData read from STDERR - Not emptyScript result - FailureApplication detection state - Unknown0Data read from STDOUT - Not emptyData read from STDERR - EmptyScript result - SuccessApplication detection state - Installed0Data read from STDOUT - Not emptyData read from STDERR - Not emptyScript result - SuccessApplication detection state - InstalledNon-zero value Data read from STDOUT - EmptyData read from STDERR - EmptyScript result - FailureApplication detection state - UnknownNon-zero value Data read from STDOUT - EmptyData read from STDERR - Not emptyScript result - FailureApplication detection state - UnknownNon-zero value Data read from STDOUT - Not emptyData read from STDERR - EmptyScript result - FailureApplication detection state - UnknownNon-zero value Data read from STDOUT - Not emptyData read from STDERR - Not emptyScript result - FailureApplication detection state - UnknownThe following table contains Microsoft Visual Basic (VB) sample scripts that you can use to write your own application detection scripts.Visual Basic sample scriptDescriptionWScript.Quit(1)The script returns an exit code that is not zero, which indicates that it failed to run successfully. In this case, the application detection state is unknown. WScript.StdErr.Write "Script failed"WScript.Quit(0) The script returns an exit code of zero, but the value of STDERR is not empty, which indicates that the script failed to run successfully. In this case, the application detection state is unknown. WScript.Quit(0)The script returns an exit code of zero, which indicates that it ran successfully. However, the value for STDOUT is empty, which indicates that the application is not installed. WScript.StdOut.Write "The application is installed"WScript.Quit(0)The script returns an exit code of zero, which indicates that it ran successfully. The value for STDOUT is not empty, which indicates that the application is installed. WScript.StdOut.Write "The application is installed"WScript.StdErr.Write "Completed"WScript.Quit(0)The script returns an exit code of zero, which indicates that it ran successfully. The values for STDOUT and STDERR are not empty, which indicates that the application is installed. The maximum size that you can use for a script is 32 kilobytes (KB). Click OK to close the Script Editor dialog box.Specify user experience options for the deployment typeThese settings specify how the application will be installed on devices and what the user will see.To specify user experience optionsOn the User Experience page of the Create Deployment Type Wizard, specify the following information:Installation behavior - In the drop-down list, select one of the following options:Install for user - The application is installed only for the user to whom the application is deployed.Install for System - The application is installed only once, and it is available to all users.Install for System if resource is device; otherwise install as user - If the application is deployed to a device, it will be installed for all users. If the application is deployed to a user, it will be installed for only that user.Logon requirement - Specify the logon requirements for this deployment type from the following options:Only when a user is logged onWhether or not a user is logged onOnly when no user is logged onThis option defaults to Only when a user is logged on, and it cannot be changed if you selected Install for user in the Installation behavior drop-down list. Installation program visibility - Specify the mode in which the deployment type will run on client devices. The following options are available:Maximized - The deployment type runs maximized on client devices. Users will see all installation activity.Normal - The deployment type runs in the normal mode based on system and program defaults. This is the default mode.Minimized - The deployment type runs minimized on client devices. Users might see the installation activity in the notification area or taskbar.Hidden - The deployment type runs hidden on client devices, and users will see no installation activity.Allow users to view and interact with the program installation - Specify whether a user can interact with the deployment type installation to configure the installation options.This option is enabled by default if you selected the Install for user option in the Installation behavior drop-down list. Maximum allowed run time (minutes) - Specify the maximum time that the program is expected to run on the client computer. You can specify this setting as a whole number greater than zero. The default setting is 120 minutes.This value is used to:Monitor the results from the deployment type.Determine whether a deployment type will be installed when maintenance windows are defined on client devices. When a maintenance window is in place, a program will start only if enough time is available in the maintenance window to accommodate the Maximum Allowed Run Time setting.A conflict might occur if the Maximum allowed run time is longer than the scheduled maintenance window. If the user sets the maximum run time to a period that exceeds the length of any available maintenance window, that deployment type will not be run. Estimated installation time (minutes) - Specify the estimated time that installation of the deployment type will take. This is displayed to users of Software Center.Specify requirements for the deployment typeTo specify requirementsOn the Requirements page of the Create Deployment Type Wizard, click Add to open the Create Requirement dialog box, and add a new requirement.You can also add new requirements on the Requirements tab of the <deployment type name> Properties dialog box. In the Category drop-down list, select whether this requirement is for a device or a user, or select Custom to use a previously created global condition. When you select Custom, you can also click Create to create a new global condition. For more information about global conditions, see How to create global conditions in Configuration Manager.If you create a requirement of the category User and the condition Primary Device, and then deploy the application to a device collection, the requirement will be ignored. If you created a Windows package and program or task sequence that has Windows 10 as a requirement using System Center 2012 R2 Configuration Manager SP1 and then upgrade to System Center Configuration Manager, the requirements for Windows 10 might be removed. To fix this problem, specify the requirements again. Note that although the requirement has been removed from the requirements display, it is still processed correctly on devices.In the Condition drop-down list, select the condition that you want to use to assess whether the user or device meets the installation requirements. The contents of this list will vary depending on the selected category.In the Operator drop-down list, select the operator that will be used to compare the selected condition to the specified value to assess whether the user or device meets the installation requirements. The available operators will vary depending on the selected condition.The available requirements will differ depending on the device type that the deployment type is for. In the Value field, specify the values that will be used with the selected condition and operator to evaluate whether the user or device meets the installation requirements. The available values will vary depending on the selected condition and the selected operator.Click OK to save the requirement and close the Create Requirement dialog box.Specify dependencies for the deployment typeDependencies define one or more deployment types from another application that must be installed before a deployment type is installed. You can configure the dependent deployment types to be installed automatically before a deployment type is installed. In some cases, a deployment type is dependent on a deployment type that also contains dependencies. In this scenario, where a chain of dependencies exists, the maximum number of supported dependencies in the chain is five. To specify deployment type dependenciesOn the Dependencies page of the Create Deployment Type Wizard, click Add if you want to specify the deployment types that must be installed before this deployment type can be installed.You can also add new dependencies on the Dependencies tab of the <deployment type name> Properties dialog box. In the Add Dependency dialog box, click Add.In the Specify Required Application dialog box, select an existing application and one of the application deployment types to use as a dependency.You can click View to display the properties of the selected application or deployment type. Click OK to close the Specify Required Application dialog box.If you want a dependent application to be automatically installed, select Auto Install next to the dependent application.A dependent application does not need to be deployed to be automatically installed. In the Add Dependency dialog box, in the Dependency group name field, enter a name to refer to this group of application dependencies.Optionally, use the Increase Priority and Decrease Priority buttons to change the order in which each dependency is evaluated.Click OK to close the Add Dependency dialog box.Confirm the deployment type settings and complete the wizardTo complete the wizardOn the Summary page of the Create Deployment Type Wizard, review the actions that the wizard will take. Click Next to create the deployment type, or click Previous to go back and change the settings for the deployment type.After the Progress page of the wizard finishes, review the actions that the wizard took, and then click Close to complete the wizard.If you started the Create Deployment Type Wizard from the Create Application Wizard, you will return to the Deployment Types page of the Create Application Wizard.Configure additional options for deployment types that contain virtual applicationsUse the following procedures to configure additional options for deployment types that contain virtual applications.To configure content options for Application Virtualization (App-V) deployment typesIn the Gestor de configuração console, click Software Library.In the Software Library workspace, click Applications.In the Applications list, select an application that contains an App-V deployment type. Then, on the Home tab, in the Properties group, click Properties.In the <Application Name> Properties dialog box, on the Deployment Types tab, select an App-V deployment type, and then click Edit.In the <Deployment Type Name> Properties dialog box, on the Content tab, configure the following options if required:Persist content in the client cache - Select this option to ensure that the content for this deployment type is not deleted from the Gestor de configuração client cache.Load content into App-V cache before launch - Select this option to ensure that all content for the virtual application is loaded into the App-V cache before the application starts. Selection of this option also ensures that the application content is not pinned in the cache and can be deleted as required.Click OK to close the <Deployment Type Name> Properties dialog box.Click OK to close the <Application Name> Properties dialog box.To configure publishing options for App-V deployment typesIn the Gestor de configuração console, click Software Library.In the Software Library workspace, click Applications.In the Applications list, select an application that contains an App-V deployment type. Then, on the Home tab, in the Properties group, click Properties.In the <Application Name> Properties dialog box, on the Deployment Types tab, select an App-V deployment type, and then click Edit.In the <Deployment Type Name> Properties dialog box, on the Publishing tab, select the items in the virtual application that you want to publish.Click OK to close the <Deployment Type Name> Properties dialog box.Click OK to close the <Application Name> Properties dialog box.How to import an applicationUse the following procedure to import an application into Configuration Manager. For information about how to export an application, see Management tasks for Configuration Manager applications.To import an applicationIn the Gestor de configuração console, click Software Library.In the Software Library workspace, expand Application Management, and then click Applications.On the Home tab, in the Create group, click Import Application.On the General page of the Import Application Wizard, click Browse and then specify a UNC path to the zip file that contains the application you want to import.On the File Content page of the wizard, select the action that will be taken if the application that you are trying to import is a duplicate of an existing application. You can specify to create a new application or to ignore the duplicate and add a new revision to the existing application.On the Summary page of the wizard, review the actions to be taken, and then complete the wizard. The new application appears in the Applications node.The Windows PowerShell cmdlet Import-CMApplication performs the same function as this procedure. For more information, see Import-CMApplicationhttps://technet.microsoft.com/library/jj821738.aspx in the Microsoft System Center 2012 Gestor de configuração SP1 Cmdlet Reference documentation. Deployment types supported by Configuration ManagerDeployment type nameMore informationWindows Installer (*.msi file)Creates a deployment type from a Windows Installer file.Windows app package (*.appx, *.appxbundle)Creates a deployment type for the Windows 8, Windows RT, or later from a Windows app package file or Windows app bundle package.Windows app package (in the Windows Store)Creates a deployment type for Windows 8, Windows RT, or later by specifying a link to the app in the Windows Store or by browsing the store to select the app you require.If you want to deploy the app as a link to the Windows Store, make sure that the Group Policy setting Turn off the Store application is set to Disabled or Not configured. If this setting is enabled, clients will not be able to connect to the Windows Store to download and install applications. Windows 8 deployment types that use a link to a store are always evaluated before other deployment types, irrespective of their priority.Script InstallerCreates a deployment type that specifies a script that runs on client devices to install content or to perform an action.Microsoft Application Virtualization 4Creates a deployment type from a Microsoft Application Virtualization 4 manifest Microsoft Application Virtualization 5Creates a deployment type from a Microsoft Application Virtualization 5 package file. Windows Phone app package (*.xap file)Creates a deployment type from a Windows Phone app package file. Windows Phone app package (in the Windows Phone Store)Creates a deployment type by specifying a link to the app in the Windows Phone store. Windows Mobile CabinetCreates a deployment type for Windows Mobile devices from a Windows Mobile Cabinet (CAB) file. App Package for iOS (*.ipa file)Creates a deployment type from an iOS app package file. App Package for iOS from App StoreCreates a deployment type by specifying a link to the iOS app in the App Store. App Package for Android (*.apk file)Creates a deployment type from an Android app package file. App Package for Android on Google PlayCreates a deployment type by specifying a link to the app on Google Play.Mac OS XCreates a deployment type for Mac computers from a .cmmac file that you have created by using the CMAppUtil tool. Applies to Mac computers running the Gestor de configuração client only.Web ApplicationCreates a deployment type that specifies a link to a web application. The deployment type installs a shortcut to the web application on the user’s device.If you have installed the Intune managed browser on iOS or Android devices that you manage, you can ensure that users can only use the managed browser to open the app. To do this, use one of the following formats when you specify a link to the app by replacing http: with http-intunemam: or https: with https-intunemam:- http-intunemam://<path to web app>- https-intunemam://<path to web app>You can use Gestor de configuração application requirements to ensure that apps you want to associate with the managed browser are only installed to iOS and Android devices. aspx).For more information about the Intune managed browser, see Manage Internet access using managed browser policies with System Center Configuration Manager.Windows Installer through MDM (*.msi)This installer type lets you create and deploy Windows Installer-based apps to PCs that run Windows 10.The following considerations apply when you use this installer type: - You can only upload a single file with the extension .msi. -The file's product code and product version are used for app detection.-The default restart behavior of the app will be used. Gestor de configuração does not control this.-Per user MSI packages will be installed for a single user.- Per machine MSI packages will be installed for all users on the device.- Dual mode MSI packages currently only install for all users on the device.-App updates are supported when the MSI product code of each version is the same.Application management technical reference
Mostrar: