FLJerseyBoy
Registered User.
- Local time
- Yesterday, 21:54
- Joined
- Jul 27, 2018
- Messages
- 18
Hi all -- have any of you had any experience installing missing drivers on a client machine, using VBA?
The Windows 10 disk image used by my IT department does not automatically include SQL Server and/or Oracle ODBC drivers required by my applications. Those drivers may or may not be installed by the techs who actually deliver the new machines to users; it seems to depend on whether or not they've been instructed to install them -- it's not part of their "script."
Now, I can of course check for and install the relevant driver(s) myself at the time I install their front-end DBs, via the ODBC Admin (odbcad32.exe) in C:\Windows\SysWOW64. That's how I've been doing it (from different directories in the past) for 20+ years. But I'm building a small application program whose only purpose is to install or update a front-end application required by a given user, and thereby minimize the need for me to visit or remote into every user's machine when required. The updating works great -- it's the first-time installations giving me fits.
What I'd like to do is something like this:
Thanks for any brainstorms. I'm plumb out of them myself!
P.S. My front-end DBs are all smart enough to see whether or not the required ODBC connections for linked tables + pass-through queries have been established; if not, then they're added at runtime. But of course that will fail if the drivers themselves aren't present.
The Windows 10 disk image used by my IT department does not automatically include SQL Server and/or Oracle ODBC drivers required by my applications. Those drivers may or may not be installed by the techs who actually deliver the new machines to users; it seems to depend on whether or not they've been instructed to install them -- it's not part of their "script."
Now, I can of course check for and install the relevant driver(s) myself at the time I install their front-end DBs, via the ODBC Admin (odbcad32.exe) in C:\Windows\SysWOW64. That's how I've been doing it (from different directories in the past) for 20+ years. But I'm building a small application program whose only purpose is to install or update a front-end application required by a given user, and thereby minimize the need for me to visit or remote into every user's machine when required. The updating works great -- it's the first-time installations giving me fits.
What I'd like to do is something like this:
- Check which driver(s) might be required by the app being installed/updated
- Check to see if the requisite driver exists on this machine
- If the driver has not been installed, do [something] to install it within the VBA code
- ...and then go ahead and grab a copy of the specific front-end app
Thanks for any brainstorms. I'm plumb out of them myself!
P.S. My front-end DBs are all smart enough to see whether or not the required ODBC connections for linked tables + pass-through queries have been established; if not, then they're added at runtime. But of course that will fail if the drivers themselves aren't present.