When I import a REG file with the following contents
Code: Select all
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Foo]
"Package"="{e8d067dd-5a12-4d49-9ab1-7d7d429c293b}"
Code: Select all
[\{]e8d067dd-5a12-4d49-9ab1-7d7d429c293b[\}]
Robert
Code: Select all
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Foo]
"Package"="{e8d067dd-5a12-4d49-9ab1-7d7d429c293b}"
Code: Select all
[\{]e8d067dd-5a12-4d49-9ab1-7d7d429c293b[\}]
Code: Select all
[\{] [\}]Ok I understand that. I can also understand that you need to use [\[] to include a left square bracket.Bogdan wrote:Hi,
This happens because of the way Windows Installer treats formated type values. For example: [\x] is replaced by the character x; in your case, to include a left and right brace ({}), you can useHere are more details about Windows Installer Formatted type.Code: Select all
[\{] [\}]
Regards,
Bogdan
Yes, the braces are reserved characters and must be escaped. You can read more about this here.But why are the curly braces ({ and }) placed inside square brackets? Do they have a special meaning ?
The relevant section says:Bogdan wrote:Hi,
Yes, the braces are reserved characters and must be escaped. You can read more about this here.But why are the curly braces ({ and }) placed inside square brackets? Do they have a special meaning ?
Regards,
Bogdan
Code: Select all
If a substring is enclosed in curly braces ({ }), and it contains no property names enclosed in square brackets ([ ]), the substring is left unchanged, including the curly braces.
If a substring is enclosed in curly braces ({ }) and it contains one or more property names enclosed in square brackets ([ ]) then, if all the property names are valid, the text (with the resolved substitutions) is displayed without the curly braces.
FOLLOW US
Get the latest news in Application Packaging