Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows打开参数错误 #12986

Closed
sunjikui opened this issue Apr 27, 2022 · 5 comments
Closed

windows打开参数错误 #12986

sunjikui opened this issue Apr 27, 2022 · 5 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@sunjikui
Copy link

Windows Terminal version

No response

Windows build number

10.0.19043.1526

Other Software

1651043554(1)

Steps to reproduce

安装好打开就是参数错误,之前可以用,突然不知道怎么就坏了

Expected Behavior

No response

Actual Behavior

1651043554(1)

@sunjikui sunjikui added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Apr 27, 2022
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Apr 27, 2022
@zadjii-msft
Copy link
Member

Hmm. Someone else got the same error over in #7611, but then just closed the issue themself without sharing how they fixed it.

Here are some similar issues

#4095 seems to imply that it might have to do with having bad permissions on the WindowsApps folder. Have you changed those at all/? Try running the following command, from PowerShell:

get-acl \Program` Files\WindowsApps | fl

(from #9959)

@ghost ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. labels Apr 27, 2022
@ghost
Copy link

ghost commented May 1, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost ghost closed this as completed May 4, 2022
@westfly
Copy link

westfly commented May 14, 2022

相同的错误,尝试了9959 中的方法,一样的错误
卸载重装也不行,安装prev版本也是相同的错误

PS C:\Program Files> Get-Acl .\WindowsApps\ |fl


Path   : Microsoft.PowerShell.Core\FileSystem::C:\Program Files\WindowsApps\
Owner  : LAPTOP-####for###private\####
Group  : NT SERVICE\TrustedInstaller
Access : NT SERVICE\TrustedInstaller Allow  FullControl
         NT SERVICE\TrustedInstaller Allow  268435456
         NT AUTHORITY\SYSTEM Allow  FullControl
         NT AUTHORITY\SYSTEM Allow  268435456
         BUILTIN\Administrators Allow  FullControl
         BUILTIN\Administrators Allow  268435456
         BUILTIN\Users Allow  ReadAndExecute, Synchronize
         BUILTIN\Users Allow  -1610612736
         LAPTOP-OB6NES61\mintegral Allow  FullControl
         CREATOR OWNER Allow  268435456
         APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES Allow  ReadAndExecute, Synchronize
         APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES Allow  -1610612736
         APPLICATION PACKAGE AUTHORITY\所有受限制的应用程序包 Allow  ReadAndExecute, Synchronize
         APPLICATION PACKAGE AUTHORITY\所有受限制的应用程序包 Allow  -1610612736
Audit  :
Sddl   : O:S-1-5-21-2594991028-2133156761-2730387977-1001G:S-1-5-80-956008885-3418522649-1831038044-1853292631-22714784
         64D:AI(A;ID;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;CIIOID;GA;;;S-1-5-80-956008
         885-3418522649-1831038044-1853292631-2271478464)(A;ID;FA;;;SY)(A;OICIIOID;GA;;;SY)(A;ID;FA;;;BA)(A;OICIIOID;GA
         ;;;BA)(A;ID;0x1200a9;;;BU)(A;OICIIOID;GXGR;;;BU)(A;ID;FA;;;S-1-5-21-2594991028-2133156761-2730387977-1001)(A;O
         ICIIOID;GA;;;CO)(A;ID;0x1200a9;;;AC)(A;OICIIOID;GXGR;;;AC)(A;ID;0x1200a9;;;S-1-15-2-2)(A;OICIIOID;GXGR;;;S-1-1
         5-2-2)

手工注册

PS C:\> Add-AppPackage -Register 'C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.12.10982.0_x64__8wekyb3d8bbwe\AppxManifest.xml'
Add-AppPackage : 部署失败,原因是 HRESULT: 0x80073CF9, 无法安装。请联系你的软件供应商。 (异常来自 HRESULT:0x80073CF9)
正在拒绝从 AppxBundleManifest.xml 进行注册的请求,因为部件清单(manifest)没有位于程序包根目录中。
注意: 有关其他信息,请在事件日志中查找 [ActivityId] ca02a98e-656c-0000-0391-16ca6c65d801,或使用命令行 Get-AppPackageLo
g -ActivityID ca02a98e-656c-0000-0391-16ca6c65d801
所在位置 行:1 字符: 1
+ Add-AppPackage -Register 'C:\Program Files\WindowsApps\Microsoft.Wind ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Program File...ppxManifest.xml:String) [Add-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
PS C:\> Get-AppPackageLog -ActivityID ca02a98e-656c-0000-0391-16ca6c65d801

Time                      ID           Message
----                      --           -------
2022/5/14 23:20:59        603          已使用主参数 AppxManifest.xml 以及选项 DevelopmentModeOption 和 0 开始对程序包执
                                       行部署 Register 操作。要获取有关诊断应用部署问题的帮助,请参阅 http://go.microso
                                       ft.com/fwlink/?LinkId=235160。
2022/5/14 23:20:59        216          应用部件清单(manifest)验证警告: 声明的命名空间 http://schemas.microsoft.com/deve
                                       loper/appx/2015/build 不适用,在清单处理期间将忽略它。
2022/5/14 23:20:59        709          正在拒绝从 AppxBundleManifest.xml 进行注册的请求,因为部件清单(manifest)没有位于
                                       程序包根目录中。
2022/5/14 23:20:59        404          程序包  的 AppX 部署操作失败,错误为 0x80070057。此失败的具体错误文本是: 正在拒
                                       绝从 AppxBundleManifest.xml 进行注册的请求,因为部件清单(manifest)没有位于程序包
                                       根目录中。

@ghost ghost removed the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label May 14, 2022
@goodbey857
Copy link

我找到的一个解决的办法是 在 设置》账户》其他用户》添加账户 。 再用新的账户登陆电脑,就能打开Windows Terminal 了。
此外我的 “小组件” 在旧帐户中打不开,但在新账户中也能打开。

我搜索到的一个说法是 “可能是旧帐户的用户配置出了问题”。折腾了好久,也没能找到修复旧帐户的用户配置的方法。

@goodbey857
Copy link

我找到的一个解决的办法是 在 设置》账户》其他用户》添加账户 。 再用新的账户登陆电脑,就能打开Windows Terminal 了。 此外我的 “小组件” 在旧帐户中打不开,但在新账户中也能打开。

我搜索到的一个说法是 “可能是旧帐户的用户配置出了问题”。折腾了好久,也没能找到修复旧帐户的用户配置的方法。

终于解决了,原因是我为了节省C盘空间,把"%username%/AppData/LocalLow"目录 移动到 了"D:/AppData/LocalLow",然后创建了一个软链接,从“%username%/AppData/LocalLow" 指向 "D:/AppData/LocalLow"。
当我把"%username%/AppData/LocalLow"这个软连接删了,Windows Terminal 就能正常打开了。小组件也正常了。

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

4 participants