question

BKHariprasad-2463 avatar image
0 Votes"
BKHariprasad-2463 asked HariPrasad-3049 commented

How to check whether Access Database engine is installed or not?

Hello,
I have requirement that I need to check whether Access Database Engine is installed or not through Registry key. Please tell me what is the key do we need to check in regedit?


Best Regards,
Hari

vs-testing
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

cooldadtx avatar image
0 Votes"
cooldadtx answered HariPrasad-3049 commented

Is there any particular reason why you need to check a registry key instead of just querying for the installed product directly?

The 32-bit ODBC drivers is contained under HKLM\Software\WOW6432Node\ODBC\ODBCINST.INI. If Access driver is installed it'll show up here. But note that this is a 32-bit key so you'll have to adjust your code to read it if you're using a x64 bit app as otherwise it'll read the HKLM\Software\ODBC\ODBCINST.INI which is the x64 drivers. Access won't appear under there.

· 10
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for quick reply.
Yes, there is a reason for registry key check. Actually I have a requirement that while installing my application, I need to check whether Access Database Engine is installed or not, if Access Database Engine is already installed, my installer should skip to install Access Database Engine, otherwise my installer must install Access Database Engine before installing my application.

Best Regards,
Hari

0 Votes 0 ·

Thanks for quick reply.
Yes, there is a reason for registry key check. Actually I have a requirement that while installing my application, I need to check whether Access Database Engine is installed or not, if Access Database Engine is already installed, my installer should skip to install Access Database Engine, otherwise my installer must install Access Database Engine before installing my application.

Best Regards,
Hari

0 Votes 0 ·

For installers you should be looking at installed components, not registry keys. This is how MSI is designed to work. You can set up dependencies such that if the component is already installed it is skipped otherwise it is installed. This is already built into MSI. Of course how you configure that is up to the installer tool you're using.

0 Votes 0 ·

Hello,
Thanks.
Basically I'm not using MSI installer. I'm using Innosetup. In Innosetup, I can check whether Access Database Engine is installed or not through Registry key. Could you please help on the Registry Keys which tells whether Access Database Engine is installed or not?

Best Regards,
hari

0 Votes 0 ·
Show more comments