Hi everyone,
I have solved my problem! Thanks for everyone who came up with ideas, buts and suggestions!
My problem was: how to distribute a database program on CD-rom and run it on people's computers, who may or may not have Access installed, without installing any databases or program groups on the clients' computers - the database (which is read-only) must remain on (and be run from) the CD-ROM.
What I have done is the following:
1) I have created a little program in VB 6.0 called 'install.exe'
2) This install.exe is started by the 'autorun.inf' file on the CD
3) install.exe looks in the registry to see if Access is installed (and if it's a higher version than Access 97)
4) If Access is installed, it starts up my .MDE application
5) If Access is not installed, it starts the runtime installation program, which is also located on the CD
6) After this, every time the CD is inserted, the database application is started.
7) (apart from maybe the runtime Access files) nothing is installed on the clients' PC. There is no need to uninstall or remove anything.
There are a few problems with this solution though, and I welcome all ideas that can solve them:
a) Clients that have AutoPlay disabled will have to manually double-click the .MDE file or install.exe (but I figure that anyone clever enough to disable autoplay will be clever enough to manually start a program)
b) On some machines (like a freshly installed Win98), the install.exe will not run, because a VB file called (MSVBVM60.DLL) is missing. Fortunately, any setup.exe created by the Package and Deployment wizard suffers the same problem. As a runaround I have a readme.txt on the CD that instructs users to start setup.exe instead of install.exe if this happens. Setup.exe is the setup file for the Access runtime files (because by definition, they will not have an up-to-date office/access installation if they don't have that VB file), and after the runtime installation, the install.exe will work next time the CD is inserted.
c) The CD has to be inserted or right-clicked and started for the program to run. Maybe I will offer the user the choice to create a desktop icon.
d) People who do have Access and run the program will receive an annoying 'this database is read-only' message everytime they start it. This message seems to be generated by Access before actually opening the database, so I don't think I can disable it programmatically. Maybe there's a registry setting somewhere????
OK, that's it, thank you for your time!
Greetings from Holland,
Keimpe Wiersma