Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Database - Automatic Installation

Status
Not open for further replies.

PADFOR

Programmer
Feb 5, 2001
25
GB
Is there a program or code that would automatically installed a Access database straight from a CD onto a computer?

Cheers

PADFOR
 
I believe you can create a batch file and name it autorun.bat. Put this on the CD with the File. I think (someone else can verify if this is true of false) that the autorun.bat file will run automatically when the CD is inserted.

Open Notepad, and copy the following into it, and change the red parts accordingly:

==========
@ECHO OFF
if exist C:\My Documents\MyDatabase.mdb DEL C:\My Documents\MyDatabase.mdb
echo Now Copying Database File
XCOPY A:\MyDatabase.mdb C:\My Documents\ /c /v
==========

Save it as autorun.bat (make sure you type in the .bat when you save it.

Burn this on the CD with the Database file. I am just not sure whether it will run automatically. Jim Lunde
compugeeks@hotmail.com
Custom Application Development
 
Do you need to install also the runtime of access or not ?

JJ
 
This just copies the file from the disk to the hard drive. If you want to install a run time, the packaging wizard will create installation disks for you. Jim Lunde
compugeeks@hotmail.com
Custom Application Development
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top