| Academic Computing and Communications Center | ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
CD-Writing How-Tos |
||||
This set of articles is based on how-to tips prepared by Volker Kleinschmidt of the ITL. They outline the process of creating a CD, making it launch automatically when it's inserted into a PC or Mac, and giving it the look and the icon of your choice. Have you ever had a computer game that came with separate music tracks that played on your CD player? There are how-to instructions for that too. These how-to tips are on the Web: http://www.accc.uic.edu/itl/howto/ |
||||
|
||||
| CDs for Both PCs and Macs | ||||
|
There are two CDs-for-both choices. Macs can read PC files, so if your CD contains only data files that need to be accessible on multiple platforms, you can follow some fairly simple rules and create a PC CD that both Macs and PCs can read. If a Linux system is used for burning, Unix file ownership and permissions can be applied, so a true multiplatform CD is possible. These cross-platform CD-ROMs are simple to create and provide good service to PC users. PC users will be able to open a file on a cross-platform CD by double-clicking its name, and the CD can be set up to open automatically on the PC. However, cross-platform CDs do not offer those services to Mac users. You could create separate CDs for the PC and the Mac to provide these services to Mac users, or you could ignore Mac users entirely. Neither of these solutions is desirable, which brings us to hybrid CDs. The second option is a hybrid CD-ROM. Hybrid CDs have separate sets of Macintosh- and PC-readable files. (The technical terms for "set" are "filesystem" on PCs and "volume" on Macs.) On PCs, only the PC data will be visible, whereas a Mac will be able see both sets of data, but will automatically open only the Mac data. Creating true hybrid CDs is a much better answer when you want your CD to be available to both Mac and PC users. Only hybrid CDs preserve Mac file-creator type information, and thus only they will allow the Macintosh user to open files by double-clicking. Only on a Mac volume can a file be made to auto-open on a Mac upon CD insertion. It will also allow fine control over its appearance when it is opened (icons, layout, visibility), allowing a professional-looking CD that can be used for both PCs and Macs. |
||||
| --Further considerations: | ||||
File Naming:When you place hyperlinked documents (e.g., Web pages or PDF files) on a cross-platform CD that will be used on both PCs and Macs, make sure that all the hyperlinks reference the documents by their short 8.3 MS-DOS filename, which is the only name visible on the Macintosh. Also make sure to only use relative links, not absolute file:///-type links, for CD distribution. File Sharing on hybrid CDs:All data files such as images, movies, Web pages, or PDF files can be shared between the Mac and PC filesystems on a hybrid CD, so only executables and files with platform-specific information (e.g. a ReadMe file) need to be duplicated on the CD. This helps save space. In particular, you should keep this in mind when designing your media; create cross-platform compatible movies and sounds, e.g. RealVideo, RealAudio, or flattened Quicktime movies. |
||||
| --How are hybrid CDs made? | ||||
|
||||
| Autolaunching CDs | ||||
Task:When inserting a CD-ROM, a program should launch automatically, perhaps with a document displayed in the program. Details:A platform-independent solution is desired. No assumptions about installed software should be made. User preferences like default browser program should be taken into account, where possible. Considerations:
|
||||
| --The general solution for Macs: | ||||
|
To autolaunch a program or document on a Macintosh, the CD needs to contain a Macintosh volume (which will not appear on a PC). When creating this volume in Roxio Toast, a checkbox allows you to specify an auto-launch file, and an icon for the CD, via a simple browse dialog. In particular, this means that the CD needs to be a true hybrid CD, not just a cross-platform CD. |
||||
| --The general solution for PCs: | ||||
|
The CD's root directory needs to contain a plain text file named autorun.inf.
Auto-displaying a Multimedia Presentation
Auto-displaying a Web Page Web pages can simply be opened in Internet Explorer, as that automatically comes with all versions of Windows. This has the advantage that links from said Web page to executables included on the CD can actually be executed (e.g. software installers), whereas other browsers will only offer to save the executable to the hard drive. The launch command can therefore look like this:
(The -k option makes Internet Explorer launch a new process in case the user already had a browser window open.) When it is of utmost importance to launch the user's default browser, there are two options: use an autorun program as mentioned above, or use a DOS shell to open the document in its associated program. Auto-displaying a PDF FileTo open PDF documents, you will need to include the correct version of Acrobat Reader on the CD and configure it to run without previous installation. Then the launch command can therefore look like this:
(Assuming that Acrobat Reader is provided in the acrobat directory on the CD, and that relnotes.pdf is in the CD's root directory.) The disadvantage of using this approach is the somewhat longer load time when compared to a Web page or a specialized autorun program. You can alleviate that by auto-launching just a very small PDF file with a table of contents and linking from it to the main document(s). The main advantage is a simplified document-creation process, where only one version needs to be prepared for on-screen viewing with full interactivity and for printout. Using Toast to Create an Autorun Hybrid CD to Display a PDF DocumentClockwise from the right: the Mac volume, the Windows ISO 9660 volume (including the autorun.inf file), and ready to write the completed CD. You must use CD-writing software on a Mac to create a CD that will automatically run on a Mac. This demo CD automatically opens the ACROHELP.PDF file.
|
||||
| CDs with Audio and Data | ||||
|
There are three standards for CD-ROMs combining CD-audio and data for playback, both on computer CD-ROM drives and on entertainment systems: 1 Mixed-mode CD-ROMs contain only a single session, with the data in the first track, followed by audio tracks. As many CD players cannot tell the data track apart from audio, this can cause severe noise and speaker damage when played back and is thus not recommended. 2 CD-Extra (blue book) combines audio tracks in a first session with associated images, lyrics, and other data in a second, data, session following a very rigid schema. It is used for high-end CD playback systems and has very limited application. 3 Finally, you can record an audio session, followed by a data session containing any type of data. This counts as a regular multisession CD, not as CD-Extra. The second session can even be a hybrid session, making this the ideal format for distributing multimedia CD-ROMs that should provide at least audio on regular home CD players. In the following, we will only discuss the third type, regular multisession CDs. |
||||
| --How the multisession audio+data CD will work: | ||||
|
When inserting a multisession disc into an audio CD player, only the first session will be found and the audio tracks will be played as normal. When the disc is placed into a CD-ROM drive, the last session on the CD will be seen, and any autorun files in it will be executed, e.g. a multimedia projector. Typically, only CD writers will typically be able to see any sessions other than the last data session, and then only as an alternative the last one. So be sure to import your audio into the data session as well if you want it accessible on a computer. Preparing an audio+data CD:
|
||||
| Icons for Windows CDs | ||||
Task:Create an icon to be displayed in Windows Explorer and My Computer instead of the default CD icon. Considerations:Windows icons are 16- or 256-color bitmaps that are dynamically resized for the desired display size. The native size of small icons in Explorer is 16x16 pixels and large icons are 32x32 pixels. An icon file can contain both resolutions simultaneously; the appropriate one will automatically be displayed. The icon's background color can be transparent. How to specify an icon for a CD:The icon to be displayed is specified within the autorun.inf file in the [autorun] statement group, on a line starting with icon= followed by the path and name of the file containing the icon, e.g.:
Icons may be contained in executables (.exe) or dynamically linked libraries (.dll), which typically hold multiple icons, or in .ico files containing a single icon. When referencing an icon that is in an executable or library, the program name is followed by a comma and the number of the icon (starting at 0); e.g. for the tree icon from the Windows shell you would use:
How to create an icon:There are various shareware/freeware programs for manipulating, extracting, or creating icon files. The best is probably Paraben's IconBuilder ($24.95 shareware), which can convert other formats to .ico files, manage icons in icon-resource files, and much more. If you want to draw an icon from scratch, HTML-Helper's freeware IconStudio will be sufficient. A kludgy workaround:If you don't have a true icon editor, draw an image in any paint/draw program, then save it as a 16- or 256-color bitmap file, .bmp. Then open the .bmp file in MSPaint and crop as needed until it is 32x32 or 16x16 pixels. If you want a transparent background, pick a color from the 16 or 256 available colors that does not occur in your picture, uncheck the Draw Opaque option in MSPaint's Image menu, and fill the background of the image with the paint bucket. Save the .bmp file, then rename the resulting image with the .ico extension. You should see the icon displayed correctly now. Place it in your CD's root folder. Note that icons made this way aren't entirely valid and its transparent background will appear black in Windows NT. |
||||
| Icons for Mac CDs | ||||
|
Whatever icon you give to the temporary Mac volume will be assigned to the CD. Create an icon in your favorite graphics program and copy it onto the clipboard. Then change the icon for the temporary Mac volume by clicking once on the icon in the Finder, choosing Get Info... from the File menu, and finally choosing Paste from the Edit menu. There are step-by-step instructions on how to make an icon on a Mac at the iconfactory: http://www.iconfactory.com/howto_home.asp |
||||
| Need Help or the Right Software or Tools? | ||||
|
The ITL has it. And its mission is to help both novice and seasoned computer users, whether they're publishing their first Web page or creating sophisticated interactive hypermedia. Email the ITL at itl@uic.edu, call 312-996-9824, visit the ITL home page, http://www.accc.uic.edu/itl/, or stop by the ITL on the west side of campus in room 181 BGRC. Soon -- probably by the time this newsletter is published -- the new mini-ITL on the east side of campus, room 401 CCC, will be open.
|
||||
| The A3C Connection, 2001-2002, Number 2 | Previous: 2001-2002, Number 2 Contents | Next: Tools of Stats: SYSTAT and Stata |
| 2002-12-6 connect@uic.edu Unless otherwise stated, the clip art on these pages were obtained from The Learning Company’s ClickArt ClickEdit product, © 1998 The Learning Company, Inc. and its subsidiaries, 88 Rowland Way, Novato, CA 94945 USA. All rights reserved. |
|