diff --git a/pages/linux/wine-reg-add.md b/pages/linux/wine-reg-add.md new file mode 100644 index 0000000000..d38e1f6ace --- /dev/null +++ b/pages/linux/wine-reg-add.md @@ -0,0 +1,32 @@ +# wine reg add + +> Add new keys and values to the Wine registry. +> More information: . + +- Add a new registry key: + +`wine reg add '{{HKEY_CURRENT_USER\path\to\key}}'` + +- Add a [v]alue with specific [d]ata under a key: + +`wine reg add '{{HKEY_CURRENT_USER\path\to\key}}' /v {{value_name}} /d {{data}}` + +- Add a value with a specific data [t]ype (defaults to `REG_SZ`): + +`wine reg add '{{HKEY_CURRENT_USER\path\to\key}}' /v {{value_name}} /t {{REG_SZ|REG_DWORD|REG_QWORD|REG_BINARY|REG_MULTI_SZ|REG_EXPAND_SZ|REG_NONE}} /d {{data}}` + +- Set the default (unnamed) value of a key: + +`wine reg add '{{HKEY_CURRENT_USER\path\to\key}}' /ve /d {{data}}` + +- Add a `REG_MULTI_SZ` value, specifying the string [s]eparator character: + +`wine reg add '{{HKEY_CURRENT_USER\path\to\key}}' /v {{value_name}} /t REG_MULTI_SZ /s {{#}} /d '{{string1#string2#string3}}'` + +- [f]orcefully overwrite an existing value without prompting for confirmation: + +`wine reg add '{{HKEY_CURRENT_USER\path\to\key}}' /v {{value_name}} /d {{data}} /f` + +- Display help: + +`wine reg add /?` diff --git a/pages/linux/wine-reg-copy.md b/pages/linux/wine-reg-copy.md new file mode 100644 index 0000000000..ab73f72422 --- /dev/null +++ b/pages/linux/wine-reg-copy.md @@ -0,0 +1,24 @@ +# wine reg copy + +> Copy a registry key to a new location within the Wine registry. +> More information: . + +- Copy a registry key to a new location: + +`wine reg copy '{{HKEY_CURRENT_USER\path\to\source_key}}' '{{HKEY_CURRENT_USER\path\to\destination_key}}'` + +- Recursively copy a key together with all its [s]ubkeys and values: + +`wine reg copy '{{HKEY_CURRENT_USER\path\to\source_key}}' '{{HKEY_CURRENT_USER\path\to\destination_key}}' /s` + +- [f]orcefully overwrite the destination without prompting for confirmation: + +`wine reg copy '{{HKEY_CURRENT_USER\path\to\source_key}}' '{{HKEY_CURRENT_USER\path\to\destination_key}}' /f` + +- Recursively and [f]orcefully copy a key, overwriting the destination: + +`wine reg copy '{{HKEY_CURRENT_USER\path\to\source_key}}' '{{HKEY_CURRENT_USER\path\to\destination_key}}' /s /f` + +- Display help: + +`wine reg copy /?` diff --git a/pages/linux/wine-reg-delete.md b/pages/linux/wine-reg-delete.md new file mode 100644 index 0000000000..e2bbf51608 --- /dev/null +++ b/pages/linux/wine-reg-delete.md @@ -0,0 +1,28 @@ +# wine reg delete + +> Delete keys and values from the Wine registry. +> More information: . + +- Delete a registry key and all of its values: + +`wine reg delete '{{HKEY_CURRENT_USER\path\to\key}}'` + +- Delete a specific [v]alue under a key: + +`wine reg delete '{{HKEY_CURRENT_USER\path\to\key}}' /v {{value_name}}` + +- Delete the default (unnamed) value of a key: + +`wine reg delete '{{HKEY_CURRENT_USER\path\to\key}}' /ve` + +- Delete all values under a key without removing the key itself: + +`wine reg delete '{{HKEY_CURRENT_USER\path\to\key}}' /va` + +- [f]orcefully delete without prompting for confirmation: + +`wine reg delete '{{HKEY_CURRENT_USER\path\to\key}}' /f` + +- Display help: + +`wine reg delete /?` diff --git a/pages/linux/wine-reg-query.md b/pages/linux/wine-reg-query.md new file mode 100644 index 0000000000..f6c2db103e --- /dev/null +++ b/pages/linux/wine-reg-query.md @@ -0,0 +1,24 @@ +# wine reg query + +> Display keys, values, and data in the Wine registry. +> More information: . + +- Display all values directly under a key: + +`wine reg query '{{HKEY_CURRENT_USER\path\to\key}}'` + +- Display a specific [v]alue of a key: + +`wine reg query '{{HKEY_CURRENT_USER\path\to\key}}' /v {{value_name}}` + +- Display the default (unnamed) value of a key: + +`wine reg query '{{HKEY_CURRENT_USER\path\to\key}}' /ve` + +- Recursively display a key together with all its [s]ubkeys and values: + +`wine reg query '{{HKEY_CURRENT_USER\path\to\key}}' /s` + +- Display help: + +`wine reg query /?` diff --git a/pages/linux/wine-reg.md b/pages/linux/wine-reg.md new file mode 100644 index 0000000000..2e512fe7ed --- /dev/null +++ b/pages/linux/wine-reg.md @@ -0,0 +1,33 @@ +# wine reg + +> Manage keys and their values in the Wine registry. +> Some subcommands such as `add`, `delete`, `query`, etc. have their own usage documentation. +> More information: . + +- Add or overwrite a value under a key (creating the key if needed): + +`wine reg add '{{HKEY_CURRENT_USER\path\to\key}}' /v {{value_name}} /d {{data}} /f` + +- Display the values stored under a key: + +`wine reg query '{{HKEY_CURRENT_USER\path\to\key}}'` + +- Delete a value from a key: + +`wine reg delete '{{HKEY_CURRENT_USER\path\to\key}}' /v {{value_name}} /f` + +- Copy a key and all its subkeys to a new location: + +`wine reg copy '{{HKEY_CURRENT_USER\path\to\source_key}}' '{{HKEY_CURRENT_USER\path\to\destination_key}}' /s` + +- Export a key and its subkeys to a `.reg` file: + +`wine reg export '{{HKEY_CURRENT_USER\path\to\key}}' {{path/to/file.reg}}` + +- Import registry entries from a `.reg` file: + +`wine reg import {{path/to/file.reg}}` + +- Display help: + +`wine reg /?`