Link to home
Start Free TrialLog in
Avatar of Cornelia Yoder
Cornelia YoderFlag for United States of America

asked on

CD install command

I need to write a program (probably Visual Basic, but open to suggestions) to install some files from a CD using the autorun.inf method.  I know how to do the autorun, but I don't know how to write the .exe file.

It is very simple function.  I need to create a directory (and subdirectories) if it doesn't exist already, then copy a bunch of files to that directory.  I need to make a desktop icon for the system that points to a particular file in the directory.  I expect I also need an uninstall to delete those files and folders.

I want this to run on MAC or Windows.

Can someone please explain to me what I need to do to accommodate both platforms, and point me to the shell(?) commands to do it?  

I can't believe there isn't a simple tutorial or example of doing this somewhere on the web, but I have not been able to find it.
ASKER CERTIFIED SOLUTION
Avatar of Keith Brown
Keith Brown
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cornelia Yoder

ASKER

OK, that's good information!  So I need two separate programs, one Autostart that installs on a Mac and one autorun.inf and accompanying .exe that installs on Windows.

The Windows .exe one can be written in VB and will use windows commandline scripts and commands.

The Mac one can be written in (something else) and will use OSX commandline scripts and commands.  I looked for REALBasic but it seems to be a commercial product which is a little expensive for my simple application.  Is there any other choice for a Mac version?

Next, can you point me to a tutorial or manual for each of the "commandline scripts and commands" that I would need to use for Windows in VB and for the Mac?  I will need directory/folder create and delete, file copy and file delete, and however you create a desktop icon.

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I just want a program that will run on the CD to copy the files to a user's computer so s/he can run them from a desktop icon.  The files that would be copied are pure HTML, nothing exotic.

I do not have a Mac, but I would be willing to find someone who does long enough to get this set up, if I know exactly what I need to do.

I'm wondering just how hard it is, and if I gave a pseudocode statement of what I needed, would it be a reasonable request for some EE expert to just write the code and send me the compiled autostart file to put on the CD?  (I don't want to post code details here, but I can be reached though the email on  www.corneliayoder.com ).  If so, I'll just open another question requesting that.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I managed to get my hands on a CD with a similar situation, and when I opened the readme file, it said "...For Mac users, drag the folder to your desktop and click on StartHere.html ...".

I guess this is the simplest way and for me the obvious way to go, since I barely understand most of what was in the links you gave me.

I'm very grateful for the work you did looking this all up and helping me sort out the possibilities.  And thanks so much for a really well-done reply to this question -- you've saved me many hours of agony to only to find out that it can't be done as I expected -- and it's an excellent example of how EE is supposed to work.

Cheers,
Cornelia
Hey, no problem. That's what we're here for.

It kind of sucks that they dropped support for Autostart, and they also did so quietly. Reason I figured it out, was while searching on how exactly to burn the disk with autostart, I saw a forum post where someone was complaining that after they upgraded their version of OSX, that their disks with autostart no longer worked.

Still, it makes sense on why not to do it, since it is something easy to abuse. For a while I was part of a group that made some tools based around the U3 flash drives (which allowed the use of autorun.inf), and that got abused pretty bad. People had things so they could plug in their custom U3 drive, and it would automatically rip out the CD keys for a bunch of different programs that were installed on that computer, as well as do damage to the computer (install viruses and such), all automatically and within seconds of plugging the drive in. The person could walk away with ways to use expensive programs for free, as well as messing up the machine they stole the keys from.