Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 10:00 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Moving databases after publication
PostPosted: July 27th, 2010, 3:37 pm 
Offline

Joined: July 12th, 2009, 10:33 am
Posts: 124
Hi

Sorry if this has been covered, but I have a thick head and can't find the answer.

I have a full internet database solution working, but I have found that many customers (schools) struggle to allow Opus the interactivity it needs to connect through the web (ISP blocks etc). I have developed an alternative local Access database solution for these people, but am struggling with the location of the database.

Users need read/write access to the database to store scores and information.

I didn't want it in the Publication folder as the exe ends up in the highly protected Program Files folder after install.

I tried the ProgramData folder, but this does not have write permissions by default for low level users (in Win 2010 at least - although I'm sure it did in Vista).

I have tried the above as a default install, but then started looking at moving the database after installation is complete. I replaced the dsn file with one of the same name/location as the original and pointed it towards the new database location, but Opus won't find it. I didn't get as far as working out what to do with the Access password; this is requested when setting up the DSN but I don't want to give it to customers.

Not sure what else to try, other than insisting that they change the permissions on the ProgramData folder (or other). This seems a bit clumsy.

Any ideas welcome.
Many thanks
Dan

_________________
V9.6. Windows 10. Testing on PC, Mac, iPad.


For this message dan1 has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Moving databases after publication
PostPosted: July 27th, 2010, 6:35 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
You have to set the ACL of your folder in the ProgramData for all users to have read / write else they'll only have read access and virtualisation will kick in.

Regards,

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Moving databases after publication
PostPosted: July 27th, 2010, 8:05 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
what about c:\Users\Public ?

Maybe it is also possible to put a Shortcut in the ProgramData path, and the redirect goes to where all users can have write permissions on the target file.

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Moving databases after publication
PostPosted: July 27th, 2010, 11:15 pm 
Offline

Joined: July 12th, 2009, 10:33 am
Posts: 124
Thanks guys - sometimes you just need a shove in the right direction.

I wanted to avoid manually setting permissions in a hidden folder, but I can set the permissions in the setup packager I use (which is MSs recommended solution).

Should be fine.
Cheers
Dan

PS. I'm still surprised that I couldn't manually replace the dsn file for another pointing to a new location. The dsn file is copied to the program files folder on install and Opus finds it in its default location. I would have thought that all the database directing was taken care of by the dsn, but presumably Opus needs the DB location as well for some reason. I don't think I'll worry about this now :)

PPS. Also wondering why the ProgramData folder doesn't have write permissions by default. I thought this was the point of it.

_________________
V9.6. Windows 10. Testing on PC, Mac, iPad.


For this message dan1 has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 38 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group