Jump to content

cdshell boot image?


Gotcha

Recommended Posts

Hi,

Small problem

When the dvd boots it first displays the boot image i made and after that i can choose to boot from dvd or not.

How can i adjust cdshell to first ask to boot from dvd and then display the image.

If anyone could help me tnx alot :)

Link to comment
Share on other sites


For a bootable Cd or DVD to display the 'Press a key to boot from CD' message, a file called bootfix.bin has to be in the root of the drive.

You'll also have to edit your cdshell.ini to remove the message from there.

Link to comment
Share on other sites

Thets not the problem,

when i start my pc it first shows the splsh creen i made and then the option "boot from dvd".

I want to switch this

so first the option "boot from dvd" and after pressing enter it shows the splash screen.

Gotcha

Link to comment
Share on other sites

To my knowledge this can't be done with CDShell alone - it will always process and display your splash image before starting the cdshell.ini script.

Something you can try is to eliminate the splash.csi file and have cdshell.ini call a graphic after a custom 'boot from...' message - that should be easy enough, just rename splash.csi to enterfilenamehere.csi and call 'showimage enterfilenamehere.csi' from cdshell.ini

Link to comment
Share on other sites

with what command can i display an image,

i used "showimage /boot.csi" with the boot.csi in the root

now it looks like this :

boot:

cls

print "\n"

print "Druk op Enter om van DVD te starten... \n"

getkey 10 boot 0x80

if $lastKey == key[enter]; then goto menu

if $lastKey == key[esc]; then boot 0x80

# When no key found...

goto boot

# Printing the Interface

menu:

showimage /boot.csi

set textColor= color[grey on black]

set boldColor= color[cyan on black]

cls

print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"

print c "\cXXAIO-Boot DVD\n\n"

print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"

print "Menu \n\n"

print "1) Windows XP Pro \n"

print "2) Windows 2000 \n"

print "3) Windows 98 SE \n"

print "4) ERD Commander 2003 \n"

print "5) Norton Ghost 2003 \n"

print "7) Kill Disk \n\n"

print "Menu Opties\n\n"

print "O) Opnieuw opstarten \n"

print "ESC) Start PC Normaal \n"

print c "\n"

MainKey:

getkey 30 boot 0x80

if $lastKey == key[1]; then chain /PRO1.DAT

if $lastKey == key[2]; then chain /2PRO.DAT

if $lastKey == key[3]; then memdisk /98SE.IMA

if $lastKey == key[4]; then chain /ERD1.DAT

if $lastKey == key[5]; then memdisk /NGH.IMA

if $lastKey == key[7]; then memdisk /KDSK.IMA

if $lastKey == key; then reboot

if $lastKey == key[esc]; then boot 0x80

end

Tnx for helping

Link to comment
Share on other sites

Ah, well, what you're trying to do in your .ini (try putting it in between code-tags) is redundant: displaying an image, and also typing the interface; you should only use one of them. More info here (in Dutch!)

Example of show image:

boot:
menu:
menu_Key:
cls
show image mainmenu.csi
getkey 60 boot 0x80
if $lastKey == key[1]; then goto Windows
if $lastKey == key[2]; then goto Utility
if $lastkey == key[3]; then goto Info
if $lastKey == key[q]; then goto end
if $lastKey == key[r]; then reboot
if $lastKey == key[h]; then goto Help
if $lastKey == key[b]; then boot 0x80

Also, there are two slight errors in you file:

if $lastKey == key; then reboot

Should probably read key[o], by the look of your interface

# When no key found...

goto boot

Is redundant, it only points back to the beginning of the same section. The 'getkey 10' line will make sure your PC boots form the HDD

Link to comment
Share on other sites

Okay tnx i got it to show the image after choosing to boot from dvd but it stays on the screen,

now my script looks like this with the .csi in the same dir as cdshell.ini

boot:

cls

print "\n"

print "Druk op Enter om van DVD te starten... \n"

getkey 10 boot 0x80

if $lastKey == key[enter]; then goto menu

if $lastKey == key[esc]; then boot 0x80

# Printing the Interface

menu:

set textColor= color[grey on black]

set boldColor= color[cyan on black]

cls

print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n"

print c "\cXXAIO-Boot DVD\n"

print c "Hoofdmenu\n"

print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"

print "\cXX Menu \n"

print "1) Windows XP Professional \n"

print "2) Windows 2000 Professional \n"

print "3) Windows 98 Second Edition \n"

print "\n"

print "4) ERD Commander 2003 \n"

print "5) Norton Ghost 2003 \n"

print "6) Overige DOS Tools \n\n"

