wine-reg, wine-reg-{add,copy,delete,query}: add page (#22913)

This commit is contained in:
Rafael Harana Mancilla
2026-06-22 05:37:50 +02:00
committed by GitHub
parent 455468d154
commit fbc03485eb
5 changed files with 141 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# wine reg add
> Add new keys and values to the Wine registry.
> More information: <https://gitlab.winehq.org/wine/wine/-/wikis/Commands>.
- 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 /?`
+24
View File
@@ -0,0 +1,24 @@
# wine reg copy
> Copy a registry key to a new location within the Wine registry.
> More information: <https://gitlab.winehq.org/wine/wine/-/wikis/Commands>.
- 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 /?`
+28
View File
@@ -0,0 +1,28 @@
# wine reg delete
> Delete keys and values from the Wine registry.
> More information: <https://gitlab.winehq.org/wine/wine/-/wikis/Commands>.
- 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 /?`
+24
View File
@@ -0,0 +1,24 @@
# wine reg query
> Display keys, values, and data in the Wine registry.
> More information: <https://gitlab.winehq.org/wine/wine/-/wikis/Commands>.
- 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 /?`
+33
View File
@@ -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: <https://gitlab.winehq.org/wine/wine/-/wikis/Commands>.
- 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 /?`