首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >DesktopAppConverter问题,Windows10 v.17134

DesktopAppConverter问题,Windows10 v.17134
EN

Stack Overflow用户
提问于 2018-07-20 15:23:03
回答 2查看 519关注 0票数 0

我正在尝试使用桌面应用转换器将我的Win32应用从MSI转换为UWP appx包,这样我就可以在Windows Store中更新它。Here's the steps

当我下载Windows_BaseImage_DAC_17134.wim文件并尝试安装它时,我在最后得到了这个(我不确定它是否意味着什么):

下面是与文本相同的内容:

代码语言:javascript
复制
VERBOSE: Removing any pre-existing NAT network
Get-NetNat : Invalid class
At C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\converter_util\ContainerNetwor
kSetup.ps1:158 char:24
+         $existingNat = Get-NetNat
+                        ~~~~~~~~~~
    + CategoryInfo          : MetadataError: (MSFT_NetNat:root/StandardCimv2/MSFT_NetNat) [Get-NetNat], CimException
    + FullyQualifiedErrorId : HRESULT 0x80041010,Get-NetNat

然后在转换过程中(之前工作了很多次),我得到了这样的结果:

代码语言:javascript
复制
C:\DesktopAppConverter\2ca66a48-91ab-4885-93cf-c9d6c325f3b2\shared
VERBOSE: An error occurred converting your application. Here is the full error record:
VERBOSE:

PowerShell Error Record:
Cannot remove item C:\DesktopAppConverter\2ca66a48-91ab-4885-93cf-c9d6c325f3b2\shared: The process cannot access the
file 'C:\DesktopAppConverter\2ca66a48-91ab-4885-93cf-c9d6c325f3b2\shared' because it is being used by another process.
PowerShell Stack Trace:
at Invoke-IsolatedInstall, C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\converter_util\IsolatedEnvironmentOps.ps1:
line 221
at <ScriptBlock><Process>, C:\Program
Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1: line 679
at <ScriptBlock>, <No file>: line 1

Inner Exception[0]:
System.IO.IOException: The process cannot access the file
'C:\DesktopAppConverter\2ca66a48-91ab-4885-93cf-c9d6c325f3b2\shared' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean
throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
   at Microsoft.PowerShell.Commands.FileSystemProvider.RemoveFileSystemItem(FileSystemInfo fileSystemInfo, Boolean
force)
Inner Exception Stack Trace[0]
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean
throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
   at Microsoft.PowerShell.Commands.FileSystemProvider.RemoveFileSystemItem(FileSystemInfo fileSystemInfo, Boolean
force)
VERBOSE: The full error record is saved in the logs at C:\DesktopAppConverter\2ca66a48-91ab-4885-93cf-c9d6c325f3b2\logs
C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1 : Cannot
remove item C:\DesktopAppConverter\2ca66a48-91ab-4885-93cf-c9d6c325f3b2\shared: The process cannot access the file
'C:\DesktopAppConverter\2ca66a48-91ab-4885-93cf-c9d6c325f3b2\shared' because it is being used by another process.
At line:1 char:1
+ &'C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DesktopAppConverter.ps1

有人知道这一切意味着什么吗?

PS。所有这些错误消息都与我的应用程序无关。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-07-27 15:46:23

我遇到了同样的问题,并通过关闭“病毒和线程保护设置”中的“实时保护”来解决它。

票数 3
EN

Stack Overflow用户

发布于 2019-05-02 20:16:48

您可以在PowerShell中使用以下命令关闭对Windows Defender的实时监控: Set-MpPreference -DisableRealtimeMonitoring $true

再次启用实时监控: Set-MpPreference -DisableRealtimeMonitoring $false

我更喜欢这样,因为永久禁用防病毒保护并不总是好的。顺便说一句,这个解决方案是从this article得到的。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51437203

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档