|
I need help with the following script that I wrote which installs Microsoft Data Access Component 2.7. The script runs fine, however I need it to check to see what version of Mdac is currently installed in the PCs. How can I get the script to "drill down" to the Name, Type and Data string within the REG_SZ registry key?
==================================
CLS
;***Verify if registry entries for Mdac 2.7 exists.*** If (Existkey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\ExceptionComponents\{F1CAE27D-85D3-4642-B9E9-48D7F9F56C82}")=0) ? "Mdac 2.7 already exists in registry."
GOTO endofscript
ELSE
sleep (2)
$CHOICE = MessageBox("Your PC is being updated with required files. This update should take approximately thirty (30) seconds." + chr(13) + chr(10) + chr(13) + chr(10) + "Should you have questions, please contact the Help Desk at Ext. 1234. Thank you for your patience!" + chr(13) + chr(10) + chr(13) + chr(10) +"This window will close in 10 Seconds. ***DO NOT CLICK the OK button.***","Preparing To Copy Files",0480,20)
SLEEP (6)
RUN "\\Server\Windows 2000\Updates\SMB Patch\MDAC_TYP.EXE -q"
SLEEP (5)
$ReturnCode = SendKeys("~A") sleep (2) $ReturnCode = SendKeys("{ENTER}")
SLEEP (6) $ReturnCode = SendKeys("{ENTER}") SLEEP (20)
$ReturnCode = SendKeys("{ENTER}")
:endofscript
|