使用 Microsoft Endpoint Configuration Manager 部署 MSIX Core 應用程式Deploy MSIX Core apps with Microsoft Endpoint Configuration Manager

使用 Microsoft Endpoint Configuration Manager 提供的 MSIX 應用程式可讓 IT 專業人員將其他應用程式連結為相依性,以強制在之前安裝。The delivery of MSIX applications using the Microsoft Endpoint Configuration Manager allows IT Pros to link other applications as dependencies, forcing them to install prior to. 藉由建立 MSIX Core 應用程式的相依性,我們會強制只有在裝置需要時,才會安裝 MSIX Core 應用程式。By creating a dependency to the MSIX Core application, we enforce the MSIX Core application to be installed only when required by the device. 如需 Micosoft 端點中應用程式相依性的詳細資訊 Configuration Manager 參閱: 建立應用程式:部署類型相依性。For more information on application dependencies in Micosoft Endpoint Configuration Manager see: Create Applications: Deployment type Dependencies.

開始使用Get started

下列步驟將引導您使用 Microsoft Endpoint Configuration Manager 來設定 MSIX 核心部署策略:The following steps will guide you through setting up an MSIX Core deployment strategy by using Microsoft Endpoint Configuration Manager:

  1. 使用 Microsoft Endpoint Configuration Manager 部署 MSIX 核心Deploy MSIX Core with Microsoft Endpoint Configuration Manager
  2. 更新您現有的 MSIX 套件以支援 MSIX CoreUpdate your existing MSIX package to support MSIX Core
  3. 使用 Microsoft Endpoint Configuration Manager 部署 MSIX Core 應用程式Deploy MSIX Core Apps with Microsoft Endpoint Configuration Manager

建立 MSIX Core Microsoft Endpoint Configuration Manager 應用程式Creating the MSIX Core Microsoft Endpoint Configuration Manager application

下列程式將引導您建立 Microsoft Endpoint Configuration Manager 應用程式,以將 MSIX Core 應用程式部署至用戶端裝置。The following will guide you through the creation of a Microsoft Endpoint Configuration Manager application, for the purpose of deploying MSIX Core apps to client devices.

假設您已遵循先前的指南 (請參閱上述開始一節中的指南清單) ,並已取出/更新/建立 MSIX Core 啟用 rms 應用程式。Assuming you followed the previous guides (See the list of guides in the Get Started section above) and have retrieved/updated/created an MSIX Core enlightened app. 以及將應用程式複製到 Microsoft Endpoint Configuration Manager 工具可存取的檔案共用。As well as have copied the app to a file share that is accessible by the Microsoft Endpoint Configuration Manager tool. 下一步是要將新的應用程式部署至環境內的用戶端裝置。The next step is to deploy the new app to client devices within your environment.

在 Microsoft Endpoint Configuration Manager 中建立 MSIX Core 相依應用程式Create MSIX Core dependent application in Microsoft Endpoint Configuration Manager

  1. 從 Microsoft Endpoint Configuration Manager 主控台中,流覽至: 軟體程式庫 > 總覽/應用程式管理/應用程式From within the Microsoft Endpoint Configuration Manager console navigate to: Software Library > Overview / Application Management / Applications.
  2. 從功能區選取 [ 建立應用程式 ]。Select Create Application from the ribbon.
  3. 選取 [ 手動指定應用程式資訊 ] 選項按鈕。Select the Manually specify the application information radio button.
  4. 選取 [下一步] 按鈕。Select the Next button.
  5. 在適當的欄位中輸入應用程式詳細資料。Enter the application details into the appropriate fields.
  6. 選取 [ 下一步] 按鈕兩次。Select the Next button twice.
  7. 選取 [新增] 按鈕。Select the Add button.
  8. 將類型設定為 [ 腳本安裝程式]。Set the Type to Script Installer.
  9. 選取 [下一步] 按鈕。Select the Next button.
  10. 輸入尾碼為 " -MSIXCore" 的應用程式名稱, (IE: "application Y-MSIXCore" ) 。Enter the application name with a suffix of " - MSIXCore" (IE: "Application Y - MSIXCore").
  11. 選取 [下一步] 按鈕。Select the Next button.
  12. 選取 [內容位置] 旁的 [流覽] 按鈕,然後流覽至包含應用程式安裝媒體的檔案共用。Select the Browse button next to Content location and navigate to the file share containing the app installation media.
  13. 選取 [ 選取資料夾 ] 按鈕。Select the Select Folder button.
  14. 選取 [安裝程式] 旁邊的 [流覽] 按鈕,將 [檔案類型] 設為 [所有檔案] ** ( *. * ) ** 然後選取安裝媒體。Select the Browse button next to Installation Program, set the file type to be All Files ( * . * ) and select the installation media.
  15. 選取 [ 開啟 ] 按鈕。Select the Open button.
  16. 將 [安裝程式] 欄位更新為:Update the Installation program field to:
