Академический Документы
Профессиональный Документы
Культура Документы
</message>
</messages>
</console>
This tag contains the full list of messages
that are intended for display in the console.
These messages are defined by a list of
<message> tags.
7 Installing the Boot Partition Selector using SRFixMBR
About customizing the user interface
message id <message id=arguments>
Arguments:
</message>
<message id=no-action-
specified><!
-->No action was specified on the
command line
</message>
<message id=missing-cmd-line-
parameter>
Missing parameter for command line
argument: %0(=_missing_)
</message>
This tag consists of text only. All markup is
ignored except for hard breaks. To remove
unwanted white space, use commenting.
The <message id> tag identifies each
message and must be unique. In an XML
file, these tags are grouped according to
function.
For example:
Messages relating to errors during
command line parsing and Messages
relating Restore MBR use case.
The parameters %0 and %1 can be passed
by the SRFixMBR application parameter.
%2 corresponds to the name of the XML file
(SRFixMBR.xml).
console-
input
None <console-input>
<messages>
<message>
</message>
</messages>
<settings>
<setting .../>
</settings>
</console-input>
This tag defines the console input
configuration.
cmd-line-
arguments
None <cmd-line-arguments>
<cmd-line >
</cmd-line>
<argument >
</argument>
</cmd-line-arguments>
This tag contains other tags that pertain to
the command line arguments, help text,
and expected parameters and options.
These are either <cmd-line> tags or
<argument> tags.
Table 1-2 SRFixMBR.xml tags and attributes
Tag Attributes Usage Description
8 Installing the Boot Partition Selector using SRFixMBR
About customizing the user interface
Table 1-3 lists the possible values for attributes.Copyright 2005 Symantec Corporation.
cmd-line name
parameter
(optional)
<cmd-line name=description
parameter=required>
<help> </help>
</cmd-line>
This tag defines the argument that is
passed to a particular command that has
already been defined in a <cmd-line> tag. It
may contain a <help> tag.
cmd-line-
alias
name
alias
<cmd-line-alias name=source
alias=s/>
This tag lets shorter aliases be used for
<command-line> names.
restore-mbr None <restore-mbr>
<messages>
<message > </message>
</messages>
<settings>
<setting />
</settings>
</restore-mbr>
This tag contains a list of <message> tags
for messages relating to the Restore MBR
functionality. It lets MBR default settings
be defined within <setting> tags.
setting id
value
<setting id=timeout value=182/>
<setting id=target-disk-id
value=1/>
This tag sets values for particular ids.
Table 1-3 SRFixMBR.xml attribute values
Attribute Possible value
abort-server message
ids
use-case-error
Expects parameters %0 (use-case error message), %1 (application name), and %2 (error
file name).
fatal_error
Expects parameters %0 (application name), and %1 (error file name).
Table 1-2 SRFixMBR.xml tags and attributes
Tag Attributes Usage Description
9 Installing the Boot Partition Selector using SRFixMBR
About customizing the user interface
command-line
message ids
invalid-argument
Expects parameter %0 (replaced by the name of the argument).
empty-argument
missing-argument
Expects parameter %0 (required argument name).
invalid-parameter
Expects parameters %0 (replaced with the name of the argument) and %1, (replaced by
the parameter text, including an equal [=]sign).
missing-parameter
Expects parameter %0 (replaced by the name of the argument).
missing-parameter-value
Expects parameter %0 (replaced by the name of the argument).
missing-cmd-line-arguments
Expects parameter %2 (replaced by the name of the XML file).
missing-argument-alias-name
Expects parameters %2 (replaced by the name of the XML file), and %0 (replaced by the
alias name).
invalid-parameter-config
Expects parameters %0 (replaced by the argument name), %1 (replaced by the erroneous
text in the parameter attribute) and %2 (replaced by the name of the XML file).
console-input message
ids
echo-yes-response
echo-no-response
console-input settings
ids
yes-keys value Yy
Key presses that indicates a yes or affirmative action.
no-keys value Nn
Key presses that indicate a no or negative action.
Table 1-3 SRFixMBR.xml attribute values
Attribute Possible value
10 Installing the Boot Partition Selector using SRFixMBR
About customizing the user interface
console message ids usage-header
usage-common
command-usage
Expects parameter %0 (command help)
arguments
version
Expects parameters %0 (copyright notice) and %1 (version number).
cmd-line-arguments help
version
batch
restore-mbr message
ids
confirm
cmd-line-confirm
success
no-changes-have-been-made
invalid-target-disk-id
invalid-xml-defaults
Expects parameter %0 (replaced with a setting id, for example, timeout).
disk-access-denied
Table 1-3 SRFixMBR.xml attribute values
Attribute Possible value
11 Installing the Boot Partition Selector using SRFixMBR
About customizing the user interface
restore-mbr setting ids timeout value=182
Timeout. The clock ticks approximately 18 times per second: 18.2 = 1 sec.
extra-features value=3
Extra features is the OR of the following bits:
bit 0=0, only boot the active partition, do not prompt.
bit 1=0, do not use xint13 API.
bit 2=1, do not set the diagnostic partition type or make it active.
partition-identity-type value=18
Diagnostic partition identity type (decimal).
partition-boot-type value=12
Diagnostic partition boot type (decimal).
recovery-partition_index value=1
Recovery partition index (decimal 1 through 4)
user-partition-index value=2
User partition index (decimal 1 through 4)
You can use one of the following combinations, but not both:
partition-identity-type and partition-boot-type
recovery-partition-index and user-partition-index
If you use the index-based system then the recovery partition cannot be hidden.
prompt value=F2:
Prompt. This has a maximum of 6 bytes for the type-based system and 20 bytes for the
index-based system.
activation-key value=60
Activation key (decimal). For example, F2 = 60. This is the scan code of the key that was
pressed on the keyboard. Do not set to the Enter key (0x1c=28 decimal).
target-disk-id value=1
Target disk id (first disk = 1).
For more information on partition types and setting ids see the following site:
http://www.win.tue.nl/~aeb/partitions/partition_types-1.html
Table 1-3 SRFixMBR.xml attribute values
Attribute Possible value
Copyright 2006 Symantec Corporation. All rights
reserved.
Symantec and the Symantec logoare U.S. registered
trademarks of Symantec Corporation. Other brands and
products are trademarks of their respective holder/s.
12 Installing the Boot Partition Selector using SRFixMBR
About customizing the user interface