-
Notifications
You must be signed in to change notification settings - Fork 0
/
installlinux.bat
38 lines (31 loc) · 1.5 KB
/
installlinux.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
bcdedit -set TESTSIGNING OFF
start %~dp0grub2win\G2WInstall.exe
echo Press any key after grub2win installation is complete.
pause
xcopy /i "%~dp0grub.cfg" "C:\grub2\grub.cfg" /Y
md C:\grub2\windata\customconfigs
"">C:\grub2\windata\customconfigs\BootAnISOfile.cfg
ECHO OFF
ECHO ...............................................
ECHO Select your OS
ECHO ...............................................
ECHO 1 - Linux Mint 21.3 Cinnamon
ECHO 2 - Linux Mint 21.3 XFCE
ECHO 3 - Ubuntu 24.04 LTS
SET /P M=Type a number then press ENTER:
IF %M%==1 GOTO CIN
IF %M%==2 GOTO XFCE
IF %M%==3 GOTO UBU
:CIN
xcopy /i "%~dp0BootAnISOfile-cin.cfg" "C:\grub2\windata\customconfigs\BootAnISOfile.cfg" /Y
powershell -Command "Start-BitsTransfer -Source "https://mirrors.layeronline.com/linuxmint/stable/21.3/linuxmint-21.3-cinnamon-64bit.iso" -Destination "C:\linuxmint-21.3-cinnamon-64bit.iso""
GOTO SHUTDOWN
:XFCE
xcopy /i "%~dp0BootAnISOfile-xfce.cfg" "C:\grub2\windata\customconfigs\BootAnISOfile.cfg" /Y
powershell -Command "Start-BitsTransfer -Source "https://mirrors.layeronline.com/linuxmint/stable/21.3/linuxmint-21.3-xfce-64bit.iso" -Destination "C:\linuxmint-21.3-xfce-64bit.iso""
GOTO SHUTDOWN
:UBU
xcopy /i "%~dp0BootAnISOfile-ubu.cfg" "C:\grub2\windata\customconfigs\BootAnISOfile.cfg" /Y
powershell -Command "Start-BitsTransfer -Source "https://mirrors.edge.kernel.org/ubuntu-releases/24.04/ubuntu-24.04-desktop-amd64.iso" -Destination "C:\ubuntu-24.04-desktop-amd64.iso""
:SHUTDOWN
shutdown /r