at first windows installation ability depend on putting sources
drictory from windows iso to usb root directory. on the second hand you can make usb drive in ubuntu to install windows without any especial tool by 2 alternatives
format the USB drive to ntfs, extract windows 7/8/10/11 iso file to usb drive root and install grub2 to USB drive after mount usb drive in /mnt
:
sudo -i
grub-install --boot-directory=/mnt/sdx1/boot /dev/sdx #make sure to sellect the right litter to replace with x
add this menu entry to usb drive boot/grub/grub.cfg
:
menuentry "Windows installation Environment" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 55DD0595418E5BFC
else
search --no-floppy --fs-uuid --set=root 55DD0595418E5BFC
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
Replace 55DD0595418E5BFC
by your USB drive uuid that can be known from disk utility, save boot/grub/grub.cfg
and reboot by your USB drive to install windows.
2. by other way you can extract hbcd pe 64 to usb root and install grub2 but extract install.wim from windows iso file to usb root ,add same menu entry from the first alternative, reboot by USB drive with hbcd and open winnetsetup program which uses install.wim to install windows.
related: Create USB drive contains multi Ubuntu versions, HBCD-PE-64 and multi Windows installation