2008-03-19 06:36:28 +00:00
|
|
|
/*
|
|
|
|
* REG.EXE - Wine-compatible reg program.
|
|
|
|
*
|
|
|
|
* Copyright 2008 Andrew Riedi
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2017-08-18 09:29:44 +00:00
|
|
|
#include "resource.h"
|
2009-07-01 22:29:26 +00:00
|
|
|
|
2013-11-05 16:53:42 +00:00
|
|
|
#pragma makedep po
|
|
|
|
|
2008-03-19 06:36:28 +00:00
|
|
|
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
|
|
|
|
|
|
|
|
STRINGTABLE
|
|
|
|
{
|
2016-05-24 12:48:37 +00:00
|
|
|
STRING_USAGE, "Usage:\n\
|
|
|
|
\ REG [operation] [parameters]\n\n\
|
|
|
|
\Supported operations:\n\
|
2021-05-17 13:41:05 +00:00
|
|
|
\ ADD | COPY | DELETE | EXPORT | IMPORT | QUERY\n\n\
|
2016-05-24 12:48:37 +00:00
|
|
|
\For help on a specific operation, type:\n\
|
|
|
|
\ REG [operation] /?\n\n"
|
2021-03-24 08:09:02 +00:00
|
|
|
|
|
|
|
STRING_ADD_USAGE, "REG ADD <key> [/v value_name | /ve] [/t type] [/s separator] [/d data] [/f]\n\n\
|
|
|
|
\ Adds a key to the registry or adds a new value to a given registry key.\n\n\
|
|
|
|
\ <key>\n\
|
|
|
|
\ The registry key to add or, if either [/v] or [/ve] is specified,\n\
|
|
|
|
\ the key in which to add the new registry data.\n\n\
|
|
|
|
\ Format: ROOT\\Subkey\n\n\
|
|
|
|
\ ROOT: A predefined registry key. This must be one of the following:\n\n\
|
|
|
|
\ HKEY_LOCAL_MACHINE | HKLM\n\
|
|
|
|
\ HKEY_CURRENT_USER | HKCU\n\
|
|
|
|
\ HKEY_CLASSES_ROOT | HKCR\n\
|
|
|
|
\ HKEY_USERS | HKU\n\
|
|
|
|
\ HKEY_CURRENT_CONFIG | HKCC\n\n\
|
|
|
|
\ Subkey: The full path to a registry key under a given ROOT key.\n\n\
|
|
|
|
\ /v <value_name>\n\
|
|
|
|
\ The name of the registry value to add.\n\n\
|
|
|
|
\ /ve\n\
|
|
|
|
\ Add an unnamed registry value. This option modifies the (Default)\n\
|
|
|
|
\ registry value.\n\n\
|
|
|
|
\ /t <type>\n\
|
|
|
|
\ The type of data to add to the registry. If [/t] is specified,\n\
|
|
|
|
\ <type> must be one of the following:\n\n\
|
|
|
|
\ REG_SZ | REG_MULTI_SZ | REG_EXPAND_SZ\n\
|
2022-06-23 21:21:25 +00:00
|
|
|
\ REG_DWORD | REG_QWORD | REG_BINARY | REG_NONE\n\n\
|
2021-03-24 08:09:02 +00:00
|
|
|
\ If [/t] is not specified, the default data type is REG_SZ.\n\n\
|
|
|
|
\ /s <separator>\n\
|
|
|
|
\ The character used to separate strings in REG_MULTI_SZ data.\n\
|
|
|
|
\ If [/s] is not specified, the default separator is \\0.\n\n\
|
|
|
|
\ /d <data>\n\
|
|
|
|
\ The data to add to the new registry value.\n\n\
|
|
|
|
\ /f\n\
|
|
|
|
\ Modify the registry without prompting for confirmation.\n\n"
|
|
|
|
|
|
|
|
STRING_DELETE_USAGE, "REG DELETE <key> [/v value_name | /ve | /va] [/f]\n\n\
|
|
|
|
\ Deletes a registry key (including all subkeys and values), or deletes\n\
|
|
|
|
\ one or more values from a given registry key.\n\n\
|
|
|
|
\ <key>\n\
|
|
|
|
\ The registry key to delete or, if one of [/v], [/ve] or [/va] is\n\
|
|
|
|
\ specified, the registry key in which to delete one or more values.\n\n\
|
|
|
|
\ Format: ROOT\\Subkey\n\n\
|
|
|
|
\ ROOT: A predefined registry key. This must be one of the following:\n\n\
|
|
|
|
\ HKEY_LOCAL_MACHINE | HKLM\n\
|
|
|
|
\ HKEY_CURRENT_USER | HKCU\n\
|
|
|
|
\ HKEY_CLASSES_ROOT | HKCR\n\
|
|
|
|
\ HKEY_USERS | HKU\n\
|
|
|
|
\ HKEY_CURRENT_CONFIG | HKCC\n\n\
|
|
|
|
\ Subkey: The full path to a registry key under a given ROOT key.\n\n\
|
|
|
|
\ /v <value_name>\n\
|
|
|
|
\ The name of the registry value to delete.\n\n\
|
|
|
|
\ /ve\n\
|
|
|
|
\ Delete an unnamed registry value. This option deletes the (Default)\n\
|
|
|
|
\ registry value.\n\n\
|
|
|
|
\ /va\n\
|
|
|
|
\ Delete all values from a registry key.\n\n\
|
|
|
|
\ /f\n\
|
|
|
|
\ Delete a registry key (including all subkeys and values) without\n\
|
|
|
|
\ prompting for confirmation.\n\n"
|
|
|
|
|
|
|
|
STRING_QUERY_USAGE, "REG QUERY <key> [/v value_name | /ve] [/s]\n\n\
|
|
|
|
\ Queries a specified registry key and lists all immediate subkeys, values\n\
|
|
|
|
\ and data within that key. Use [/s] to recursively query each subkey.\n\n\
|
|
|
|
\ <key>\n\
|
|
|
|
\ The registry key to query.\n\n\
|
|
|
|
\ Format: ROOT\\Subkey\n\n\
|
|
|
|
\ ROOT: A predefined registry key. This must be one of the following:\n\n\
|
|
|
|
\ HKEY_LOCAL_MACHINE | HKLM\n\
|
|
|
|
\ HKEY_CURRENT_USER | HKCU\n\
|
|
|
|
\ HKEY_CLASSES_ROOT | HKCR\n\
|
|
|
|
\ HKEY_USERS | HKU\n\
|
|
|
|
\ HKEY_CURRENT_CONFIG | HKCC\n\n\
|
|
|
|
\ Subkey: The full path to a registry key under a given ROOT key.\n\n\
|
|
|
|
\ /v <value_name>\n\
|
|
|
|
\ The name of the registry value to query. If neither [/v] nor [/ve] is\n\
|
|
|
|
\ specified, all values under <key> are listed.\n\n\
|
|
|
|
\ /ve\n\
|
|
|
|
\ Query an unnamed registry value. This option queries the (Default)\n\
|
|
|
|
\ registry value.\n\n\
|
|
|
|
\ /s\n\
|
|
|
|
\ List all registry entries under <key> and its subkeys.\n\n"
|
|
|
|
|
2021-04-01 12:20:51 +00:00
|
|
|
STRING_SUCCESS, "reg: The operation completed successfully\n"
|
2021-03-24 08:09:02 +00:00
|
|
|
STRING_INVALID_KEY, "reg: Invalid registry key\n"
|
2016-02-09 11:54:06 +00:00
|
|
|
STRING_INVALID_CMDLINE, "reg: Invalid command line parameters\n"
|
|
|
|
STRING_NO_REMOTE, "reg: Unable to access remote machine\n"
|
2021-04-01 12:20:52 +00:00
|
|
|
STRING_VALUE_NONEXIST, "reg: Unable to find the specified registry value\n"
|
2016-02-09 11:54:06 +00:00
|
|
|
STRING_UNSUPPORTED_TYPE, "reg: Unsupported registry data type [%1]\n"
|
2021-05-12 12:24:25 +00:00
|
|
|
STRING_MISSING_NUMBER, "reg: The option [/d] must be followed by a valid numeric value\n"
|
2016-02-09 11:54:04 +00:00
|
|
|
STRING_MISSING_HEXDATA, "reg: The option [/d] must be followed by a valid hexadecimal value\n"
|
|
|
|
STRING_UNHANDLED_TYPE, "reg: Unhandled registry data type [/t 0x%1!x!, /d %2]\n"
|
2016-02-09 11:54:07 +00:00
|
|
|
STRING_OVERWRITE_VALUE, "The registry value '%1' already exists. Do you want to overwrite it?"
|
|
|
|
STRING_YES, "#msgctxt#Yes key#Y"
|
|
|
|
STRING_NO, "#msgctxt#No key#N"
|
2021-06-03 13:32:26 +00:00
|
|
|
STRING_ALL, "#msgctxt#All key#A"
|
|
|
|
STRING_YESNO, " (Yes|No)"
|
|
|
|
STRING_YESNOALL, " (Yes|No|All)"
|
2021-04-01 12:20:51 +00:00
|
|
|
STRING_CANCELLED, "reg: The registry operation was cancelled\n"
|
2016-02-10 11:23:17 +00:00
|
|
|
STRING_DEFAULT_VALUE, "(Default)"
|
2016-02-10 11:23:18 +00:00
|
|
|
STRING_DELETE_VALUE, "Are you sure you want to delete the registry value '%1'?"
|
|
|
|
STRING_DELETE_VALUEALL, "Are you sure you want to delete all registry values in '%1'?"
|
|
|
|
STRING_DELETE_SUBKEY, "Are you sure you want to delete the registry key '%1'?"
|
2016-02-29 04:54:21 +00:00
|
|
|
STRING_INVALID_STRING, "reg: The option [/d] must be followed by a valid string\n"
|
2021-05-12 12:24:24 +00:00
|
|
|
STRING_VALUEALL_FAILED, "reg: Unable to delete all registry values in '%1'\n"
|
2016-05-02 12:06:23 +00:00
|
|
|
STRING_MATCHES_FOUND, "Search complete. Number of matches found: %1!d!\n"
|
2016-05-24 12:48:26 +00:00
|
|
|
STRING_INVALID_SYNTAX, "reg: Invalid syntax. "
|
|
|
|
STRING_INVALID_OPTION, "reg: Invalid option [%1]. "
|
|
|
|
STRING_REG_HELP, "Type \"REG /?\" for help.\n"
|
2016-05-24 12:48:48 +00:00
|
|
|
STRING_FUNC_HELP, "Type \"REG %1 /?\" for help.\n"
|
2016-07-21 07:36:44 +00:00
|
|
|
STRING_VALUE_NOT_SET, "(value not set)"
|
2021-03-24 08:09:02 +00:00
|
|
|
|
|
|
|
STRING_IMPORT_USAGE, "REG IMPORT <file>\n\n\
|
|
|
|
\ Imports keys, values and data from a given file into the registry.\n\n\
|
|
|
|
\ <file>\n\
|
|
|
|
\ The name and path of the registry file to import.\n\n"
|
|
|
|
|
2017-08-18 09:30:04 +00:00
|
|
|
STRING_FILE_NOT_FOUND, "reg: The file '%1' was not found.\n"
|
2017-08-18 09:30:17 +00:00
|
|
|
STRING_ESCAPE_SEQUENCE, "reg: Unrecognized escape sequence [\\%1!c!]\n"
|
2021-03-24 08:09:02 +00:00
|
|
|
|
|
|
|
STRING_EXPORT_USAGE, "REG EXPORT <key> <file> [/y]\n\n\
|
|
|
|
\ Exports a specified registry key (including all subkeys and values)\n\
|
|
|
|
\ to a file.\n\n\
|
|
|
|
\ <key>\n\
|
|
|
|
\ The registry key to export.\n\n\
|
|
|
|
\ Format: ROOT\\Subkey\n\n\
|
|
|
|
\ ROOT: A predefined registry key. This must be one of the following:\n\n\
|
|
|
|
\ HKEY_LOCAL_MACHINE | HKLM\n\
|
|
|
|
\ HKEY_CURRENT_USER | HKCU\n\
|
|
|
|
\ HKEY_CLASSES_ROOT | HKCR\n\
|
|
|
|
\ HKEY_USERS | HKU\n\
|
|
|
|
\ HKEY_CURRENT_CONFIG | HKCC\n\n\
|
|
|
|
\ Subkey: The full path to a registry key under a given ROOT key.\n\n\
|
|
|
|
\ <file>\n\
|
|
|
|
\ The name and path of the registry file that will be created.\n\
|
|
|
|
\ This file must have a .reg extension.\n\n\
|
|
|
|
\ /y\n\
|
|
|
|
\ Overwrite <file> without prompting for confirmation.\n\n"
|
|
|
|
|
2021-04-20 13:21:58 +00:00
|
|
|
STRING_INVALID_SYSTEM_KEY, "reg: Invalid system key\n"
|
2017-12-03 06:50:15 +00:00
|
|
|
STRING_OVERWRITE_FILE, "The file '%1' already exists. Do you want to overwrite it?"
|
2021-04-01 12:20:49 +00:00
|
|
|
STRING_KEY_NONEXIST, "reg: Unable to find the specified registry key\n"
|
2021-04-01 12:20:50 +00:00
|
|
|
STRING_KEY_IMPORT_FAILED, "reg: Unable to import the registry key '%1'\n"
|
2021-05-17 13:41:05 +00:00
|
|
|
|
2021-04-08 12:10:54 +00:00
|
|
|
STRING_REG_VIEW_USAGE, " /reg:32\n\
|
|
|
|
\ Access the registry using the 32-bit view.\n\n\
|
|
|
|
\ /reg:64\n\
|
|
|
|
\ Access the registry using the 64-bit view.\n\n"
|
2021-04-29 13:31:47 +00:00
|
|
|
STRING_ACCESS_DENIED, "reg: Unable to access or create the specified registry key\n"
|
2021-05-17 13:41:05 +00:00
|
|
|
|
|
|
|
STRING_COPY_USAGE, "REG COPY <key1> <key2> [/s] [/f]\n\n\
|
|
|
|
\ Copies the contents of a specified registry key to another location.\n\
|
|
|
|
\ By default, this operation only copies registry values. Use [/s] to\n\
|
|
|
|
\ recursively copy all subkeys and values.\n\n\
|
|
|
|
\ <key1>, <key2>\n\
|
|
|
|
\ Registry keys specifying the source (<key1>) and destination (<key2>)\n\
|
|
|
|
\ of the data. If <key2> does not exist, it is created.\n\n\
|
|
|
|
\ Format: ROOT\\Subkey\n\n\
|
|
|
|
\ ROOT: A predefined registry key. This must be one of the following:\n\n\
|
|
|
|
\ HKEY_LOCAL_MACHINE | HKLM\n\
|
|
|
|
\ HKEY_CURRENT_USER | HKCU\n\
|
|
|
|
\ HKEY_CLASSES_ROOT | HKCR\n\
|
|
|
|
\ HKEY_USERS | HKU\n\
|
|
|
|
\ HKEY_CURRENT_CONFIG | HKCC\n\n\
|
|
|
|
\ Subkey: The full path to a registry key under a given ROOT key.\n\n\
|
|
|
|
\ /s\n\
|
|
|
|
\ Copy all subkeys and values from <key1> to <key2>.\n\n\
|
|
|
|
\ /f\n\
|
|
|
|
\ Overwrite all registry data in <key2> without prompting for confirmation.\n\
|
|
|
|
\ This option does not modify subkeys and values that only exist in <key2>.\n\n"
|
2021-05-31 09:45:24 +00:00
|
|
|
|
|
|
|
STRING_COPY_SRC_DEST_SAME, "reg: The source and destination keys cannot be the same\n"
|
2021-06-03 13:32:26 +00:00
|
|
|
STRING_COPY_CONFIRM, "The value '%1\\%2' already exists in the destination key. Do you want to overwrite it?"
|
2008-03-19 06:36:28 +00:00
|
|
|
}
|