Quantcast
Results 1 to 6 of 6

reading vista registry...urgent

  1. #1
    Unregistered Guest
    Enjoys Windows 7 Forums
     

    Exclamation reading vista registry...urgent

    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?

    Reply With Quote Reply With Quote

  2. #2
    kemical's Avatar
    kemical is offline Administrator
    Microsoft MVP
     
    Join Date
    Aug 2007
    Posts
    10,052

    Re: reading vista registry...urgent

    To be honest I haven't got a clue.. I think your just showing off myself ... Have you tried 'googling'?


    Wallpapers


    Reply With Quote Reply With Quote

  3. #3
    superbill is offline Senior Member
    Enjoys Windows 7 Forums
     
    Join Date
    Feb 2008
    Posts
    387

    Re: reading vista registry...urgent

    Hi



    Found this on a Google!


    After having a look at the code, I find that the Create member function of CLogin tries to create an ActiveX control with CLSID “{20DD1B9E-87C4-11D1-8BE3-0000F8754DA1}”, thus, you should make sure that this ActiveX control is properly registered on the system.

    All registered ActiveX control CLSIDs are stored under “HKEY_CLASSES_ROOT\CLSID”, if this ActiveX control is registered, there will be a register key “HKEY_CLASSES_ROOT\CLSID\ {20DD1B9E-87C4-11D1-8BE3-0000F8754DA1}”.

    Because this ActiveX control has been registered on your Windows 2000 system, thus, it works well. However, it hasn’t been registered on your Windows XP System, thus, it won’t work well.

    The project seems to act as an ActiveX container, thus, I suggest you modify the clsid member of CLogin to any existing ActiveX control CLSID.

    On the usage of CreateControl function, you can refer to
    http://msdn2.microsoft.com/en-us/library/2wyzh77w.aspx

    Hope this helps! Didn't understand any of it!!!!!!!!!!!!

    Reply With Quote Reply With Quote

  4. #4
    kemical's Avatar
    kemical is offline Administrator
    Microsoft MVP
     
    Join Date
    Aug 2007
    Posts
    10,052

    Re: reading vista registry...urgent

    Nice find superbill!


    Wallpapers


    Reply With Quote Reply With Quote

  5. #5
    Celestra's Avatar
    Celestra is offline Former Moderator
    Enjoys Windows 7 Forums
     
    Join Date
    Jan 2008
    Posts
    1,232
    Blog Entries
    4

    Re: reading vista registry...urgent

    Hi!! I personally wouldn't go to all that trouble to find an Active X. Usually my security finds anything wandering around in my system. I installed a program to clean out things like that, along with bad file paths and assorted etc. Just hit a button and all that stuff is taken care of.

    Reply With Quote Reply With Quote

  6. #6
    asta-la-vista is offline Junior Member
    Enjoys Windows 7 Forums
     
    Join Date
    Mar 2008
    Age
    51
    Posts
    4

    Re: reading vista registry...urgent

    Simple antidote...beg, borrow, steal (suggest pay) for UniBlue PowerSuite. It is the ultimate in system maintenance apps. If something has been changed, added or corrupted on your PC, this cerebrally-oriented prog will not only detect it, but fix it. Check this link: www.UniBluesoftware.com

    Reply With Quote Reply With Quote

Similar Threads

  1. How do I clean my Vista registry?
    By coolestjar in forum Windows Vista Discussion
    Replies: 10
    Last Post: 05-04-2012, 09:05 AM
  2. Replies: 3
    Last Post: 07-01-2010, 08:57 PM
  3. urgent help regarding windows vista ultimate 32bit
    By dearmoawiz in forum Windows Vista Installation
    Replies: 2
    Last Post: 03-17-2009, 01:38 PM
  4. Vista not reading disc burnt on mac using Toast
    By man_of_steel in forum Windows Vista Support
    Replies: 7
    Last Post: 08-01-2008, 02:30 PM
  5. Vista not reading cpu corectly
    By ravenlord in forum Hardware
    Replies: 0
    Last Post: 11-30-2007, 02:58 AM

Visitors found this page by searching for:

Search engine data is still being processed!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •