A couple of years ago, I wrote a program I call the AccessAppStarter to help
me deploy Access applications. Since then, it has become indispensable to
me. I've used it with every Access application I've written. I was
reflecting on this today when it occurred to me that other developers might
find it useful too, so I've posted it at
http://MatsonConsulting.com/download...appstarter.zip for everyone to
use. If someone can tell me how to release software with an open source
license, I'll post the source code too.
What the program does is very simple. Instead of running MSAccess.exe with
the front-end file as a command line parameter, you instead run
AccessAppStarter.exe with the front-end file as a command line parameter.
AccessAppStarter will then run MSAccess.exe, but before it does it will
perform a few useful functions:
1) It will check the registry to see if it knows the location of the
workgroup file. If it doesn't, it will prompt the user for the location and
save it to the registry. Then, when it runs MSAccess.exe, it will use the
workgroup file. Every front-end file can have a different workgroup file
associated with it.
2) It will check the registry to see if it knows the location of the
back-end data file. If it doesn't, it will prompt the user for the location
and save it to the registry. Then, when it runs MSAccess.exe, it will pass
the location as a command line parameter. Every front-end file can have a
different back-end file associated with it.
3) It will check the registry to see if it knows the location of the
resource folder. (The resource folder is a place on the network where the
front-end will look for expected files, or where it can write shared data.)
If it doesn't, it will prompt the user for the location and save it to the
registry. Then, when it runs MSAccess.exe, it will pass the location as a
command line parameter. Every database file can have a different resource
folder associated with it.
4) It will look into the resource folder for a newer version of the
front-end file than exists on the PC. If one exists, it will replace the
older version with the newer version.
With command line options, you can get different variations on this
behavior, but that's the meat of it. I created a help file with all the
details. Together, these features make deployment a snap. Rolling out
revisions become trivial -- you just put the new front-end file in the
resource folder.
Please give me comments. If some fraction of the coders on this newsgroup
find the AccessAppStarter as helpful as I do, I may begin to repay the huge
debt I owe after years of posting questions here.
-Todd Matson