Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Can not modify read-only dataset
Tue, May 24 2016 8:52 AMPermanent Link

Peter van Mierlo

EVENTSOFT

Avatar

hi

I created a setup for my application which copies the database file to  :
C:\ProgramData\myApplication\Data

On my own computers the application runs without problems. A new customer get this error :

Can not modify a read-only dataset

What couses this error and how to prevent it. By the way...the TEMP direcectory is the
same directory as above.

Regards Peter
Tue, May 24 2016 9:47 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Peter


Its generally a matter of permissions, but since you say copies the database file it could be copying the files as read only. Windows tends to do this if you're copying from read only media (eg CD or DVD)

Roy Lambert
Tue, May 24 2016 12:20 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Peter,

<< I created a setup for my application which copies the database file to: C:\ProgramData\myApplication\Data

On my own computers the application runs without problems. A new customer get this error :

Can not modify a read-only dataset

What couses this error and how to prevent it. By the way...the TEMP direcectory is the same directory as above. >>

Please see here:

http://stackoverflow.com/questions/22107812/privileges-owner-issue-when-writing-in-c-programdata

ElevateDB stores its settings .ini file in a subdirectory under c:\programdata for the ElevateDB Server, and gets around this restriction by granting all rights to Administrators, and read/execute to all users, during installation.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, May 24 2016 4:58 PMPermanent Link

Peter van Mierlo

EVENTSOFT

Avatar

Hi Roy/Tim.

Well the setup 'installs' the files in a sub directory...something like :

C:\ProgramData\myWristband\Data

For creating a setup.exe i use IndigoRose Setup Factory so i have to look if it's possible to
set the attributes for those files.

Is there a better/other location for installing the dbisam database file as i do know ?

Regards
Wed, May 25 2016 5:20 AMPermanent Link

Matthew Jones

Peter van Mierlo wrote:

> Is there a better/other location for installing the dbisam database
> file as i do know ?

Somewhere like AppData IIRC. Check out the installer location options,
and you will find the one that fits. One other option that I use is to
have another installer that is run the first time your application is
run by a user, which then installs the default data set to their "My
Documents\Your App Files" folder. That way each user gets a set of
files in their own location rather than shared. Depends a bit on
whether you want them to know about the database - AppData is good for
hiding, but backups might get missed.

--

Matthew Jones
Wed, May 25 2016 11:40 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Peter,

<< Is there a better/other location for installing the dbisam database file as i do know ? >>

Do you want the database files shared across all users that may use the machine, or specific to each user ?

Tim Young
Elevate Software
www.elevatesoft.com
Image