Autorun HTML CD for Windows + Macs + Linux

Associate
Joined
18 Oct 2002
Posts
1,312
Location
Milton Keynes
Hey all

Am making an interactive CD ROM, that when entered will start an HTML file.

Thing is I want this to work for Windows boxs, and Mac boxs alike, plus Linux if at all possible.

So basically putting an exe on to run the HTML is out of the question, and not sure if shellexecute will work on macs / linux.

Any ideas?
 
I doubt it's possible, I think they best you will get will be a dual-format disc with an autorun.inf for the PC users, and a customised view with a giant 'Double Click Me' icon for Mac users. As for Linux users, I have no idea, but REAL linux users will be looking at it in Lynx so it might not work anyway ;)
 
Beepcake said:
I doubt it's possible, I think they best you will get will be a dual-format disc with an autorun.inf for the PC users, and a customised view with a giant 'Double Click Me' icon for Mac users. As for Linux users, I have no idea, but REAL linux users will be looking at it in Lynx so it might not work anyway ;)

Why would a linux user use Lynx which doesnt have any form of GUI like safari, firefox, internet explorer, opera, etc..
 
so if I told my boss (a mac user) that it cannot autorun using a mac, i wont be wrong?
 
Autorun on Linux/ Mac is 100% possible, albeit a little less reliable on Windows. (Depends on various system settings)
All it requires is a standard shell script in the root of the CD, named autorun

This is the script I use as standard in Linux-
Code:
#! /bin/sh

# autorun binary for Linux CDs. Put this file on the CD in the root
# directory.  It will execute automatically when the CD is inserted.
# It looks for a browser and runs it on index.html or similar.

# Copyleft 1999, 2000, 2001, 2002 Silmaril Consultants
# Terms of the GNU General Public License apply.

###################################################################

BROWSER=`which mozilla 2>&1`

if [ ! -x "$BROWSER" ]; then

    BROWSER=`which netscape`

    if [ ! -x "$BROWSER" ]; then

	BROWSER=`which opera`

	if [ ! -x "$BROWSER" ]; then

	    BROWSER=`which konqueror`

	    if [ ! -x "$BROWSER" ]; then

		echo No known browser available
		exit 1

	    fi

	fi

    fi

fi

HOMEPAGE=`grep homepage autorun.inf | awk 'BEGIN {FS="="} {print $2}'`

if [ ! -f "$HOMEPAGE" ]; then

    $BROWSER /media/cdrom &

fi

$BROWSER $HOMEPAGE &

exit 0

Autorun in the Mac is a pain in the rear, but possible- See this page:
http://www.bluezucchini.com/autorunforosx

-Leezer-
 
Back
Top Bottom