RunWait(@ScriptDir & "\files\grubinst.exe -v --pause " & $trggrub, "", @SW_SHOW)which in produces:
grubinst.exe -v --pause (hd3,0)
$trggrub is (hd3,0), I triple checked that.
The issue is the even though grubinst.exe reports :
Start sector: 0x3F
Image type: FAT12/FAT16
Install mode
The MBR/BS has been successfully installed
Press <ENTER> to continue ...
This is on the USB stick:
What is strange for me, is that if I make a new autoit file, containing only 2 lines:
$trggrub = "(hd3,0)" RunWait(@ScriptDir & "\files\grubinst.exe -v --pause " & $trggrub, "", @SW_SHOW)it works, grub4dos bootsector is written.
What could be wrong? Is the question rather related to AutoIt? If yes, why grubinst.exe reports success, but no BS is written? Open handles to that drive? Delayed writes because it's USB? What else it could be?
Using grubinst-1.1-bin-w32-2008-01-01 from http://download.gna.org/grubutil/
I read:
and did understand it fully. Anyway I tried it- no change, bootsector still not written.--duce disable the feature of unconditional entrance to the command-line.