Note: Checking for "FullInstallVer" instead of "Version" might be better.
#GET MDAC VERSION INSTALL#
Install the MDAC." Push 1 Goto ExitFunction Was not detected this is required for installation. "The Microsoft Data Access Components version 2.6 (or later) \ To download MDAC 2.5 SP3 (. Note that the version information stored in the registry may be incorrect for versions of MDAC prior to 2.1 when compared with the versions of the actual. This release provides, directly to the public, the same version of MDAC that is included with Microsoft Windows 2000 Service Pack 3 (SP3). $2 is now "2.5" StrCmp $2 "2.6" MDAC26Found Since MDAC in Windows XP SP2 or later is newer than the version (MDAC 2.8 SP1) in the last MDAC redistribution program, mdactyp.exe no longer installs MDAC on Windows XP SP2 and later version. Usage: Ĝall UpdateMDACVersion Pop $MDAC_UPDATE If $MDAC_UPDATE is 1, install latest MDAC Function UpdateMDACVersionĬlearErrors ReadRegStr $1 HKLM "SOFTWARE\Microsoft\DataAccess" "Version" IfErrors MDACNotFound MDACFound If the MDAC is newer than 2.8x, the function won't support it (i.e. Currently will set the flag to 1 (updated) for MDAC 2.5 or newer will allow 2.6x, 2.7x, 2.8x to pass without updating. The Function - UpdateMDACVersion Written by Matthew Kershaw This function will set a flag which determines if a newer version of MDAC is required. Currently the minimum version is 2.6 (required for SQL2K connections), but this can be changed by altering the functions. This function will check the registry to see what version of MDAC is installed, and will set a flag for the installer to update with a newer version if necessary.