Basic functionality for dealing with the Windows Registry
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
APLSource :Include APLTreeUtils fixed Feb 18, 2019
Make Updated Make.dws Jan 13, 2019
.gitattributes acreconfig.txt renamed and `History `polished Jan 1, 2019
.gitignore `Make` polished (Dest==>Dist) Mar 15, 2018
EditReg.jpg Initial commit Feb 17, 2018
LICENSE Initial commit Feb 17, 2018 ReadMe polished Feb 22, 2018
acre.config :Include APLTreeUtils fixed Feb 18, 2019
publish.config :Include APLTreeUtils fixed Feb 18, 2019

Dealing with the Windows Registry

WinRegSimple is a member of the APLTree library. The library is a collection of classes etc. that aim to support the Dyalog APL programmer. Search GitHub for "apltree" and you will find solutions to many every-day problems Dyalog APL programmers might have to solve.


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.


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:

you can see this string:

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

at the top of the window.


: 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



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