[12-23-2001] (Part 9)
Finishing Touch
We have generated the Multi-Bootable 2in1 CD-Image (E:CORP2IN1.ISO). Don't burn it yet because it is not our final and we have to add an Autorun Menu in our final touch. But I can show you what it will look like when you boot this 2in1 CD:
In the finishing touch for the Autorun Menu, I have decided to use a simple but yet very effective Autorun program. Here is the Autorun Menu of our 2in1 CD generated by this program:
Now get the compressed Autorun program from the following link and put all the uncompressed files into your sourceroot: /http://members.rogers.com/khayftp2/autorun.rar
The Autorun program you have downloaded consists of 5 files: autorun.inf, autorun.exe, autorun.ini, autorun.bmp and autorun.ico. The operation is fairly easy to understand:
1. When you insert the CD under Win32, Windows will look into the
autorun.inf which contains 3 lines:
[AutoRun]
open=autorun.exe
icon=autorun.ico
2. The autorun.inf redirects Windows to run the
autoexec.exe which is a program written in VB. The autorun.exe looks into
autorun.ini which contains control settings and can be edited easily with a text editor. Here is part of the content in autorun.ini:
...
[GENERAL]
prior install=true
show language=false
background=
autorun.bmp
product logo=
mheight=1350
mborder=200
mfontsize=8
mfontbold=true
mfontitalics=false
mforecolor=16777215
mfontjustify=2
...
[LANG0] //Default (when language selection is not displayed)
numbutton=4
exit=E&xit
back=&Back
button1=Setup Windows XP &Professional
mess1=Setup Windows XP Professional
type1=1
active1=1
action1=Setup.exe
button2=Setup Windows XP &Home Edition
mess2=Setup Windows XP Home Edition
type2=1
active2=1
action2=WXHVOL_ENSetup.exe
button3=&View the release notes
mess3=View the release notes
type3=1
active3=1
action3=Readme.htm
button4=Browse this &CD
mess4=Browse this CD
type4=1
active4=1
action4=
3. According to autorun.ini, the Autorun program uses
autorun.bmp as the background picture. It puts onto the background a total of 4 buttons (numbutton=4) and each of them has the individual label, message and action being defined. Obviously, you can change the background bitmap, the number of buttonts and their properties by modifying the content of the autorun.ini.
Now your sourceroot contains all the necessary ingredients and it will give you a CD-Image of around 550 MB in size when the optimization magics are played. You still have around 100 MB of space to fill with your Value-Added stuffs before you reach a full-house condition. Fill it up if you like.
It is time for our final cook:
1. cdimage -lCORP2IN1_EN -t08/23/2001,12:00:00 -bE:CORP2IN1_ENloader.bin -h -n -m -o E:CORP2IN1_EN E:CORP2IN1.ISO
2. Burn the CORP2IN1.ISO onto a CD.
Congratulation! Your Multi-Bootable Corporated Windows XP Professional & Home Edition 2in1 CD is done. Now I can see a smile on your face when you are leaving the door of this classroom with this gift and I believe that you will be able to create a lot more other N-in-1 for your own in the future. Don't forget to share your good stuffs with others though!
Thank you for attending our "Multi-Bootable N-in-1 CD Howto" Class and best wishes for the holiday season and a happy new year!
Last edited by khauyeung at Jul 20 2002, 10:40 AM