Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

Including sqlite database in a windows air installer

$
0
0

I am trying to create a cross platform air installer that uses a sqlite database.

 

This is the code I use to copy the database from the installer to the users application directory:

 

var dataFile:File = File.applicationDirectory.resolvePath("data/myDataStorage.db");
var dataUserFile:File = File.documentsDirectory.resolvePath("myDataStorage.db");

 

When using the database I access it here:

var file:File = File.documentsDirectory.resolvePath("myDataStorage.db");

 

This works great on a mac.  On a PC it does not work.  Can anyone recommend a resource or give me a tip or two?

 

Thanks


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>