Solved

Deleting registry key data value?

Posted on 2003-12-02
3
823 Views
Last Modified: 2010-08-05
Hi All,

How do I delete the registry key data value within vb6?

My Computer\HKEY_CURRENT_USER\Software\ABBYY\FREngine\5.0\License

Name: Agreement
Type: REG_SZ
Data: IGMGBOGEBB....

What is the function for this? Do I need to add any references to access the registry?
 
 
0
Comment
Question by:aljubicic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
ADSaunders earned 50 total points
ID: 9858349
Hi aljubicic,
You'll need to use the ADVAPI to do this, you'll find the API declarations in my post here:
http://www.experts-exchange.com/Programming/Q_20809103.html

Regards .. Alan
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9858552
dim WshShell
set WshShell = WScript.CreateObject ("WScript.Shell")
WshShell.RegDelete ("HKCU\\Software\\ABBYY\\FREngine\\5.0\\License")

0
 
LVL 9

Expert Comment

by:TooKoolKris
ID: 9862970
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."

Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\ABBYY\FREngine\5.0\License"

objReg.DeleteKey HKEY_CURRENT_USER, strKeyPath


0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question