Legacy-iOS-Kit/restore.cmd

29 lines
1000 B
Batchfile
Raw Normal View History

@echo off
2022-05-30 22:17:56 +08:00
if not exist "C:\Program Files\iTunes\iTunes.exe" (
2022-07-27 13:13:46 +08:00
if not exist "C:\Program Files (x86)\iTunes\iTunes.exe" (
2023-04-02 18:18:44 +08:00
echo [Error] iTunes does not seem to be installed in C drive.
2022-07-27 13:13:46 +08:00
echo * Please install iTunes 12.6.5 or older before proceeding.
2023-04-02 18:18:44 +08:00
echo * Do not change the install location from the defaults.
2022-07-27 13:13:46 +08:00
echo * Read the "How to Use" wiki page in GitHub for more details.
pause >nul
exit
)
2022-05-30 22:17:56 +08:00
)
if not exist "C:\msys64\msys2.exe" (
2023-04-02 18:18:44 +08:00
echo [Error] MSYS2 does not seem to be installed in C drive.
2022-05-30 22:17:56 +08:00
echo * Please install MSYS2 first before proceeding.
2023-04-02 18:18:44 +08:00
echo * Do not change the install location from the defaults.
2022-05-30 22:17:56 +08:00
echo * Read the "How to Use" wiki page in GitHub for more details.
pause >nul
exit
)
C:\msys64\msys2.exe "./restore.sh"
rem Add the argument at the end of the line above if needed
rem Examples:
2023-02-08 11:46:52 +08:00
rem C:\msys64\msys2.exe "./restore.sh" --no-device
rem C:\msys64\msys2.exe "./restore.sh" --entry-device --no-color