"C:\Program Files\msixmgr\msixmgr.exe -AddPackage [Application.msix] -quietUX"
  1. 將 [卸載程式] 欄位設定為:Set the Uninstall program field to be:
"C:\Program Files\msixmgr\msixmgr.exe" -RemovePackage [Package Family Name] -quietUX
  1. 以 MSIX 應用程式的套件系列名稱取代 [套件系列名稱]。Replace [Package Family Name] with the package family name of the MSIX application.
  2. 選取 [下一步] 按鈕。Select the Next button.
  3. 選取 [ 使用自訂腳本偵測此部署類型是否存在 ] 選項按鈕。Select the Use a custom script to detect the presence of this deployment type radio button.
  4. 選取 [ 編輯 ] 按鈕。Select the Edit button.
  5. 確認腳本類型已設為 PowerShellVerify that Script type is set as PowerShell
  6. 輸入以下資訊:Enter the following:
Set-Location "C:\Program Files\msixmgr"

IF([Boolean]$(get-item "msixmgr.exe"))
{
    $Result = $(.\msixmgr.exe -FindPackage [Package Family Name]*)

    IF($($Result.GetType().Name) -eq "Object[]")
    {
        Return 1
    }
}
  1. 使用應用程式的 MSIX 套件系列名稱來更新 [套件系列名稱]。Update [Package Family Name] with the MSIX package family name of the application.
  2. 選取 [ 確定] 按鈕。Select the Ok button.
  3. 選取 [下一步] 按鈕。Select the Next button.
  4. 設定要 為使用者安裝的安裝行為。Set the Installation behavior to Install for User.
  5. 將 [允許的執行時間上限] 設定為 [允許的執行時間上限] (分鐘) ,並將 [估計的安裝時間] () 分鐘設定為Set the Maximum allowed run time (minutes) and Estimated installation time (minutes) to values approriate for this application.
  6. 將安裝程式可見度設定為 隱藏Set the Installation program visibility as Hidden.
  7. 選取 [下一步] 按鈕。Select the Next button.
  8. 選取 [新增] 按鈕。Select the Add button.
  9. 確定類別已設定為 [ 裝置]。Ensure the Category has been set to Device.
  10. 將條件設定為 作業系統Set the Condition as Operating system
  11. 從作業系統清單中選取 [ Windows 7 ] 核取方塊。Select the Windows 7 checkbox from the list of Operating systems.
  12. 選取 [ 確定] 按鈕。Select the Ok button.
  13. 選取 [下一步] 按鈕。Select the Next button.
  14. 選取 [新增] 按鈕。Select the Add button.
  15. 將相依性組名設定為 MSIX CoreSet the Dependency group name as MSIX Core.
  16. 選取 [新增] 按鈕。Select the Add button.
  17. 從可用的應用程式清單中選取 [ MSIX Core ]。Select MSIX Core from the list of Available applications.
  18. 從 [部署類型] 清單中選取32位和64位選項。Select both 32-bit and 64-bit options from the Deployment types list.
  19. 選取 [ 確定] 按鈕。Select the Ok button.
  20. 選取 [ 確定] 按鈕。Select the Ok button.
  21. 選取 [ 下一步] 按鈕兩次。Select the Next button twice.
  22. 選取 [關閉]**** 按鈕。Select the Close button.

新增非 MSIX Core 相依部署類型Add non-MSIX Core dependent deployment type

  1. 選取 [新增] 按鈕。Select the Add button.
  2. 請確定類型已設為 **Windows 應用程式套件 (.appx、* .appxbundle、. msix、*. msixbundle) * *。Ensure the Type has been set to *Windows app package (.appx, *.appxbundle, *.msix, *.msixbundle)**.
  3. 選取 [ 流覽 ...] 按鈕,並流覽至 MSIX Core 啟用 rms 應用程式安裝媒體,然後選取 [ 開啟 ] 按鈕。Select the Browse... button and navigate to the MSIX Core enlighted application installation media, then select the Open button.
  4. 選取 [ 下一步] 按鈕六次。Select the Next button six times.
  5. 選取 [關閉]**** 按鈕。Select the Close button.
  6. 選取 [ 下一步] 按鈕兩次。Select the Next button twice.
  7. 選取 [關閉]**** 按鈕。Select the Close button.