Air: write to the application storage directory during installation?

I am writing an Adobe Air HTML application. I want to write to the application store directory during installation and thought you could point me in the right direction.

I have a set of examples of β€œprofiles” (text files) for inclusion in our application. I would like to give examples in the application store (or document store), as the user can delete, modify, etc. In addition, I do not want to overwrite files during updates, only the initial installation.

But, as far as I can tell, the installer only writes to the application directory. Is there a simple command line change for ADT to send files to the application storage directory?

Here's my thought so far of a workaround:

  • Include files in the Examples app directory

  • At startup, check if the "Examples" folder is in the application store / document directory

  • If this does not exist, copy the application folder: / Examples to the application / document storage directory

But it would be much easier if it were part of the installer. Let me know if any other information would be helpful. Thank!

+3
source share
1 answer

There is no way to configure a regular AIR installer. Your workaround is the way to do this.

+1
source

All Articles