Jump to content

problem with cdshell.ini


Recommended Posts

I have just made my first multiboot cd and im getting one small problem with my cdshell.ini

Here is my cdshell.ini

boot:
cls
print "\n"
print "Press Enter to boot from CD... \n"
getkey 5 boot 0x80
if $lastKey == key[enter]; then goto time
# When no key found...
goto boot


# Function to display time of day
time:
set hour = $timeHour
set ampm = "am"
if $timeHour > 12; then set hour = $timeHour - 12
if $timeHour > 12; then set ampm = "pm"
set time = "$hour:$timeMinute$ampm"

# Function to display date
date:
set month = "n/a"
if $dateMonth == 1; then set month = "Jan."
if $dateMonth == 2; then set month = "Feb."
if $dateMonth == 3; then set month = "Mar."
if $dateMonth == 4; then set month = "Apr."
if $dateMonth == 5; then set month = "May."
if $dateMonth == 6; then set month = "Jun."
if $dateMonth == 7; then set month = "Jul."
if $dateMonth == 8; then set month = "Aug."
if $dateMonth == 9; then set month = "Sep."
if $dateMonth == 10; then set month = "Oct."
if $dateMonth == 11; then set month = "Nov."
if $dateMonth == 12; then set month = "Dec."
set date = "$month$dateDay,$dateYear"

# Printing the Interface
menu:
cls
print c "\n\cXXƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ<\c0B$time $date\cXX>ƒƒ \n\n"
print c "\cXXBartPE and Windows XP PRO SP1.\n\n"
print l "\cXXPress \c0BF1 \cXXfor Help"
print c "\cXXƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ \n\n"
print "1) Windows XP Professional SP1 Corporate \n"
print "2)  BartPE \n"
print "3)  BartPE /inram \n"
print "Q)  Quit to Command Prompt \n"
print "R)  Reboot \n"
print "ESC) Boot 1st Harddisk \n"
print c "\n"

MainKey:
getkey 20 boot 0x80
if $lastKey == key[1]; then goto XP_Pro
if $lastKey == key[2]; then chain /BPE1.DAT
if $lastKey == key[3]; then chain /BPE2.DAT
if $lastKey == key[q]; then end
if $lastKey == key[r]; then reboot
if $lastKey == key[F1]; then goto Help
if $lastKey == key[esc]; then boot 0x80

XP_Pro:
cls
print r "\n\cXXPress \c0BF1 \cXXfor Help \n"
print c "\n\cXXMicrosoft Windows XP Professional SP1 Corporate \n"
print c "\cXXƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ \n"
print "1) Regular \n"
print "2) Unattended \n"
print c "\n\n"
print "Press any key to return to main menu... \n"

XP_Pro_Key:
if $lastKey == key[1]; then chain /PRO1.DAT
if $lastKey == key[2]; then chain /PRO2.DAT
if $lastKey == key[F1]; then goto Help
goto menu


Help:
cls
print c "\n\cXXMulti-Boot DVD Help \n"
print c "\cXXƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ \n"
print "\n"
print "Hit the key of your choice in the main menu -> \n"
print "\n"
print "\n"
print "Install Types \n"
print "ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ \n"
print "Regular -       Install will prompt you for all information during setup. \n"
print "Unattended -    Install with no user prompts. \n"
print "\n"
print "\n"
print "Press any key to return to main menu... \n"
getkey
goto menu
end

When I press 1 (install xp pro) after the cd boots. It should go to a sub menu like in the multiboot guide so that i can choose to install or go unattended.

It always goes straight to install XP Pro. it shows the list but carrys on and starts installing xp.

so i can't choose to do an unattended install.

I think that there is something wrong with XP_Pro bit by it not say go to XP_Pro_Key. The guide doesn't have anything in it.

The BartPE stuff work lovely.

Edit: I think tha if I add the following just under he XP_Pro_Key bit

getkey 20 goto menu

can't check this as using a mac

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...