Platforms to show: All Mac Windows Linux Cross-Platform
Back to RegistryKeyMBS class.
RegistryKeyMBS.CopyTree(keyname as string, Dest as RegistryKeyMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Registry | MBS Win Plugin | 17.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Returns true on success and false on failure.
RegistryKeyMBS.CreateKey(name as string, Use64bitRegistry as boolean = false) as RegistryKeyMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Registry | MBS Win Plugin | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
If the key is allready present it is just opened.
Returns a registry key or nil on any error.
Use64bitRegistry: Pass true to create key in 64 bit view of the Registry instead of 32 bit view.
Some examples using this method:
RegistryKeyMBS.Delete(keyname as string) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Registry | MBS Win Plugin | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Windows 95: The Delete function deletes a subkey and all its descendants.
Windows NT: The Delete function deletes the specified subkey. The subkey to be deleted must not have subkeys.
With plugin version 3.2 the NT behavior is worked around to match the Windows 95 behavior. So all sub keys are deleted!
RegistryKeyMBS.DeleteTree(keyname as string) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Registry | MBS Win Plugin | 17.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Returns true on success and false on failure.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Registry | MBS Win Plugin | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
RegistryKeyMBS.Item(index as Integer) as RegistryKeyMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Registry | MBS Win Plugin | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
May return nil on any error like missing access rights.
Some keys can't be opened, but ItemName() may return the name of the key.
See also:
RegistryKeyMBS.Item(name as string) as RegistryKeyMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Registry | MBS Win Plugin | 10.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
May return nil on any error like missing access rights.
Some keys can't be opened, but ItemName() may return the name of the key.
See also:
RegistryKeyMBS.ItemName(index as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Registry | MBS Win Plugin | 6.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
May return "" on any error.
RegistryKeyMBS.Value(index as Integer) as RegistryValueMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Registry | MBS Win Plugin | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
See also:
RegistryKeyMBS.Value(name as string) as RegistryValueMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Registry | MBS Win Plugin | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
The value must not exists. So use this function to make a new key.
Use an empty name (e.g. "") for the default key value.
This method was named ValueItem in plugin version before 10.4.
See also:
RegistryKeyMBS.ValueName(index as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Windows Registry | MBS Win Plugin | 10.4 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
May return "" on any error.
Some examples using this method:
The items on this page are in the following plugins: MBS Win Plugin.
