Hi Sam, Beatrix, and Kevin,
My apps use SQLite databases to store data, and I used to be able to install the entire application plus databases all in the Application folder. Then Apple made it harder to write data to the Applications folder under Lion or Mountain Lion. (I can’t remember which.) When I tried to save data back to the database from the app, it would not save.
So I had to install the databases and other support folders in the Documents Folder. I did not use the Library/Application Data folder, because my customers needed to have easy access to those database files and the Documents folder was easy to find.
I used an installation app call File Storm which has always worked great for me for the most part. You could easily install different elements of your application pretty much anywhere, and you could determine if existing files would be overwritten, left alone, or you ask the user what to do with them.
http://www.mindvision.com/filestorm.asp
It looks like File Storm was 32 bit and when I contacted the company they said they were not upgrading the application to 64-bit, so since Apple is phasing out 32-bit apps, I decided I would have to write my own 64-bit installer. So that is what I’m trying to do.
When using File Storm I would have no problems with most installs, but lately, I get maybe 1 out of 100 or so customers who report that the “Application Finished With Errors.” Basically, it could not copy my app folder to the Applications folder. So this is what you must be talking about as the “Secure Applications Folder.”
I tested this code and it seems to work fine thanks to those who helped me earlier.
[code]Dim f as FolderItem
f=GetFolderItem(“MyApp.app”)
If Not f.Exists Then
MsgBox “File Does Not Exist”
Else
f.CopyFileTo(SpecialFolder.Applications)
End If[/code]
How can you tell whether a customer’s computer has a ‘secure’ /Applications Folder? If it can be turned off for the install, then I could tell the customer to turn it off. I don’t know how FileStorm copied the app to the Applications Folder, and because of the ‘secure’ Application Folder some of my installs would report ending with errors and not copy the application.
If the install only fails 1 out of 100 times, I could also include one of those Drag to the Applications folder DMGs as a backup method.
As far as Ditto, I don’t know anything about it and would not know how to implement it.