DesktopAppConverter是一個可以將Win10桌面應用直接轉成UWP應用的工具,開發者可以直接以靜默方式將傳統桌面應用安裝包如.msi或.exe轉換為AppX安裝包,之后通過PowerShell命令Add-AppXPackage即可直接部署到Win10桌面系統中。
DesktopAppConverter怎么用
使用說明
開發者可以通過微軟桌面應用轉換工具以靜默方式運行傳統的桌面應用安裝包(MSI或者exe),之后會獲得一個AppX安裝包,可通過PowerShell命令Add-AppXPackage將其部署在Win10桌面系統中。轉換器是在獨立于當前系統的環境中運行桌面應用安裝包的,這個獨立的環境即由所下載wim映像提供。
運行過程中,轉換器會監視安裝包對注冊表以及文件系統的讀寫操作,最終生成AppX安裝包,并且可以調用一部分WinRT API。使用過程中微軟會收集一些信息用于產品的改進。
安裝方法
Desktop App Converter relies on Windows 10 features that are flighted as part of the Windows Insider Preview builds. Make sure that you're on the latest build to utilize the converter.
Ensure that you have the latest Windows 10 Insider Preview OS - Enterprise edition (Build 10.0.14316.0 and up).
Download the DesktopAppConverter.zip and the BaseImage-14316.wim.
Extract the DesktopAppConverter.zip to a local folder.
From an admin PowerShell window:
PS C:\> Set-ExecutionPolicy bypass
Run the following command from an admin PowerShell window to setup the converter:
PS C:\> .\DesktopAppConverter.ps1 -Setup -BaseImage .\BaseImage-14316.wim
實例
PS C:\>.\DesktopAppConverter.ps1 -ExpandedBaseImage C:\ProgramData\Microsoft\Windows\Images\BaseImage-14316 -Installer C:\Installer\MyApp.exe -InstallerArguments "/S" -Destination C:\Output\MyApp -PackageName "MyApp" -Publisher "CN=<publisher_name>" -Version 0.0.0.1 -MakeAppx -Verbose
UWP是什么
UWP可讓開發者開發出單一的能夠根據設備和屏幕尺寸進行調整的應用,讓一款應用能夠同時適用于Windows 10電腦、Windows 10平板電腦、Windows 10 Mobile智能手機和Xbox One游戲主機,未來也將兼容增強現實設備HoloLens。
微軟發布了四種新的Windows Store應用類型。它讓開發者能夠重新使用他們的Web代碼、Windows桌面應用程序(.NET代碼)、Android應用(Java和C++)和iOS應用(Objective C)。
Project Centennial仍處于預覽階段,它可讓桌面開發者將其現有基于Win32的Windows應用程序發布到Windows Store。而desktop app converter正是為了這一目的。
DesktopAppConverter有什么用
desktop app converter的一大好處在于,也適用于游戲。微軟Xbox部門主管菲爾·斯彭塞(Phil Spencer)就游戲開發者能夠如何將其Windows游戲(比如Steam上的游戲)轉到UWP,并帶到Windows Store進行了演示。他專門演示了將《帝國時代II》(Age of Empires II)轉成現代Windows應用的過程。
- PC官方版
- 安卓官方手機版
- IOS官方手機版