Solved

Deleting registry key data value?

Posted on 2003-12-02
3
821 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
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now