# "press any key..."

## Recommended Posts

i'm looking for a way to surpress the "press any key to boot from cdrom" message when i'm booting from the winxp cd so that the installation will start automatically. I think that it will require editting the boot sector. the best site that deals with such things is bart unfortunatly i didn't find there a way to do it but maybe i missed something so check it out.

##### Share on other sites

you could extract a boot image from another CD that doen't have the press any key to boot, that may work.

##### Share on other sites

Wouldn't textmode setup just keep running in and endless loop then?

##### Share on other sites

Yeah, that was the problem with Windows NT 4.0 for example. If you weren't there to remove the CD after setup restarts, it would boot from the CD and setup would start all over again.

##### Share on other sites

hehe true, never thought of that, thank god for the 'press any key option' lol

##### Share on other sites

thanks for your replay green machine if i find something i will certainly tell yo bout it

##### Share on other sites

the pe builder has a plugin directory called bootfix it's used to enable the message and it contains only one INI file

--------------------------------------------------------------------------------------------

; bootfix.inf

; PE Builder v3 plug-in INF file for adding bootfix.bin

; Created by Bart Lagerweij

[Version]

Signature= "$Windows NT$"

[PEBuilder]

Name="Boot Fix (Enabling ""Press any key to boot from CD"")"

Enable=1

Help="bootfix.htm"

[sourceDisksFiles]

bootfix.bin=1

----------------------------------------------------------------------------------------------

maybe if i'll change the Enable=1 to Enable=0 it will disable the message that the pe builder will generate a new bootfix.bin and i'll replace with it the default bootfix.bin found in the i386 directory

##### Share on other sites

that's it just finished checking a new image i made with virtual pc

##### Share on other sites

Don't say I didn't send you in the right direction ... just don't see how I overlooked that myself. As you say, that is just for generating the loader, not an inf for the loader itself. But it has to be there. I would think that the boot.bin should work fine: all the NT ones just seem to call a certain file on the CD (NTLOADER or something).

Still, it does not explain the afore mentioned mystery using the boot image on it's own, or calling it from a boot loader.

Keep us posted.

##### Share on other sites

just deleted the bootfix.bin file fron the i386 directory and there you have it an automatic installation. straight to the inspecting hardware configuration message without tha "press any key.." crap

##### Share on other sites

Stepped on you ...

So now you do not see the "Hit.." message at all? You have to remember to pull the CD (virtually) out? So it is not the bootimg.bin itself, it is the presence of I386\bootfix.bin? I do not need to replace any files?

##### Share on other sites

If you delete or remove any other bootable drives/partitions it normally ignores the "press any key......." and starts the install process.

##### Share on other sites

i just started the virtual pc installation and it didn't show me the message that's for sure i'm now at the stage when setup copies files to the installation folder so i'll have to just wait and see. i myself didn't think that it will be that easy.i relayed on a site that said that in order to have the message displayed you have to place the bootfix file in the i386 directory so i thought that not placing it will diable the message, it's that simple

##### Share on other sites

Although I haven't test it myself, simply delete the file bootfix.bin in i386 should remove the message.

As for Bart's pebuilder, the reason why there is an option to generate 'press any key' message, is because it is usually used with bootscriptor (now cdshell) to create multi-boot cds. In the boot script which shows the menu, you can specify a timeout and default action to take if no key is pressed in the specified time. The default action is usually to boot using hd. Here is a sample of the boot script:

...

; timeout in 20 seconds, default key is esc

getkey 20 esc

onkey 1 chain images\bootwxpe.bin

onkey 2 chain images\booterdc.bin

onkey 3 chain images\bootdcmd.bin

onkey 4 chain images\bootrcon.bin

onkey 5 goto acronis

onkey 6 memdisk images\w98_cmd.img

onkey 7 memdisk images\di6.img

onkey 8 memdisk images\pm8.img

onkey 9 memdisk images\nav.img

onkey 0 memdisk images\memtest.img

onkey esc goto hdboot

...

Now because the boot script can prevent booting from the cd repeatedly, including the 'press any key' message is not absolutely necessary. That sounds about right, right! You would have to ask Bart for the real reason.

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account