Win10桌面应用直接转换为UWP应用 0.1.8 官方安装版
win10桌面应用直接转换为UWP应用是一款能够将传统桌面应用转换为Win10 UWP应用的转换工具。从以前的应用虚拟化(App-V)上改过来的,主要起到沙盒的功能,外加分享WinRT API支持。通过此工具,开发者可以直接以静默方式将传统桌面应用安装包如.msi或.exe转换为AppX安装包,之后通过PowerShell命令Add-AppXPackage即可直接部署到Win10桌面系统中。
运行过程中,转换器将对安装包的注册表和文件系统读写操作进行监视,最终直接生成AppX安装包,过程中微软将会收集一些必要信息以对产品进行进一步优化。
安装Desktop App Converter:
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=
.Appx 文件签名:
The Add-AppxPackage cmdlet requires that the application package (.appx) being deployed must be signed. Use SignTool.exe, which ships in the Microsoft Windows 10 SDK, to sign the .appx package.
Example
C:\> MakeCert.exe -r -h 0 -n “CN=
C:\> pvk2pfx.exe -pvk
C:\> signtool.exe sign -f
用法:
DesktopAppConverter.ps1
-ExpandedBaseImage
-Installer
-Destination
-PackageName
-Publisher
-Version
[-AppExecutable
[-AppFileTypes
[-AppId
[-AppDisplayName
[-AppDescription
[-PackageDisplayName
[-PackagePublisherDisplayName
[-MakeAppx]
[-NatSubnetPrefix
[-LogFile
[
下载仅供下载体验和测试学习,不得商用和正当使用。