U
Unregistered
Guest
- Thread Author
- #1
hello,
i am facing a problem ad need an urgent solution....i wrote a shell script to read the registry to detect whether an activex control has been installed on a vista machine. the script is as follows:
-------
Option Explicit
Dim WshShell, datePickerFileName,fso
Const ForRead = 1
On Error Resume Next
Set WshShell = CreateObject("WScript.Shell")
datePickerFileName = WshShell.RegRead("HKEY_CLASSES_ROOT\CLSID\{20DD1B9E-87C4-11D1-8BE3-0000F8754DA1}\InprocServer32\")
If Err.number = 0 Then
Set fso = CreateObject("Scripting.FileSystemObject")
if Not fso.FileExists(datePickerFileName) Then
MsgBox "Date Picker component is not found...Please install one.."
Else
MsgBox "Date picker Component exists ... No need to do anything"
End if
Set fso = Nothing
Else
MsgBox "Date Picker component is not found...Please install one.."
End If
Set WshShell = Nothing
------
The problem that i am facing is that on reading the registry, Vista comes to know that i am reading the value of the activex component and it give me the pop up message: "". i dont want this pop up message to appear and i want to do it programmatically....how do i do the same?
i am facing a problem ad need an urgent solution....i wrote a shell script to read the registry to detect whether an activex control has been installed on a vista machine. the script is as follows:
-------
Option Explicit
Dim WshShell, datePickerFileName,fso
Const ForRead = 1
On Error Resume Next
Set WshShell = CreateObject("WScript.Shell")
datePickerFileName = WshShell.RegRead("HKEY_CLASSES_ROOT\CLSID\{20DD1B9E-87C4-11D1-8BE3-0000F8754DA1}\InprocServer32\")
If Err.number = 0 Then
Set fso = CreateObject("Scripting.FileSystemObject")
if Not fso.FileExists(datePickerFileName) Then
MsgBox "Date Picker component is not found...Please install one.."
Else
MsgBox "Date picker Component exists ... No need to do anything"
End if
Set fso = Nothing
Else
MsgBox "Date Picker component is not found...Please install one.."
End If
Set WshShell = Nothing
------
The problem that i am facing is that on reading the registry, Vista comes to know that i am reading the value of the activex component and it give me the pop up message: "". i dont want this pop up message to appear and i want to do it programmatically....how do i do the same?