Packages installer question

  1. 2 weeks ago

    Tim T

    May 14 Atlanta, GA

    How do I install a folder under the current user's Documents?

    I don't see it as an option under the Payload tab.
    Also looked at the documentation and can't find anything.

  2. scott b

    May 14 Pre-Release Testers, Xojo Pro local coffee shop

    @Tim T How do I install a folder under the current user's Documents?

    I don't see it as an option under the Payload tab.
    Also looked at the documentation and can't find anything.

    what O/S?
    what package maker are you using?

  3. Tim T

    May 14 Atlanta, GA

    Mac OS Yosemite

    Using "Packages"

  4. scott b

    May 15 Pre-Release Testers, Xojo Pro local coffee shop

    I dont know much about that packager. sorry.

  5. Tim P

    May 15 Pre-Release Testers, XDC Speakers

    You're not supposed to put anything there. That's for the user to create and store their documents.

  6. Ralph A

    May 15 Santa Monica, California

    There is a document on the developer's web site explaining how to install files under the user's Home folder.

  7. Jeff T

    May 15 Midlands of England, Europe

    Gave up trying to do that years ago.
    Make the packager install your app only.
    Usually it gets put into Applications, but if the user has moved it, a subsequent install will try to replace it where it was moved to.

    Your app should then create data that it requires when it starts, if the data does not already exist , maybe by unpacking a zip file or duplicating items from the resources folder.
    That unpacking can occur into Specialfolder.applicationData.child("yourappname")
    or into specialfolder.documents.child("yourappname") if you wish

    That means that if another user runs the app, they get their own set of support files in their own folders.

    ApplicationData is the recommended place, although like you, I create files in Documents, because they are easier for the user to get at them. (I want them to be able to do that) .. ApplicationData is hidden by default most of the time.

or Sign Up to reply!