windows: 移除旧版本系统的 iso 查找

massgrave 网站移除了旧版系统的 Iso
This commit is contained in:
bin456789
2026-03-16 22:50:42 +08:00
parent c6000c16ab
commit 43e226cc5c
3 changed files with 15 additions and 67 deletions

View File

@ -337,15 +337,15 @@ bash reinstall.sh netboot.xyz
- Windows (Vista ~ 11)
- Windows Server (2008 ~ 2025)
- Windows Server Essentials \*
- Windows Server (Semi) Annual Channel \*
- Hyper-V Server \*
- Azure Local (Azure Stack HCI) \*
- Windows Server Essentials
- Windows Server (Semi) Annual Channel
- Hyper-V Server
- Azure Local (Azure Stack HCI)
#### Method 1: Let the Script Automatically Search for ISO
- The script will search for ISOs from <https://massgrave.dev/genuine-installation-media>, a site that collects official ISOs.
- Systems marked with \* do not support automatic ISO searching.
- Only supports ISOs searching for Windows 10, 11, Server 2019, 2022, 2025.
```bash
bash reinstall.sh windows \

View File

@ -337,15 +337,15 @@ bash reinstall.sh netboot.xyz
- Windows (Vista ~ 11)
- Windows Server (2008 ~ 2025)
- Windows Server Essentials \*
- Windows Server (Semi) Annual Channel \*
- Hyper-V Server \*
- Azure Local (Azure Stack HCI) \*
- Windows Server Essentials
- Windows Server (Semi) Annual Channel
- Hyper-V Server
- Azure Local (Azure Stack HCI)
#### 方法 1: 让脚本自动查找 ISO
- 脚本会从 <https://massgrave.dev/genuine-installation-media> 查找 ISO该网站专门提供官方 ISO 下载
- 上面带 \* 的系统不支持自动查找 ISO
- 只支持查找 Windows 10, 11, Server 2019, 2022, 2025 的 ISO
```bash
bash reinstall.sh windows \

View File

@ -910,17 +910,7 @@ get_windows_iso_link() {
get_label_msdn() {
if [ -n "$server" ]; then
case "$version" in
2008 | '2008 r2')
case "$edition" in
serverweb | serverwebcore) echo _ ;;
serverstandard | serverstandardcore) echo _ ;;
serverenterprise | serverenterprisecore) echo _ ;;
serverdatacenter | serverdatacentercore) echo _ ;;
esac
;;
# massgrave 不提供 2012 下载
'2012 r2' | \
2016 | 2019 | 2022 | 2025)
2019 | 2022 | 2025)
case "$edition" in
serverstandard | serverstandardcore) echo _ ;;
serverdatacenter | serverdatacentercore) echo _ ;;
@ -929,39 +919,6 @@ get_windows_iso_link() {
esac
else
case "$version" in
vista)
case "$edition" in
starter)
case "$arch_win" in
x86) echo _ ;;
esac
;;
homebasic | homepremium | ultimate) echo _ ;;
business | enterprise) echo "$edition" ;;
esac
;;
7)
case "$edition" in
starter)
case "$arch_win" in
x86) echo starter ;;
esac
;;
homebasic)
case "$arch_win" in
x86) echo "home basic" ;;
esac
;;
homepremium) echo "home premium" ;;
professional | enterprise | ultimate) echo "$edition" ;;
esac
;;
8 | 8.1)
case "$edition" in
'') echo _ ;; # windows 8.x core
pro | enterprise) echo "$edition" ;;
esac
;;
10)
case "$edition" in
home | 'home single language') echo consumer ;;
@ -975,9 +932,8 @@ get_windows_iso_link() {
# iot
'iot enterprise') echo 'iot enterprise' ;;
# iot ltsc
'iot enterprise ltsc 2019' | 'iot enterprise ltsc 2021') echo "$edition" ;;
'iot enterprise ltsc 2021') echo "$edition" ;;
# ltsc
'enterprise 2015 ltsb' | 'enterprise 2016 ltsb' | 'enterprise ltsc 2019') echo "$edition" ;;
'enterprise ltsc 2021')
# arm64 的 enterprise ltsc 2021 要下载 iot enterprise ltsc 2021 iso
case "$arch_win" in
@ -1038,13 +994,7 @@ get_windows_iso_link() {
# win10 22h2 arm 有每月发布的 iso因此不从 msdl 下载
# win10/11 ltsc 没有每月发布的 iso但是 msdl 没有 ltsc 版本
get_label_msdl() {
case "$version" in
8.1)
case "$edition" in
'' | pro) echo _ ;;
esac
;;
esac
:
}
get_page() {
@ -1056,7 +1006,7 @@ get_windows_iso_link() {
echo server
else
case "$version" in
vista | 7 | 8 | 8.1 | 10 | 11)
10 | 11)
echo "$version"
;;
esac
@ -1073,9 +1023,7 @@ get_windows_iso_link() {
label_vlsc=$(get_label_vlsc)
page=$(get_page)
if [ "$page" = vista ]; then
page_url=https://massgrave.dev/windows_vista__links
elif [ "$page" = server ]; then
if [ "$page" = server ]; then
page_url=https://massgrave.dev/windows-server-links
else
page_url=https://massgrave.dev/windows_${page}_links