C盘新建“MSIXSetup”文件夹,把MSIXSetup.zip安装到里面。
管理员身份打开 PowerShell
Remove-Item "C:\MSIXSetup\deps" -Recurse -Force -ErrorAction SilentlyContinue
Expand-Archive `
-LiteralPath "C:\MSIXSetup\Dependencies.zip" `
-DestinationPath "C:\MSIXSetup\deps" `
-Force
正常情况下不会出现红色错误。
可以执行下面这条检查:
Get-ChildItem "C:\MSIXSetup\deps" -Recurse
应该能看到多个 .appx、.msix 等依赖文件。
4. 自动找出 x64 依赖
复制下面整段:
$deps = Get-ChildItem "C:\MSIXSetup\deps" -Recurse -File |
Where-Object {
($_.Extension -eq ".appx" -or $_.Extension -eq ".msix") -and
$_.FullName -match "\\x64\\"
} |
Select-Object -ExpandProperty FullName
然后输入:
$deps
一次性安装 App Installer 和全部依赖
Add-AppxPackage `
-Path "C:\MSIXSetup\AppInstaller.msixbundle" `
-DependencyPath $deps
重启电脑
https://chenyong.eu.org:10086/d/%E8%BD%AF%E4%BB%B6/MSIXSetup.zip
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END









暂无评论内容