Solved

Deleting registry key data value?

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

726 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