Please have a look here:
http://kb.4d.com/assetid=77688

TL/DR - you need sign the application, then place it on a disk image (DMG) and 
then sign the disk image, before transferring the disk image to the other 
machine.

-Tim






-----Original Message-----
From: 4D_Tech [mailto:[email protected]] On Behalf Of James Knight 
via 4D_Tech
Sent: Tuesday, December 19, 2017 2:41 PM
To: [email protected]
Cc: James Knight <[email protected]>
Subject: Database locked in merged application

Hi

I’ve recently upgraded our database to v15 and see that I should be able to set 
a default data file in a merged application.

We use the data file only to get the merged application running - all data is 
stored in a remote MySQL database (not 4D SQL) using MyConnect. Therefore the 
data file should in principle be capable of being read only for end users - it 
only stores the connection information for the MySQL database.

There are a number of Macs using network accounts on our network so 
historically I’ve stored the merged app and the data file in a folder within 
Users/Shared. But this has always caused issues with upgrading the app and 
setting permissions for different users.

Ideally I would like to store the merged application in the system Applications 
folder.

I’ve created a default data file and stored it next to the 4db file. I’ve also 
selected the ‘Allow read only data file use’ in the data storage section of 
database settings.

Having built the merged application, it opens just fine, in the location in 
which it is created.

However, if I move or copy the application to any other location at all, or on 
to another computer, it refuses to open and gives the message “The data file is 
locked. Impossible to open database”.

I started by trying to copy it to the Applications folder, but even moving the 
merged app into the parent folder is enough to give this error.

It’s clearly permissions related - but how can I fix it?

Cheers

James



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to