无忧启动论坛

标题: [HaPi_r][教程] 如何在Win10上安装WSA! [打印本页]

作者: 黑中见白    时间: 2021-10-31 22:40
标题: [HaPi_r][教程] 如何在Win10上安装WSA!
本帖最后由 黑中见白 于 2021-10-31 22:42 编辑

前几天WSA可以在Win11上运行了
然后就有了Win10安装WSA
如何在Win10上安装WSA
注意!暂时只能装逼用!运行不了我也不知道啥问题!



(昨天的截图)

准备工作
Win10及以上!(我11了还需要你???这教程)

设置->更新和安全->开发者选项->开发人员模式->打开

控制面板->启用或关闭Windows功能->勾上Hyper-V和最下面的虚拟机平台->确定->重启
https://store.rg-adguard.net/
前往, 右边选择Slow , 中间输入https://www.microsoft.com/store/productId/9P3395VX91NR ,然后点 “ √ ”

下载最下面1.21G的那个 , 上面的东西选择适合你架构的版本下载 (一共三个包)
VCLibs记得下载UWPDesktop 30704.0的版本

解压1.21G的包
在解压的包中选择适合你架构的包解压
WsaPackage_1.7.32815.0_ARM64_Release-Nightly
WsaPackage_1.7.32815.0_x64_Release-Nightly (一般都是这个)
其他的此时可以删除
保留解压的 WsaPackage_1.7.32815.0_***_Release-Nightly
此时先安装其他的两个包

直接双击打开安装 (Install
UI.Xaml 和 VCLibs




此时用文本编辑器打开解压的文件夹中的 AppxManifest.xml
修改第12行的
  •     <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.22000.120" MaxVersionTested="10.0.22000.120" />

[color=rgb(51, 102, 153) !important]复制代码

  • <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.0.0" MaxVersionTested="10.0.22000.120" />

[color=rgb(51, 102, 153) !important]复制代码

删除104-113行的
  • <desktop6:Extension Category="windows.customInstall">
  •       <desktop6:CustomInstall Folder="CustomInstall" desktop8:RunAsUser="true">
  •         <desktop6:RepairActions>
  •           <desktop6:RepairAction File="WsaSetup.exe" Name="Repair" Arguments="repair" />
  •         </desktop6:RepairActions>
  •         <desktop6:UninstallActions>
  •           <desktop6:UninstallAction File="WsaSetup.exe" Name="Uninstall" Arguments="uninstall" />
  •         </desktop6:UninstallActions>
  •       </desktop6:CustomInstall>
  •     </desktop6:Extension>

[color=rgb(51, 102, 153) !important]复制代码

删除101-102行的
  • <rescap:Capability Name="customInstallActions" />
  •     <uap4:CustomCapability Name="Microsoft.classicAppInstaller_8wekyb3d8bbwe" />

[color=rgb(51, 102, 153) !important]复制代码

* Ctrl+S 保存修改的文件

然后删除解压的包目录下的 AppxSignature.p7x 这个文件
现在用 管理员身份 打开 Windows PowerShell
输入
  • Add-AppxPackage -register 你的AppxManifest.xm文件路径

[color=rgb(51, 102, 153) !important]复制代码

我的在C:\Users\24196\Downloads\WsaPackage_1.7.32815.0_x64_Release-Nightly
那我就是
  • Add-AppxPackage -register C:\Users\24196\Downloads\WsaPackage_1.7.32815.0_x64_Release-Nightly\AppxManifest.xml

[color=rgb(51, 102, 153) !important]复制代码

注意!不要复制我的!每个人不一样!
此时回车后如果没有提示
那么请打开开始菜单
Windows Subsystem for Android™已经出现在你的菜单中
此时你可以装逼了
但是他是无法启动的.
(所以我这是水了一贴.)



作者: 黑中见白    时间: 2021-10-31 23:04
本帖最后由 黑中见白 于 2021-11-1 10:11 编辑

<# :
@powershell "icm ([scriptblock]::Create((gc '%~f0' -Raw -Encoding UTF8)))"
exit
#>

# powershell script
#
Add-AppxPackage *.Appx

pause
//
# 这个是安装appx的ps1.cmd程序
# 可以保存为ps1后缀,也可以保存为cmd后缀,都可以运行
# 实际是ps1代码,

作者: 黑中见白    时间: 2021-10-31 23:04

<# :
@powershell "icm ([scriptblock]::Create((gc '%~f0' -Raw -Encoding UTF8)))"
exit
#>

# powershell script
#
# Add-AppxPackage *

Add-AppxPackage -register H:\appx\Wsa\MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_neutral_~_8wekyb3d8bbwe\WsaPackage_1.7.32815.0_x64_Release-Nightly\AppxManifest.xml

pause

作者: zhxhwyzh14    时间: 2021-11-1 01:07
谢谢分享,这么快就研究出来了
作者: lily9718    时间: 2021-11-1 06:24
谢谢
作者: 窄口牛    时间: 2021-11-1 07:08
和2022运行的提示接近?
作者: lanyanlei9507    时间: 2021-11-1 08:06
我让我们WIN10看到了希望,谢谢
作者: ylac    时间: 2021-11-1 08:08
谢谢分享,10能上就很完美
作者: jyting0    时间: 2021-11-1 09:47
谢谢分享,
作者: jyting0    时间: 2021-11-1 09:48
谢谢分享
作者: 朱玛12345678    时间: 2021-11-1 10:01
Win10最后一版21390强装WSA理论上能正常打开,楼主可以试一下。
作者: 黑中见白    时间: 2021-11-1 10:09
朱玛12345678 发表于 2021-11-1 10:01
Win10最后一版21390强装WSA理论上能正常打开,楼主可以试一下。
还是教我,转换授权吧


作者: smalldimple    时间: 2023-3-17 14:54
在我的电脑上这个方法好像没成功





欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3