Windows Vista Programming A forum to discuss the challenges of programming under Windows Vista for experienced and aspiring programmers alike.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2008
Unregistered
Guest
 
Posts: n/a
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\{20DD1B9 E-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
  #2 (permalink)  
Old 03-26-2008
kemical's Avatar
WinVistaForums.com
 
Join Date: Aug 2007
Location: Middle Earth
Posts: 1,408
Blog Entries: 1
kemical has a reputation beyond reputekemical has a reputation beyond repute
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'?
__________________
AMD X2 BLACK EDITION 3.2GHz SAMURAI COOLER::GA-M51 MB-HEATPIPE CHIPSET COOLER::3GB XMS2 PC6400 RAM:: POWERCOLOR 4870 512MB::160GB BARRACUDA RAID 0::SOUNDBLASTER AUDIGY::SAMSUNG WRITEMASTER DVD-RW/PIONEER DVD::HIPER MODULAR 530W PSU::THERMALTAKE ARMOUR Jr CASE::RAZER COPPERHEAD MOUSE::VISTA HOME PREMIUM SP1

Reply With Quote
  #3 (permalink)  
Old 03-26-2008
WinVistaForums.com
 
Join Date: Feb 2008
Location: Scone rightful capital of Scotland.
Posts: 274
superbill has a spectacular aura about
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
  #4 (permalink)  
Old 03-26-2008
kemical's Avatar
WinVistaForums.com
 
Join Date: Aug 2007
Location: Middle Earth
Posts: 1,408
Blog Entries: 1
kemical has a reputation beyond reputekemical has a reputation beyond repute
Re: reading vista registry...urgent
Nice find superbill!
__________________
AMD X2 BLACK EDITION 3.2GHz SAMURAI COOLER::GA-M51 MB-HEATPIPE CHIPSET COOLER::3GB XMS2 PC6400 RAM:: POWERCOLOR 4870 512MB::160GB BARRACUDA RAID 0::SOUNDBLASTER AUDIGY::SAMSUNG WRITEMASTER DVD-RW/PIONEER DVD::HIPER MODULAR 530W PSU::THERMALTAKE ARMOUR Jr CASE::RAZER COPPERHEAD MOUSE::VISTA HOME PREMIUM SP1

Reply With Quote
  #5 (permalink)  
Old 03-26-2008
Celestra's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Riverside, CA (USA) Home of the Devil Winds
Posts: 385
Celestra has a spectacular aura about
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.
__________________
Celestra
Reply With Quote
  #6 (permalink)  
Old 03-30-2008
asta-la-vista's Avatar
Junior Member
 
Join Date: Mar 2008
Location: Indianapolis, IN, USA
Posts: 4
asta-la-vista is on a distinguished road
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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista bashing or just saying how it is? kemical Windows Vista Discussion 67 08-24-2008 02:20 PM
Vista not reading disc burnt on mac using Toast man_of_steel Windows Vista Multimedia 7 08-01-2008 02:30 PM
Vista not reading cpu corectly ravenlord Hardware 0 11-30-2007 02:58 AM
Windows Vista SP1 Beta can be downloaded with registry tweak Unregistered Windows Vista Discussion 4 11-12-2007 07:01 PM
Windows Vista Registry Error akhekomee Windows Vista Support 3 09-07-2007 07:17 PM





SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.