使用封裝編輯器來編輯封裝Edit a package using Package editor

若要對現有的 MSIX 套件進行變更,例如編輯資訊清單中的屬性或封裝的內容,而不需要再次封裝安裝程式,您可以在 MSIX 封裝工具中使用 封裝編輯器To make changes to an existing MSIX package, such as editing the properties in the manifest or the contents of the package without having to package the installer again, you can use Package editor in the MSIX Packaging Tool.

從 MSIX 封裝工具的 [歡迎使用] 頁面中,選取 [ 封裝編輯器 ] 圖示,流覽您的 MSIX 封裝,然後選取 [ 開啟套件]。From the welcome page of the MSIX Packaging Tool, select the Package editor icon, browse for your MSIX package and select Open package. 您也可以在 MSIX 套件上按一下滑鼠右鍵,然後選取 [ 使用 MSIX 封裝工具編輯 ] (可在 [版本] 1.2019.1018.0 和更新版本上使用的 [編輯]) 。You can also right-click on an MSIX package, and select Edit with MSIX Packaging Tool (Available on versions 1.2019.1018.0 and later).

您可以透過 [封裝編輯器],透過底部的 [解除封裝] 按鈕將 MSIX 封裝解壓縮。You can unpack your MSIX package from the package editor through the 'unpack' button on the bottom. 然後,您可以選取要將 MSIX 封裝解壓縮的位置。You can then select the location where you would like to unpack your MSIX package.

套件資訊頁面Package information page

在 [ 封裝資訊 ] 頁面上,您可以透過 UI 中的欄位來變更您的封裝資訊,或選擇在您選擇的編輯器中手動開啟 MSIX 資訊清單檔,以變更資訊清單欄位。On the Package information page, you can change your package information through the fields in the UI or choose to open the MSIX manifest file manually in the editor of your choice to make changes to the manifest fields. 您在編輯資訊清單時,套件編輯器頁面是不可編輯的。While you are editing the manifest the package editor page is not editable. 當您儲存資訊清單後,UI 會隨即更新。Once you save the manifest, the UI will get updated.

您可以流覽至封裝編輯器的其他區段,以編輯您的功能、虛擬登錄或封裝檔案。You can navigate to other sections of the package editor to edit your capabilities, virtual registry, or package files. 完成編輯套件之後,請務必先簽署您的套件並更新版本,然後再儲存變更。When you are finished editing your package, be sure to sign your package and update your version before saving your changes.

packageeditorpkginfo1

packageeditorpkginfo2

功能頁面Capabilities page

在 [ 功能 ] 頁面上,您可以新增或移除封裝的 功能On the Capabilities page you can add or remove capabilities for the package. 如果功能存在套件中,其核取方塊會是勾選狀態。If a capability is present in the package, then the checkbox will be checked. 如果您選取或取消選取功能,您的資訊清單也會更新。If you select or deselect a capability, it will update your manifest. 這會轉譯為 MSIX 資訊清單中的 元素。This translates to the element in the MSIX manifest.

pic11

虛擬登錄頁面Virtual registry page

[ 虛擬 登錄] 頁面會顯示應用程式的所有已封裝虛擬登錄專案。The Virtual registry page shows all the packaged virtual registry entries for the application.

以滑鼠右鍵按一下左側視窗中的節點,以執行下列作業:Right-click a node in left window to perform the these operations:

  • 展開/摺疊:展開或摺疊登錄區中的所有登錄機碼。Expand/collapse: to expand or collapse all the registry keys in the hive.
  • 機碼:可讓使用者重新命名、刪除或建立新機碼。Key: allows user to rename, delete or create a new key.
  • 值:可讓使用者將機碼值新增為字串、二進位值或 DWORD。Value: allows user to add a key value as string, binary or DWORD.

以滑鼠右鍵按一下右側視窗中的任何位置,以執行下列作業:Right-click anywhere in the right window to perform the these operations:

  • 刪除:刪除機碼。Delete: to delete a key.
  • 新增字串:將字串值新增至機碼。Add String: to add a string value to a key.
  • 新增二進位值:將二進位值新增至機碼。Add binary: to add a binary value to a key.
  • 新增 DWORD:將 DWORD 值新增至機碼。Add DWORD: to add a DWORD value to a key.

pic12

套件檔案頁面Package files page

在 [套件檔案]**** 頁面中,您可以按兩下來展開套件內容的檔案系統。On the Package files page, you can double click to expand the file system of the package contents. 例如,您可以使用此頁面來編輯應用程式圖示和資產For example, you can use this page to edit app icons and assets.

以滑鼠右鍵按一下資料夾,以執行下列作業:Right-click a folder to perform the these operations:

  • 新增檔案:將檔案新增至選取的資料夾。Add file: Add a file to the folder selected.
  • 新資料夾:建立新的空資料夾。New folder: Create a new empty folder.
  • 新增資料夾:流覽以加入現有的資料夾。Add folder: Browse to add an existing folder.
  • 刪除:刪除選取的資料夾。Delete: Delete the selected folder.
  • 移動:將資料夾重新命名或移動到新位置。Move: Rename or move the folder to a new location.

以滑鼠右鍵按一下檔案,以執行下列作業:Right-click on a file to perform the these operations:

  • 刪除:刪除選取的檔案。Delete: Delete the selected file.
  • Move:重新命名或將檔案移到新位置。Move: Rename or move the file to a new location.

pic13