Re: Access File location Problem on deployment
- From: "Martijn Tonies" <m.tonies@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 14 Jan 2008 12:47:17 +0100
Hello Thomas,
I already posted in the newsgroup deployment but still there isis a windows message that the mdb files are not found at .... some path on
a problem. Adoconnection at designtime works perfectly.
When I want to install the program after compiling with Innosetup, there
the computer...
in the beginning it was 'Documents and settings/Allusers/' or somethinglike this, sometimes it is
c:\program \dbfiles\TED\DBFiles\'.
Don't put your data files in there, on Vista, applications are not allowed
to write
to files in there.
(TED being the applicationname, DBFiles the name of the subfolder beingthe storage location of the mdb files , but I don't create and copy this
folder because if files are searched in the 'doument and Settings' path,
anyway this folder will not exist}
I read out the special folder constant "clrid_common_documents" from theshfolder uses but it is not there where my mdb files are searched.... Also
this seems to change from win XP home to winXP Pro...
'deployment' please where I put also the code.
If there is something not clear have a look at my newest post at
Anybody know what happens ?
Make sure to create your InnoSetup script so, that is deploys your MDB file
into the user data folder.
Next, use the ShellFolder stuff to make sure your ADOConnection uses that
file instead of some subdirectory from the "current directory".
--
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
.
- References:
- Access File location Problem on deployment
- From: Thomas Willms
- Access File location Problem on deployment
- Prev by Date: Re: Access File location Problem on deployment
- Next by Date: Re: EOLEException error "Row Handle referred to a deleted row or row marked for deletion" with CancelBatch
- Previous by thread: Re: Access File location Problem on deployment
- Next by thread: Access 2000 with ADOTable error - Unspecified error
- Index(es):
Relevant Pages
|
|