Install app and copy app preferences

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
07-07-2016
05:54 AM
- last edited on
03-04-2025
08:50 AM
by
kh-richa_mig
Hi everyone,
I have packaged up a webapplication as pkg, all works well it installs fine but i need to add a json file to users Library so the app opens and connects to the right server. I solved that with a postflight script but the problem is, the folder that the json needs to be copied to is only created after the application has been started first time by the user. I really would like to get this solved without having the user do any extra interaction except for installing the app from self-service. Anyone has an idea how to handle this best??
Thanks so much
anni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 07-07-2016 06:16 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 07-07-2016 06:22 AM
Does the application fault if you pre-create the folder, or is it using some special random/hashed naming scheme when creating it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 07-07-2016 06:35 AM
@dan.snelson I am not using Composer at the moment but i might try now.
@andrew.nicholas no i will test and see if it errors out.
Thanks to both of you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 07-07-2016 09:12 AM
If you're already running a post flight script to add the json, why not also have it create the folder?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 07-08-2016 08:14 AM
Thanks everyone, creating the folder did the trick :)
