PDA

View Full Version : How to know Installation Folder?


shubs6
01-21-2008, 11:17 AM
In the Actionscript 3 code of my AIR application, I'm writing dynamically to an xml file which will be created in the installation directory of the user's system (\Program Files in windows AND /Applications IN MacOS) at the time of installation. When I'm running my app, I'll be writing to and reading from this file.

My problem is that I'm not being able to find the path of the installation directory in my code so that I can use that to access this file.
Please help..

shubs6
01-22-2008, 03:45 AM
Got the workaround. Use File.applicationStorageDirectory.
See the link http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=641&threadid=1331202&CFID=8065181&CFTOKEN=fd45a513163d0ee1-9FBCBEF9-CD66-6AA3-74B3FBA82FAB8267&jsessionid=48307eab0c9f676b217d