print "\cXX Menu Opties\n"

print "Q) Opnieuw opstarten \n"

print "ESC) Start PC Normaal \n"

print c "\n"

MainKey:

show image dvd.csi

getkey 30 goto menu

if $lastKey == key[1]; then chain /PRO1.DAT

if $lastKey == key[2]; then chain /2PRO.DAT

if $lastKey == key[3]; then memdisk /98SE.IMA

if $lastKey == key[4]; then chain /ERD1.DAT

if $lastKey == key[5]; then memdisk /NGH.IMA

if $lastkey == key[6]; then goto tools

if $lastKey == key[q]; then reboot

if $lastKey == key[esc]; then boot 0x80

tools:

set textColor= color[grey on black]

set boldColor= color[cyan on black]

cls

print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n"

print c "\cXXAIO-Boot DVD\n"

print c "Overige DOS Tools\n"

print c "\cXXÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ \n\n"

print "\cXX Menu \n"

print "1) ATA Password Remove-Set tool \n"

print "2) Autoclave HD Eraser \n"

print "3) Harddrive Clone Maxx \n"

print "4) CMOS Password Recovery \n"

print "5) System Speed Test \n"

print "6) Kill Disk \n"

print "7) Smart Boot Manager \n\n"

print "\cXX Menu Opties\n"

print "ESC) Terug naar Hoofdmenu \n"

print c "\n"

toolsKey:

getkey 30 goto tools

if $lastKey == key[1]; then memdisk /ATAT.IMG

if $lastKey == key[2]; then memdisk /ACLA.IMG

if $lastKey == key[3]; then memdisk /CLMA.IMG

if $lastKey == key[4]; then memdisk /CMPW.IMG

if $lastKey == key[5]; then memdisk /SYST.IMG

if $lastKey == key[6]; then memdisk /KDSK.IMA

if $lastKey == key[7]; then memdisk /SMBT.IMG

if $lastKey == key[esc]; then goto menu

end

BTW,

How did you configure your cdshell.ini to display a loading bar thingy in the boot section wich displays the time thats left until normal boot. :)

(saw it on your site)

Link to comment
Share on other sites

For a progress bar place the following code at the beginning of your ini file, and loose the boot: section:

#Progress Bar Start
Begin:
set progress_bar = "\\ac\\c0F \\c87±±±±±±±±±±±±±±±±±±±± \\c0F"
clear
set textCursorY=9
print "\ac\c0F \c87±±±±±±±±±±±±±±±±±±±±\c0F \n"
SET TEXTCURSORX = 0; SET TEXTCURSORY = 23
print c "Press any key to boot from DVD... (You have 20 seconds)\n"
print c "[Expletive deleted]"
#set textCursorX = 28;
SET TEXTCURSORY = 2
print c "\c0AMulti-OS Boot DVD"
set textCursorX = 30
set textCursorY = 9
set counter = 21

BOOT_Counter_Start:
set counter = $counter - 1
if $counter == 0; THEN GOTO BOOTC
#############################
# change color of bar here
# else print "\cF2Û"
# will give a green bar
#
# else print "\c14X"
# will give a red X WITH BLUE BACKGROUND
#############################
else print "\cF2Û"
getkey 1 goto BOOT_Counter_Start
# Progress Bar End

It refers to a section called BOOTC, so make sure you have that or edit the line to reflect your own ini. Also, it is set up for a countdown of 20 secs. If you need more (or less for that matter) time, you'll have to edit the first 'set counter' line, and change the number of ± characters in the lines above it. It may not line up perfectly, so be careful. Don't change the 'set textcursor' lines or the front and back of the progress bar won't match up.

I should mention that it's not my own code, but I'll be d*mned if I can remeber the exact source. It was mentioned on this forum but I couldn't find the relevant post. If someone recognises their own code in this - sorry dude, no disrespect!

A few more remarks:

- if you use show image you don't need the whole 'printing the interface' section above it; this will do (but change MainKey: to menu_key: if not because it doesn't work then for consistency):

menu:
MainKey:
show image dvd.csi
getkey 30 goto menu
if $lastKey == key[1]; then chain /PRO1.DAT
if $lastKey == key[2]; then chain /2PRO.DAT
if $lastKey == key[3]; then memdisk /98SE.IMA
if $lastKey == key[4]; then chain /ERD1.DAT
if $lastKey == key[5]; then memdisk /NGH.IMA
if $lastkey == key[6]; then goto tools
if $lastKey == key[q]; then reboot
if $lastKey == key[esc]; then boot 0x80

- Dude, edit your post and xxx out your reg codes!

Link to comment
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...