準備您的環境以進行轉換Prepare your environment for conversion

準備轉換環境是轉換程式中的一個重要步驟。Preparing your conversion environment is an important step in the conversion process. 當您將現有的安裝程式轉換成 MSIX 時,下列建議可協助確保您的成功。The following recommendations will help to ensure your success when you are converting your existing installers to MSIX.

  • MSIX 封裝工具的最低 OS 版本需求是 Windows 10 1809。The minimum OS version requirement for the MSIX Packaging Tool is Windows 10 1809. 我們了解並非所有人都已使用 Windows 10 2018 年 10 月更新,或者甚至還不是使用 Windows 10。We understand that not everyone is on the Windows 10 October 2018 Update or even Windows 10. 因此,我們建議您建立全新的 VM,以針對 MSIX 封裝工具支援的最低版本進行預先設定。Therefore, we recommend that you create a clean VM that is pre-configured for the min version of support for the MSIX Packaging Tool. 部署所產生的 MSIX 套件有不同的支援需求。Deployment of the generated MSIX package has different support requirements.

  • 全新的轉換電腦很重要,因為在 MSIX 封裝工具的安裝步驟中,我們將會接聽環境中的所有專案,以捕捉安裝程式所執行的作業。A clean machine for conversion is important because during the installation step of the MSIX Packaging Tool, we will be listening to everything in the environment to capture what the installer is doing. 全新的電腦表示您的電腦上未執行任何不相關的應用程式或服務,可能會在您的套件中被捕捉。A clean machine means that there aren't extraneous apps or services running on your machine that could get captured in your package.

  • 我們建議您設定轉換機器,以模擬將會執行 MSIX 套件的環境,因此如果有服務或原則存在,您可以測試封裝是否確實可以運作。We recommend configuring the conversion machine to mimic the environment where the MSIX package will be run, so if there are services or policies that will be there, you can test that the package will actually work.

  • 您的轉換環境應符合您將在其中部署應用程式的架構。Your conversion environment should match the architecture of where you will be deploying the application. 例如,如果您要將 MSIX 套件部署在 x64 電腦上,您應該在 x64 電腦上執行轉換。For example, if you are going to deploy your MSIX package on an x64 machine, you should perform the conversion on an x64 machine.

  • 如果這不是您所提供的東西,我們會在 Hyper-v 中提供快速建立 VMMSIX 封裝工具環境),這已準備好轉換成 Windows 10 1809 和最新版本的 MSIX 封裝工具。If this isn't something you have we offer a Quick Create VM, the MSIX Packaging Tool Environment in Hyper-V, which is ready to go with conversion with Windows 10 1809 and the latest version of the MSIX Packaging Tool.

  • 依照最佳作法建議來設定 MSIX 封裝工具(或您選擇的工具),然後建立 VM 的檢查點。Follow the best practices recommendations for setting up the MSIX Packaging Tool (or tool of your choice), then create a checkpoint for the VM. 如此一來,您就可以使用 VM 轉換、還原為先前的檢查點,而且它將會是乾淨、已設定好的機器,可供再次轉換或驗證您的 MSIX 套件是否已轉換成功。This way you can use the VM to convert, revert to your previous checkpoint, and it will be a clean, configured machine ready for conversion again or for verifying your MSIX package converted successfully.

  • 最好也能夠知道您具有哪種類型的相依性,如此您便能了解應該搭配應用程式執行哪些相依性,以及哪些相依性應該封裝為修改套件。Its also good to know what kind of dependencies you have so that you can understand which ones you should run with your app and which should be packaged as a modification package. 舉例來說,如果您有執行階段相依性,在您的主要應用程式中包含這些相依性是很好的想法。For example, if you have runtime dependencies, it’s a good idea to include those in your main application. 如果您有外掛程式,您應該將其封裝為修改套件,以與您的主要應用程式產生關聯。If you have a plug in, you should package that as a modification package to associate with your main application.

  • 如果您想要在遠端電腦上執行轉換,就必須執行一些額外的設定,才能讓它進行轉換。If you want to perform your conversion on a remote machine, you will need to do some additional set-up to enable it for conversion.