Differences between revisions 1 and 37 (spanning 36 versions)
Revision 1 as of 2008-07-26 18:49:17
Size: 565
Editor: KaiJaeger
Comment:
Revision 37 as of 2017-06-25 09:07:27
Size: 2333
Editor: KaiJaeger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Dealing with the Windows Registry = = WinRegSimple: dealing with the Windows Registry =
{{{WinRegSimple}}} is part of the CategoryAplTree project.
Line 3: Line 4:
[[TableOfContents]] <<TableOfContents>>
Line 6: Line 7:
This class offers a limited range of methods useful to read, write and delete values from the Windows Registry without using .NET. It uses the [[https://en.wikipedia.org/wiki/Windows_Script_Host|Windows Scripting Host]]. Note that for safety reasons the Windows Script Host might not be available on your Windows box. If that is the case settle for `WinReg`.
Line 7: Line 9:
'''Currently under construction''' For an all-singing-all-dancing class see [[WinReg]] which is much more powerful. However, `WinReg` is a complex and large class. If `WinRegSimple` offers what you need stick with it.
Line 9: Line 11:
This class offers methods useful to deal with the Windows Registry without using .NET. == Terminology ==
To understand the names of the methods you need to understand the terminology. If you find the terminology strange: so do I, but it was invented by Microsoft and therefore defines the standard. That is the reason why I decided to go for it: it makes it easier to understand the Microsoft documentation but also to understand others while talking about the Windows Registry.
Line 11: Line 14:
Find out more by looking into the documentation [attachment:WinRegDocumentation.html] In this picture:

[[attachment:EditReg.jpg|{{attachment:EditReg.jpg|attachment:EditReg.jpg}}]]

you can see this string:

{{{HKEY_CURRENT_USER\Software\Dyalog\Dyalog APL/W 12.0 Unicode\AutoComplete}}}

at the top of the window.

=== HKEY_CURRENT_USER ===
This is called a "Main key". There are a number of pre-defined main keys available you can choose from. There is also a shortcut available: instead of '''HKEY_CURRENT_USER''' you can use '''HKCU'''.

=== SOFTWARE\Dyalog\Dyalog APL/W 12.0 Unicode ===
This is called a '''sub key'''.

On the right side you see a list. The entries in this list are called "values". Therefore '''!CancelKey1''' is a value.

Note that the '''''names''''' are called values; the actual data saved under a value is called "data".


== Shared Methods ==
{{{
Read
Write
Delete
}}}

== Restrictions ==

The `Write` method supports just two data types: REG_SZ and REG_DWORD.

== Project Page ==
For bug reports, future enhancements and a full version history see WinRegSimple/ProjectPage
Line 14: Line 50:
||Original author: ||KaiJaeger ||
||Responsible: ||KaiJaeger ||
||Email: || kai@aplteam.com ||
Line 15: Line 54:
||Original author:||KaiJaeger||
||Responsible:||KaiJaeger||
||Email:||kai@aplteam.com||
||Current state:||1.0||

== Download ==
Goto the [:WinRegDownloadPage:WinRegDownloadPage]
<<Include(APLTreeDownloads)>>
Line 24: Line 57:
CategoryOpenSourceApl CategoryAplAplDyalog CategoryAplTree

WinRegSimple: dealing with the Windows Registry

WinRegSimple is part of the CategoryAplTree project.

Overview

This class offers a limited range of methods useful to read, write and delete values from the Windows Registry without using .NET. It uses the Windows Scripting Host. Note that for safety reasons the Windows Script Host might not be available on your Windows box. If that is the case settle for WinReg.

For an all-singing-all-dancing class see WinReg which is much more powerful. However, WinReg is a complex and large class. If WinRegSimple offers what you need stick with it.

Terminology

To understand the names of the methods you need to understand the terminology. If you find the terminology strange: so do I, but it was invented by Microsoft and therefore defines the standard. That is the reason why I decided to go for it: it makes it easier to understand the Microsoft documentation but also to understand others while talking about the Windows Registry.

In this picture:

attachment:EditReg.jpg

you can see this string:

HKEY_CURRENT_USER\Software\Dyalog\Dyalog APL/W 12.0 Unicode\AutoComplete

at the top of the window.

HKEY_CURRENT_USER

This is called a "Main key". There are a number of pre-defined main keys available you can choose from. There is also a shortcut available: instead of HKEY_CURRENT_USER you can use HKCU.

SOFTWARE\Dyalog\Dyalog APL/W 12.0 Unicode

This is called a sub key.

On the right side you see a list. The entries in this list are called "values". Therefore CancelKey1 is a value.

Note that the names are called values; the actual data saved under a value is called "data".

Shared Methods

Read
Write
Delete

Restrictions

The Write method supports just two data types: REG_SZ and REG_DWORD.

Project Page

For bug reports, future enhancements and a full version history see WinRegSimple/ProjectPage

Version Information

Original author:

KaiJaeger

Responsible:

KaiJaeger

Email:

kai@aplteam.com


CategoryAplTree

WinRegSimple (last edited 2018-03-03 11:35:07 by KaiJaeger)