I did the same on a recent cd-rom project and used baFileExists(path) to check for files.
To get the right install path I wrote an ini file on installation (using baWriteini) and read it back when needed (bareadini). The nice thing about the bawriteini and bareadini is that it will put the ini file in the system directpory (in the preferences on the mac), so you won't need to find it and it's very simple to store paths in it. Johan -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Dan Sheridan Verzonden: woensdag 13 april 2005 23:31 Aan: [email protected] Onderwerp: <lingo-l> The plot thickens some what! Hi again! After getting the files to copy to the users hard drive, I now have to check to see if a previously installed file is on the system already. I have been testing with BuddyAPI with the baFindFirstFile function, however I am not sure if I have got the scripting correct to get what I need to happen. What I need to do is to check if a file exists, if it does take the user to a specific marker and pre-determined menu, if it doesnt then take the user to an alternative menu with the option to install this file... my script is contained in a movie script with a on startmovie handler; on startMovie me if baFindFirstFile("c:\" , "boo.exe") = true then go to 5 else go to 7 end if end (doesnt appear to do anything... and i get no errors on compiling the script)... Secondly when I have done this, and the user has installed all the relevant files... I need to then delete the installation folder from the temporary location on the drive... can i use baDeleteFolder, and then can i set it so that the system will do a double check so that the files are definitely removed on reboot? Cheers, Dan ;) [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
