Hello All,
As I personally don't like all the menu entries that get added to the Grub menu, I decided to have an option to untick some menu entries.
Not sure if I've done it correctly though.
Here are my changes.
and..........
Any thoughts? Have I done this correctly?
As I personally don't like all the menu entries that get added to the Grub menu, I decided to have an option to untick some menu entries.
Not sure if I've done it correctly though.
Here are my changes.
Echo,"Adding Grub Menu Options ..." If,%pCheckBox2%,Equal,True,TXTAddLine,%BootMenu%,"title Find and Load Microsoft Windows Vista/Win7",Append If,%pCheckBox2%,Equal,True,TXTAddLine,%BootMenu%,"root (hd0,0)",Append If,%pCheckBox2%,Equal,True,TXTAddLine,%BootMenu%,"chainloader (hd0,0)/bootmgr",Append If,%pCheckBox2%,Equal,True,TXTAddLine,%BootMenu%," ",Append If,%pCheckBox3%,Equal,True,TXTAddLine,%BootMenu%,"title Find and Load NTLDR of Windows NT/2K/XP",Append If,%pCheckBox3%,Equal,True,TXTAddLine,%BootMenu%,"find --set-root /ntldr",Append If,%pCheckBox3%,Equal,True,TXTAddLine,%BootMenu%,"chainloader /ntldr",Append If,%pCheckBox3%,Equal,True,TXTAddLine,%BootMenu%," ",Append If,%pCheckBox4%,Equal,True,TXTAddLine,%BootMenu%,"title Find and Load CMLDR of Windows NT/2K/XP",Append If,%pCheckBox4%,Equal,True,TXTAddLine,%BootMenu%,"find --set-root /cmldr",Append If,%pCheckBox4%,Equal,True,TXTAddLine,%BootMenu%,"chainloader /cmldr",Append If,%pCheckBox4%,Equal,True,TXTAddLine,%BootMenu%," ",Append If,%pCheckBox5%,Equal,True,TXTAddLine,%BootMenu%,"title find and load IO.SYS of Windows 9x/Me",Append If,%pCheckBox5%,Equal,True,TXTAddLine,%BootMenu%,"find --set-root /io.sys",Append If,%pCheckBox5%,Equal,True,TXTAddLine,%BootMenu%,"chainloader /io.sys",Append If,%pCheckBox5%,Equal,True,TXTAddLine,%BootMenu%," ",Append If,%pCheckBox6%,Equal,True,TXTAddLine,%BootMenu%,"title find and boot Linux with menu.lst already installed",Append If,%pCheckBox6%,Equal,True,TXTAddLine,%BootMenu%,"find --set-root /sbin/init",Append If,%pCheckBox6%,Equal,True,TXTAddLine,%BootMenu%,"configfile /Boot/grub/menu.lst",Append If,%pCheckBox6%,Equal,True,TXTAddLine,%BootMenu%," ",Append //---- If,%pCheckBox7%,Equal,True,TXTAddLine,%BootMenu%,"title Floppy (fd0)",Append If,%pCheckBox7%,Equal,True,TXTAddLine,%BootMenu%,"chainloader (fd0)+1",Append If,%pCheckBox7%,Equal,True,TXTAddLine,%BootMenu%,"rootnoverify (fd0)",Append If,%pCheckBox7%,Equal,True,TXTAddLine,%BootMenu%," ",Append If,%pCheckBox8%,Equal,True,TXTAddLine,%BootMenu%,"title CommandLine",Append If,%pCheckBox8%,Equal,True,TXTAddLine,%BootMenu%,"commandline",Append If,%pCheckBox8%,Equal,True,TXTAddLine,%BootMenu%," ",Append If,%pCheckBox9%,Equal,True,TXTAddLine,%BootMenu%,"title Reboot",Append If,%pCheckBox9%,Equal,True,TXTAddLine,%BootMenu%,"reboot",Append If,%pCheckBox9%,Equal,True,TXTAddLine,%BootMenu%," ",Append If,%pCheckBox10%,Equal,True,TXTAddLine,%BootMenu%,"title Halt",Append If,%pCheckBox10%,Equal,True,TXTAddLine,%BootMenu%,"halt",Append If,%pCheckBox10%,Equal,True,TXTAddLine,%BootMenu%," ",Append //--Tale
and..........
pCheckBox2="Add #$qFind and Load Microsoft Windows Vista/Win7#$q to the Grub Menu",1,3,53,387,400,18,False pCheckBox3="Add #$qFind and Load NTLDR of Windows NT/2K/XP#$q to the Grub Menu",1,3,53,407,400,18,False pCheckBox4="Add #$qFind and Load CMLDR of Windows NT/2K/XP#$q to the Grub Menu",1,3,53,427,400,18,False pCheckBox5="Add #$qFind and load IO.SYS of Windows 9x/Me#$q to the Grub Menu",1,3,53,447,400,18,False pCheckBox6="Add #$qFind and boot Linux with menu.lst already installed#$q to the Grub menu",1,3,53,467,400,18,False pCheckBox7="Add #$qFloppy (fd0)#$q to the Grub menu",1,3,53,487,400,18,False pCheckBox8="Add #$qCommand Line#$q to the Grub menu",1,3,53,507,400,18,False pCheckBox9="Add #$qReboot#$q to the Grub menu",1,3,53,527,400,18,True pCheckBox10="Add #$qHalt#$q to the Grub Menu",1,3,53,547,400,18,True pTextLabel18="Simply check the boxes for the menu items you'd like to have in your menu",1,1,16,358,516,24,10,Bold
Any thoughts? Have I done this correctly?