Creating your own plugins

Published Wed 11 Aug, 22:05 by rjmoerland in General

View part:


Cleaning the registry

The registry section

The registry section is started on a new line. The registry section does not have
keywords, but instead it is composed of items, each on a new line, that tell Disk Cleaner what
registry key or value to remove. Such a line schematically looks like this:

ROOT_KEY|LIST_OF_SUBKEYS|VALUE

The ROOT_KEY can be HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE. HKEY_USERS or HKEY_CLASSES_ROOT.
The LIST_OF_SUBKEYS is the complete list of subkeys that lead to the final item, i.e.

 software\microsoft\windows\current version\explorer

If you leave away '|VALUE' (note the pipe
symbol), the complete key is removed together with subkeys. If you do place a '|' after the
list of keys but you leave VALUE blank, Disk Cleaner considers the item to be the default
value that is related to that key (be careful not to leave a space then, or Disk Cleaner will
look for a value called ' '). Otherwise fill in the name of the value that Disk Cleaner should
remove. Examples:

[registry]
HKEY_CURRENT_USER|Software\Microsoft\Office\10.0\Access\Settings
HKEY_CURRENT_USER|Software\Microsoft\Office\10.0\PowerPoint\Recent File List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent File List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent Page List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent Web List
HKEY_CURRENT_USER|Software\Microsoft\Office\10.0\Excel\Recent Files
HKEY_CURRENT_USER|Software\Microsoft\Office\10.0\Word\Data|settings
HKEY_CURRENT_USER|Software\Microsoft\Office\9.0\Access\Settings
HKEY_CURRENT_USER|Software\Microsoft\Office\9.0\PowerPoint\Recent File List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent File List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent Page List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent Web List
HKEY_CURRENT_USER|Software\Microsoft\Office\9.0\Excel\Recent Files
HKEY_CURRENT_USER|Software\Microsoft\Office\9.0\Word\Data|settings[/code]

Do not add comments to the registry section, and do not leave blank lines in between the
items.

A complete plug-in would now look like this:

[info]
Title=My plug-in title
Description=My first hand-made plug-in that currently looks a lot like an Office recent filescleaner:)

[registry]
HKEY_CURRENT_USER|Software\Microsoft\Office\10.0\Access\Settings
HKEY_CURRENT_USER|Software\Microsoft\Office\10.0\PowerPoint\Recent File List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent File List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent Page List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent Web List
HKEY_CURRENT_USER|Software\Microsoft\Office\10.0\Excel\Recent Files
HKEY_CURRENT_USER|Software\Microsoft\Office\10.0\Word\Data|settings
HKEY_CURRENT_USER|Software\Microsoft\Office\9.0\Access\Settings
HKEY_CURRENT_USER|Software\Microsoft\Office\9.0\PowerPoint\Recent File List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent File List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent Page List
HKEY_CURRENT_USER|Software\Microsoft\FrontPage\Explorer\FrontPage Explorer\Recent Web List
HKEY_CURRENT_USER|Software\Microsoft\Office\9.0\Excel\Recent Files
HKEY_CURRENT_USER|Software\Microsoft\Office\9.0\Word\Data|settings[/code]