Update launch.bat

merge-requests/1/merge
xerox 4 years ago
parent 2681d43fe8
commit 74e6a54e2c

@ -1,14 +1,24 @@
@echo off @echo off
net session >nul 2>&1 net session >nul 2>&1
if %errorLevel% == 0 ( if %errorLevel% == 0 (
:: mount the efi partition to X: drive...
mountvol X: /S mountvol X: /S
:: bootmgfw is a system file so we are going to strip those attributes away...
attrib -s -h X:\EFI\Microsoft\Boot\bootmgfw.efi attrib -s -h X:\EFI\Microsoft\Boot\bootmgfw.efi
:: backup bootmgfw.efi (this is needed for voyager to work since voyager restores bootmgfw.efi)
move X:\EFI\Microsoft\Boot\bootmgfw.efi X:\EFI\Microsoft\Boot\bootmgfw.efi.backup move X:\EFI\Microsoft\Boot\bootmgfw.efi X:\EFI\Microsoft\Boot\bootmgfw.efi.backup
:: copy payload and bootmgfw.efi to EFI partition...
xcopy %~dp0bootmgfw.efi X:\EFI\Microsoft\Boot\ xcopy %~dp0bootmgfw.efi X:\EFI\Microsoft\Boot\
xcopy %~dp0payload.dll X:\EFI\Microsoft\Boot\ xcopy %~dp0payload.dll X:\EFI\Microsoft\Boot\
echo press enter to reboot... echo press enter to reboot...
pause pause
:: enable hyper-v and reboot now...
BCDEDIT /Set {current} hypervisorlaunchtype auto
shutdown /r /t 0 shutdown /r /t 0
) else ( ) else (
echo Failure: Please run as admin. echo Failure: Please run as admin.

Loading…
Cancel
Save