【发布时间】:2016-12-23 21:41:14
【问题描述】:
我有桌面应用程序,想将其转换为 uwp 应用程序。 我使用带有 powershell 的桌面应用程序转换器。 我正在尝试转换我的启动项目 exe,但每次我尝试执行都停止在
在隔离环境中运行安装程序
详细:未指定安装程序的有效退出代码。使用默认值:0 详细:替换 -InstallerArguments 中的任何出现 使用 C:\installer\logs VERBOSE:单独运行安装程序命令 环境:详细:命令行= "C:\installer\X.Framework.Main.exe" /被动
部分。我尝试转换的exe是错误的还是我写的-InstallerArgument?我应该改变什么才能成功结束转换?
我的 PowerShell 命令:
PS C:\Users\EccE\Desktop\convert> .\DesktopAppConverter.ps1 -Installer C:\Users\EccE\Desktop\X\X-wpf-framework\bin\Debug\X.Framework.Main.exe -InstallerArguments "/passive" -Destination C:\Users\EccE\Desktop\X\X-out\ -PackageName "XApp" -Publisher "CN=X" -Version 0.0.0.1 -MakeAppx -Verbose
编辑:
当我尝试转换项目解决方案时,出现以下错误:
在隔离环境中运行安装程序
详细:未指定安装程序的有效退出代码。使用默认值:0 详细:替换 -InstallerArguments 中的任何出现 使用 C:\installer\logs VERBOSE:单独运行安装程序命令 环境:详细:命令行= "C:\installer\X.Framework.sln" /passive VERBOSE: 移动任何日志 在 C:\DesktopAppConverter\e931cac0-58a1-46dc-9efd-f5f442a0d814\shared\logs 到 C:\DesktopAppConverter\e931cac0-58a1-46dc-9efd-f5f442a0d814\logs 详细:通过删除隔离环境共享文件夹进行清理 'C:\DesktopAppConverter\e931cac0-58a1-46dc-9efd-f5f442a0d814\shared' 详细:发生错误。参考登录 C:\DesktopAppConverter\e931cac0-58a1-46dc-9efd-f5f442a0d814\logs 调用“RunIsolatedProcessWithMappedDirectoryAndExport”的异常 带有“6”个参数:“ geçerli bir Win32 uygulaması değil。(HRESULT özel durum döndürdü: 0x800700C1)" 在 C:\Users\EccE\Desktop\convert\converter_util\Sequencer.ps1:141 char:9 + $installerExitCode = [Microsoft.Centennial.Tools.DesktopAppCo ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : BadImageFormatException
【问题讨论】:
标签: powershell uwp desktop-bridge desktop-app-converter