Removes an entry from the Windows system registry.
Built-in Function handler[]
Syntax:
deleteRegistry(<keyPath>)
Examples:
deleteRegistry("HKEY_CLASSES_ROOT\.txt\")
if not deleteRegistry(storedKey) then answer "Couldn't delete key."
Use the deleteRegistry function to uninstall a registry entry your application has previously installed.
- Tip:* To delete a subkey, use the setRegistry function to set the
subkey's value to empty.
On Mac OS and Unix systems, the deleteRegistry function returns "not supported".
- Warning:* Be careful to use only carefully debugged entries with the
deleteRegistry function., and be very certain you know all the ramifications of the entry you're removing. Removing entries from the Windows registry can cause the system to behave unexpectedly or stop functioning altogether.
Parameters:
- keyPath: The keyPath parameter is the path to a registry entry.
- Returns: The deleteRegistry function returns true if the entry wassuccessfully deleted, false otherwise.
- The result: If Windows sends an error message to the application, the error messageis returned in the result.
See also: queryRegistry (function),platform (function),