将 Windows 业务线应用添加到 Microsoft IntuneAdd a Windows line-of-business app to Microsoft Intune

业务线 (LOB) 应用是从应用安装文件添加的应用。A line-of-business (LOB) app is one that you add from an app installation file. 此类应用通常在内部编写。This kind of app is typically written in-house. 以下步骤提供指导,以帮助将 Windows LOB 应用添加到 Microsoft Intune。The following steps provide guidance to help you add a Windows LOB app to Microsoft Intune.


使用带 .msi 扩展名(使用内容准备工具打包在 .intunewin 文件中)的安装文件部署 Win32 应用时,请考虑使用 Intune 管理扩展When deploying Win32 apps using an installation file with the .msi extension (packaged in an .intunewin file using the Content Prep Tool), consider using Intune Management Extension. 如果在 AutoPilot 注册期间混合安装 Win32 应用和业务线应用,则应用安装可能会失败。If you mix the installation of Win32 apps and line-of-business apps during AutoPilot enrollment, the app installation may fail.

选择应用类型Select the app type

  1. 登录到 Microsoft 终结点管理器管理中心Sign in to the Microsoft Endpoint Manager admin center.
  2. 选择“应用” > “所有应用” > “添加”。Select Apps > All apps > Add.
  3. 在“选择应用类型”窗格中的“其他”应用类型下,选择“业务线应用”。In the Select app type pane, under the Other app types, select Line-of-business app.
  4. 单击“选择”。Click Select. 将显示“添加应用”步骤。The Add app steps are displayed.

步骤 1 - 应用信息Step 1 - App information

选择应用包文件Select the app package file

  1. 在“添加应用”窗格中,单击“选择应用包文件”。In the Add app pane, click Select app package file.

  2. 在“应用包文件”窗格中,选择“浏览”按钮。In the App package file pane, select the browse button. 然后选择带扩展名“.msi”、“.appx”,或“.appxbundle”的 Windows 安装文件。Then, select a Windows installation file with the extension .msi, .appx, or .appxbundle. 将显示应用详细信息。The app details will be displayed.


    Windows 应用的文件扩展名包括 .msi、.appx、.appxbundle、.msix 和 .msixbundle 。The file extensions for Windows apps include .msi, .appx, .appxbundle, .msix, and .msixbundle. 有关 .msix 的详细信息,请参阅 MSIX 文档MSIX 应用分发For more information about .msix, see MSIX documentation and MSIX App Distribution.

  3. 完成后,在“应用包文件”窗格中选择“确定”以添加应用。When you're finished, select OK on the App package file pane to add the app.

设置应用信息Set app information

  1. 在“应用信息”页中,添加应用的详细信息。In the App information page, add the details for your app. 此窗格中的某些值可能已自动填充,具体取决于所选应用。Depending on the app that you chose, some of the values in this pane might be automatically filled in.
    • 名称:输入显示在公司门户中的应用的名称。Name: Enter the name of the app as it appears in the company portal. 请确保使用的所有应用名称都是唯一的。Make sure all app names that you use are unique. 如果同一应用名称存在两次,则公司门户中仅显示其中一个应用。If the same app name exists twice, only one of the apps appears in the company portal.
    • 描述:输入应用的说明。Description: Enter the description of the app. 描述显示在公司门户中。The description appears in the company portal.
    • 发布者:输入应用发布者的名称。Publisher: Enter the name of the publisher of the app.
    • 应用安装上下文:选择要与此应用相关联的安装上下文。App Install Context: Select the install context to be associated with this app. 对于双模式应用,选择此应用所需的上下文。For dual mode apps, select the desired context for this app. 对于其他所有应用,此设置是根据包预先选择的,无法进行修改。For all other apps, this is pre-selected based on the package and cannot be modified.
    • 忽略应用版本:如果应用开发人员自动更新应用,则设置为“是”。Ignore app version: Set to Yes if the app developer automatically updates the app. 此选项仅适用于移动 .msi 应用。This option applies to mobile .msi apps only.
    • 命令行参数:(可选)输入要在 .msi 文件运行时应用到该文件的任意命令行参数。Command-line arguments: Optionally, enter any command-line arguments that you want to apply to the .msi file when it runs. 例如 /q。An example is /q. 不要添加 msiexec 命令或参数(如 /i 或 /x),因为它们是自动使用的。Do not include the msiexec command or arguments, such as /i or /x, as they are automatically used. 有关详细信息,请参阅命令行选项For more information, see Command-Line Options. 如果 .MSI 文件需要其他命令行选项,请考虑使用 Win32 应用管理If the .MSI file needs additional command-line options consider using Win32 app management.
    • 类别:选择一个或多个内置应用类别,或选择你创建的类别。Category: Select one or more of the built-in app categories, or select a category that you created. “类别”可让用户在浏览公司门户时更轻松地查找应用。Categories make it easier for users to find the app when they browse through the company portal.
    • 在公司门户中将此应用显示为特色应用:当用户浏览应用时,在公司门户的主页上突出显示应用。Show this as a featured app in the Company Portal: Display the app prominently on the main page of the company portal when users browse for apps.
    • 信息 URL:(可选)输入包含此应用相关信息的网站的 URL。Information URL: Optionally, enter the URL of a website that contains information about this app. 此 URL 显示在公司门户中。The URL appears in the company portal.
    • 隐私 URL:(可选)输入包含此应用相关隐私信息的网站的 URL。Privacy URL: Optionally, enter the URL of a website that contains privacy information for this app. 此 URL 显示在公司门户中。The URL appears in the company portal.
    • 开发者:(可选)输入应用开发者的名称。Developer: Optionally, enter the name of the app developer.
    • 所有者:(可选)输入此应用的所有者的名称。Owner: Optionally, enter a name for the owner of this app. 例如,“HR 部门”。An example is HR department.
    • 备注:输入想与此应用关联的任何备注。Notes: Enter any notes that you want to associate with this app.
    • 徽标:上传与应用关联的图标。Logo: Upload an icon that is associated with the app. 用户浏览公司门户时,此图标将与应用一同显示。This icon is displayed with the app when users browse through the company portal.
  2. 单击“下一步”以显示“作用域标记”页面。Click Next to display the Scope tags page.

