@fuwi
Great tools, it work fine for me,
Just have problem when
BootFrom=mbr
UpdKicker=1
The budu.cmd line 690 will prompt for Y/N that create Boot-Kicker Image or not
If user select Y then call %DrvLetter%\Create_WinPE_Kicker-CD.iso.cmd and then goto label :END
We can found the label :END located at line 733 that just after the label :Finishing (line 718), in such case, if BootFrom=mbr, the batch will not cater it !
Just try to move this part to line 338, it work fine now
CODE
if "%BootFrom%"=="mbr" (
:grub_in_mbr
MbrFix.exe /drive %DrvNum% savembr %Temp%\mbr.tmp >nul
Bootmanager\grub4dos\grubinst.exe --skip-mbr-test ^(hd%DrvNum%^) >nul
Bootmanager\grub4dos\chboot\copysgcs.exe %Temp%\mbr.tmp \\.\physicaldrive%DrvNum% 0x1B0 >nul
del /f /q %Temp%\mbr.tmp >nul
echo. & xecho "grub4dos installed in MBR" /a:0E
) else (
:grub_in_bootsector
:: install grub4dos in the bootsector of the BartPE-Partition on the USB-Drive:
Drv.exe GetPartNum %DrvLetter%
set PartNum=%errorlevel%
mbrfix.exe /drive %DrvNum% /partition %PartNum% setactivepartition /yes >nul
rem mbrfix.exe /drive %DrvNum% generatesignature /yes >nul
set /a PartNum=%PartNum%-1
Bootmanager\grub4dos\grubinst.exe --skip-mbr-test (hd%DrvNum%,%PartNum%) >nul
touchdrv.exe %DrvLetter%
echo. & xecho "grub4dos installed in Bootsector" /a:0E
)
goto COPY
Also line 730 will prompt for error too
QUOTE
Xecho is not recognized as an internal or external command,....
Likely the batch switch the working directory to the %DrvLetter%, change it to
echo. & "%WorkDir%"\xecho "The Bootable USB-Drive Utility has finished, press any key..." /nolf
Problem gone