百年错误计划

百年错误计划

我一遍又一遍地收到相同的错误消息。我检查了日志,它们毫无用处,因为它们只是重述屏幕上打印的内容。我曾尝试联系 Microsoft 技术支持,但他们要 499 美元才能回答我的问题。所以我知道这个问题很可能会被否决并导致我被禁止,但这是我的最后选择,而且比 500 美元便宜。这是我输入的命令(是的,VLC,试图重新创建 Microsoft 教程)以及我不断收到的错误:

PS C:\Users\Mark\Desktop\DesktopAppConverter> .\DesktopAppConverter.ps1 -ExpandedBaseImage C:\ProgramData\Microsoft\Wind
ows\Images\BaseImage-14393 -Installer C:\Users\Mark\Desktop\VLC\vlc-2.2.4-win32.exe -InstallerArguments "/quiet","/nores
tart" -Destination C:\Users\Mark\Desktop\VLC -PackageName "VLC" -Publisher "CN=VideoLAN" -Version 1.0.0.0 -Verbose
VERBOSE: Log files can be found in C:\DesktopAppConverter\f18ef452-9062-487e-bbee-6599c9157a0d\logs
VERBOSE: Desktop App Converter Preview 0.1.15.release_2016-05-09_12-56_1a4902
VERBOSE: --------------------------------------------------


Checking Prerequisites

VERBOSE: Checking Windows Version to ensure it meets minimum requirements
VERBOSE: Minimum Windows Version requirement is met.
VERBOSE: Testing for required feature enabled...
VERBOSE: An error occurred. Refer to logs in C:\DesktopAppConverter\f18ef452-9062-487e-bbee-6599c9157a0d\logs
Get-WindowsOptionalFeature : An attempt was made to load a program with an incorrect format.
At C:\Users\Mark\Desktop\DesktopAppConverter\converter_util\EnvironmentAssertions.ps1:37 char:16
+ ...  $feature = Get-WindowsOptionalFeature -Online -FeatureName "Containe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-WindowsOptionalFeature], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetWindowsOptionalFeatureCommand

如您所见,它启动并能够验证我的 Windows 版本,然后在下一个先决条件处停止。此外,在帮助描述中,它说“此转换器依赖于启用的可选 Windows 功能。”有人知道它指的是什么功能吗?一如既往,提前感谢您的帮助。

答案1

文档指出仅支持 64 位,您可能使用了错误的二进制文件 (vlc-2.2.4-win32.exe)

答案2

所引用的功能是“容器”功能,当您转到“程序和功能”->“打开或关闭 Windows 功能”时,您应该会注意到该功能,然后在随后的窗口中您应该会看到“容器”。在尝试运行转换器之前,需要启用该功能。您是否尝试使用此处提到的步骤设置转换器:https://msdn.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-run-desktop-app-converter? 另外,我注意到您正在运行旧版本的转换器(0.1.15),因此您也应该尝试更新到最新版本(0.1.24)——您报告的问题与版本无关,但仍使用最新版本。

相关内容