Posted on 07-07-2016 05:54 AM
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
Posted on 07-07-2016 06:16 AM
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?
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.
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?
Posted on 07-08-2016 08:14 AM
Thanks everyone, creating the folder did the trick :)