Hi. I’m writing a software that saves some settings in the Application data.
First I create the folder item like this
file= new folderitem(SpecialFolder.ApplicationData.NativePath+“/My Software/”+“My File.txt”)
this file is created with IsWritable = true, so I can write on it and save data into it.
If I use the Shared Application data, so like this
file= new folderitem(SpecialFolder.SharedApplicationData.NativePath+“/My Software/”+“My File.txt”)
the file is created with IsWritable = false, so I´m getting an error 13 when trying to save on it.
The solution seems easy just using the ApplicationData instead of the Shared ApplicationData, but then arrives the problem of making the installer.
I´m using Packages (Stéphane Sudre) for cresting it, and this is always saving the libraries & additional data into the Shared ApplicationData. If I use the “Current user´s home folder” domain, then the installer is not saved into the Applications folder.
So if Is the installer saves the main application into the Applications folder, then the extra packages are saved into the Shared ApplicationData and then I can´t write on them, and if I save the extra packages into the Shared ApplicationData then the main application is not installed into the Applications folder.
Maybe a solution should be using other software for making the installer of the packages, as I believe I´ll not be able to create the files into the ApplicationData with IsWrittable permissions set to true.
Any help or idea with this?.
Best regards.
11 posts - 6 participants