步骤 2 - 选择作用域标记(可选)Step 2 - Select scope tags (optional)

可以使用作用域标记来确定谁可以在 Intune 中查看客户端应用信息。You can use scope tags to determine who can see client app information in Intune. 若要详细了解作用域标记,请参阅将基于角色的访问控制和作用域标记用于分布式 ITFor full details about scope tags, see Use role-based access control and scope tags for distributed IT.

  1. 单击“选择作用域标记”可以选择为应用添加作用域标记。Click Select scope tags to optionally add scope tags for the app.
  2. 单击“下一步”以显示“分配”页面 。Click Next to display the Assignments page.

步骤 3 - 分配Step 3 - Assignments

  1. 为应用选择“必需”、“适用于已注册的设备”或“卸载”组分配。Select the Required, Available for enrolled devices, or Uninstall group assignments for the app. 有关详细信息,请参阅添加用于组织用户和设备的组使用 Microsoft Intune 将应用分配到组For more information, see Add groups to organize users and devices and Assign apps to groups with Microsoft Intune.
  2. 单击“下一步”以显示“查看 + 创建”页。Click Next to display the Review + create page.

步骤 4 - 查看 + 创建Step 4 - Review + create

  1. 查看为应用输入的值和设置。Review the values and settings you entered for the app.

  2. 完成后,单击“创建”将应用添加到 Intune。When you are done, click Create to add the app to Intune.

    将显示业务线应用的“概述”边栏选项卡。The Overview blade for the line-of-business app is displayed.

你创建的应用现在显示在应用列表中。The app that you created now appears in the list of apps. 从列表中,可以将应用分配到所选组。From the list, you can assign the apps to groups that you choose. 如需帮助,请参阅如何将应用分配到组For help, see How to assign apps to groups.

更新业务线应用Update a line-of-business app

  1. 登录到 Microsoft 终结点管理器管理中心Sign in to the Microsoft Endpoint Manager admin center.
  2. 选择“应用” > “所有应用” 。Select Apps > All apps.
  3. 从应用列表中找到并选择你的应用。Find and select your app from the list of apps.
  4. 从应用窗格的“管理”下选择“属性”。Select Properties under Manage from the app pane.
  5. 选择“应用信息”旁边的“编辑”。Select Edit next to App information.
  6. 单击“选择要更新的文件” 旁边的列出的文件。Click on the listed file next to Select file to update. 随即显示“应用包文件” 窗格。The App package file pane is displayed.
  7. 选择文件夹图标,然后浏览到已更新的应用文件所在的位置。Select the folder icon and browse to the location of your updated app file. 选择“打开” 。Select Open. 应用信息将随包信息一同更新。The app information is updated with the package information.
  8. 验证“应用版本” 是否体现更新后的应用包。Verify that App version reflects the updated app package.


为了让 Intune 服务成功地将新的 APPX 文件部署到设备上,必须在 APPX 包的 AppxManifest.xml 文件中递增 Version 字符串。For the Intune service to successfully deploy a new APPX file to the device, you must increment the Version string in the AppxManifest.xml file in your APPX package.

配置自我更新的移动 MSI 应用以忽略版本检查过程Configure a self-updating mobile MSI app to ignore the version check process

可以配置已知的自我更新移动 MSI 应用以忽略版本检查过程。You can configure a known self-updating mobile MSI app to ignore the version check process.

某些基于 MSI 安装程序的应用会由应用开发者或其他更新方法自动更新。Some MSI installer-based apps are automatically updated by the app developer or another update method. 对于这些自动更新的 MSI 应用,可以在“应用信息”窗格中配置“忽略应用版本”设置。For these automatically updated MSI apps, you can configure the Ignore app version setting in the App information pane. 当此设置切换为“是”时,Microsoft Intune 将不会强制执行在 Windows 客户端上安装的应用版本。When you switch this setting to Yes, Microsoft Intune will not enforce the app version that's installed on the Windows client.

此功能有助于避免出现争用条件。This capability is useful to avoid getting into a race condition. 例如,当应用开发者自动更新应用并通过 Intune 更新时,就会出现争用条件。For instance, a race condition can occur when the app is automatically updated by the app developer and is updated by Intune. 两者都可能在 Windows 客户端上尝试强制执行一个应用版本,进而引发冲突。Both might try to enforce a version of the app on a Windows client, which creates a conflict.

后续步骤Next steps