0

调用DesktopAppConverter.exe -Setup -BaseImage c:\temp\Apps\BaseImage-16299.wim以异常结束

超出预期范围的值。

我从https://www.microsoft.com/en-us/software-download/dac下载了图片。

在这里您可以看到日志文件:

[2017-12-11T15:05:03] Log file can be found in C:\DesktopAppConverter\96ad1636-984d-42d7-9bb3-328f332db1bb\logs\DesktopAppConverterSetup.log
[2017-12-11T15:05:03] Desktop App Converter 2.1.1.release_2017-10-25_17-08_813cf2829a8823824411be7075c2d457efea7288
[2017-12-11T15:05:03] --------------------------------------------------

Checking Prerequisites

[2017-12-11T15:05:03] Checking Windows Version to ensure it meets minimum requirements
[2017-12-11T15:05:03] Minimum Windows Version requirement is met.
[2017-12-11T15:05:03] --------------------------------------------------

Running Setup

[2017-12-11T15:05:03] Checking that the Base Image file 'C:\temp\APP\BaseImage-16299.wim' exists
[2017-12-11T15:05:03] Ensuring that the Base Image file 'C:\temp\APP\BaseImage-16299.wim' is a valid windows image
[2017-12-11T15:05:04] Testing for required Windows feature enabled
[2017-12-11T15:05:05] Testing for required feature enabled...
[2017-12-11T15:05:05] Required feature is enabled. Checking if reboot is required
[2017-12-11T15:05:07] Required feature is enabled.
[2017-12-11T15:05:07] Required Windows feature is enabled
[2017-12-11T15:05:07] Setting up expanded base image
[2017-12-11T15:05:07] Deleting any old expanded base image.
[2017-12-11T15:05:07] Checking if there is OS-Matching expanded base image.
[2017-12-11T15:05:07] Preparing to expand base image
[2017-12-11T15:05:07] Validating Base Image path: C:\temp\APP\BaseImage-16299.wim
[2017-12-11T15:05:07] Checking that the Base Image file 'C:\temp\APP\BaseImage-16299.wim' exists
[2017-12-11T15:05:07] Ensuring that the Base Image file 'C:\temp\APP\BaseImage-16299.wim' is a valid windows image
[2017-12-11T15:05:08] Ensure base image matches host OS
[2017-12-11T15:05:08] Testing if base image at C:\temp\APP\BaseImage-16299.wim is compatible with your OS
[2017-12-11T15:05:08] The base image version was determined to be 10.0.16299.0
[2017-12-11T15:05:08] Your Windows version was determined to be 10.0.16299.0
[2017-12-11T15:05:08] Ignoring revision numbers
[2017-12-11T15:05:08] Expanded base image at C:\temp\APP\BaseImage-16299.wim IS compatible with your OS
[2017-12-11T15:05:08] Expanding Base Image (this may take a while)
[2017-12-11T15:12:32] Processing Expanded Base Image at C:\ProgramData\Microsoft\Windows\Images\BaseImage-16299
[2017-12-11T15:12:36] An error occurred converting your application. Here is the full error record: 
[2017-12-11T15:12:36] 

PowerShell Error Record:
Ausnahme beim Aufrufen von "ProcessBaseLayer" mit 1 Argument(en):  "Der Wert liegt außerhalb des erwarteten Bereichs."
PowerShell Stack Trace:
bei Expand-BaseImage, C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\converter_util\BaseImageOps.ps1: Zeile 388
bei Setup-ExpandedImages, C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\Setup.ps1: Zeile 245
bei Setup-DesktopAppConverter, C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\Setup.ps1: Zeile 139
bei <ScriptBlock><Process>, C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1: Zeile 382
bei <ScriptBlock>, <Keine Datei>: Zeile 1

Inner Exception[0]:
System.Management.Automation.MethodInvocationException: Ausnahme beim Aufrufen von "ProcessBaseLayer" mit 1 Argument(en):  "Der Wert liegt außerhalb des erwarteten Bereichs." ---> System.ArgumentException: Der Wert liegt außerhalb des erwarteten Bereichs.
     bei Microsoft.Windows.ComputeVirtualization.ContainerStorage.StorageFunctions.ProcessBaseImage(String path)
     bei Microsoft.Windows.ComputeVirtualization.ContainerStorage.ProcessBaseLayer(String path)
     bei CallSite.Target(Closure , CallSite , Type , Object )
     --- Ende der internen Ausnahmestapelüberwachung ---
     bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
     bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
     bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
     bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
     bei System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
     bei System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
     bei System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
     bei System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
     bei System.Management.Automation.CommandProcessorBase.Complete()
Inner Exception Stack Trace[0]
     bei System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
     bei System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
     bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
     bei System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
     bei System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
     bei System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
     bei System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
     bei System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
     bei System.Management.Automation.CommandProcessorBase.Complete()

Inner Exception[1]:
System.ArgumentException: Der Wert liegt außerhalb des erwarteten Bereichs.
     bei Microsoft.Windows.ComputeVirtualization.ContainerStorage.StorageFunctions.ProcessBaseImage(String path)
     bei Microsoft.Windows.ComputeVirtualization.ContainerStorage.ProcessBaseLayer(String path)
     bei CallSite.Target(Closure , CallSite , Type , Object )
Inner Exception Stack Trace[1]
     bei Microsoft.Windows.ComputeVirtualization.ContainerStorage.StorageFunctions.ProcessBaseImage(String path)
     bei Microsoft.Windows.ComputeVirtualization.ContainerStorage.ProcessBaseLayer(String path)
     bei CallSite.Target(Closure , CallSite , Type , Object )
[2017-12-11T15:12:36] The full error record is saved in the logs at C:\DesktopAppConverter\96ad1636-984d-42d7-9bb3-328f332db1bb\logs

BaseImage-16299在此之后,我在下面找到了一个新文件夹

C:\ProgramData\Microsoft\Windows\Images”。有 12 GB 数据和 84570 个文件。但使用 DesktopAppConverter 无法创建 Windows 应用商店应用程序,出现异常“E_EXPANDED_BASEIMG_INVALID。“C:\ProgramData\Microsoft\Windows\Images\BaseImage-16299”> 处的 ExpandedBaseImage 不是容器映像。

我能做些什么?

4

1 回答 1

0

您还可以使用与 Microsoft 合作开发的Advanced Installer 的新免费 Express 版本转换软件包,其目的是补充 Desktop App Converter。

此工具不需要该基础映像,您可以使用 Hyper-V 或 VMware 虚拟机进行转换。

它有一个允许高级定制 APPX 包的 GUI,而无需您了解内部包模式。

如果您对此有任何疑问,请告诉我,很乐意提供帮助。

免责声明:我在构建 Advanced Installer 的团队中工作。

于 2018-03-29T08:54:42.407 回答