8

I'm trying to make an iso file which will boot without any key-press from the user. In Windows iso files, when booting from a cd, there is a message "press any key to boot from cd" which will wait for 5-10 seconds and then, if there is no key-press, it will boot from HD.

I searched the web for how to remove this message, and do not press any key and all the answers were "delete bootfix.bin" from the iso.

I edited the iso (I've tried several iso files) to remove the bootfix.bin, but now the iso is not correct.

Do you have any suggestions?

sysadmin1138
  • 135,853
gln
  • 81

7 Answers7

8

It depends on the BIOS. If it is a traditional PC BIOS then the ISO uses the El Torito boot code (etfsboot.com). In this case deleting \boot\bootfix.bin will work.

If it is an EFI BIOS then the ISO should use EFI boot code (efisys.bin). There is also a efisys_noprompt.bin boot code file that can be used when creating the ISO for EFI systems. Use that file instead if you want to eliminate the prompt.

3

My personal note:

copy "C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg\efisys_noprompt.bin" to "fwfile/efisys.bin"

Then make ISO image by makewinpemedia /ISO .... winpe.iso

1

I hope this can work

  1. Delete efisys.bin and cdboot.efi in extracted setup media in \efi\microsoft\boot
  2. Rename efisys_noprompt.bin to efisys.bin
  3. Rename cdboot_noprompt.efi to cdboot.efi
  4. Build ISO again using NTLite
1

I've always used nlite to make my unattended isos and it has an option to disable that prompt.

SonoIT
  • 71
0

That message isn't from windows, that's the PC bios asking which device to boot from when there are multiple bootable devices. You can't remove that without removing the option to boot to the hard drive

EDIT: So technically speaking the message is not in the BIOS. But the message is called by the BIOS via INT 19H. (I mistakeinely thought that it was an in13 message which gets called later) The el torito bootable spec (which is used to emulate one of the boot devices supported by bios) requires that the CD run in emulation or no emulation mode. In order to remove the message you'd have to run a custom no emulation boot loader (eg write your own OS) since none of the devices would be there for an OS to use. See section 5.2 of the bootable cdrom spec. In order to remove the message you would have to remove bootfix.bin entirely. You can't do that because the bios has been told to load it. You could try removing bootfix.bin before creating your ISO.

Jim B
  • 24,276
0

I think BIOS display this message, and BIOS select the boot device. Because when I use a bootable disc, no matter Windows,Linux or FreeDOS disc, my computer always displayed " press any key to boot from an CD".

Sorry, I did a web search. This message isn't come from BIOS, but Bootloader I think.

-1

It's related to the iso and the bootfix.bin. It's a optinaol saftey feature as I understand. To remove it ou should read this article, it could help. I found this: http://technet.microsoft.com/en-us/library/dd744321(WS.10).aspx you should try is out.

Else I will try creating a iso later this night and see if i can get it working. I guess you are trying to make a bootale windows 7 cd right? and just want it to boot when it's in the pc. If you feel like waiting?