Le 2 nov. 06 à 09:24 Matin, Rubber Chicken Software Co. a écrit:

I am making my own bootstrap program whose only purpose is to start up, copy an internal file from within it (in the Resources internal folder) to the computer's Temporary folder, launch it, and then quit to get out of the way.

The purpose is because this will run on a CD, and since it's a multi-CD set, the install-type app that runs must not run from the CD, since at some point the CD has to be removed (and the Mac will not let you remove it if the program is running).

This works on Tiger, but on Panther it doesn't work. It fails on the CopyFileTo method, where when I check the LastErrorCode for the source FolderItem it says "File Not Found" even after I checked the Exist property (which was True).

Perhaps RB in Panther doesn't let you copy packages (which is of course what he app is)?

Any other ideas, or perhaps there is a better way to copy a file from the bootstrap app to the hard drive?

Have you checked if both the original file and destination folder's exists properties are true? Sometimes we check the exists property of the source file while the problem comes from the destination folder.

Also, I always thought MoveFileTo didn't work to move a non empty folder (only a file or an empty folder, like the Delete and CopyFileTo methods). I wonder if that means you can't do this in Panther while you may do it in Tiger. If that's the problem, then you have to copy every item (starting with folders and then with files). I seem to recall that I had this problem of not being able to copy folders directly.

Just 2 ideas from experiences._______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to