Skip to content

Commit

Permalink
(GH-1505) clarify where to find invalid characters
Browse files Browse the repository at this point in the history
Keeping in mind this is an XML document and it does have Cdata
elements, give the user an area of concentration.
  • Loading branch information
ferventcoder committed Feb 26, 2018
1 parent 96522e4 commit a78322d
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@ public ChocolateyPackageInformation get_package_information(IPackage package)
var deserializationErrorMessage = @"
A corrupt .registry file exists at {0}.
Open this file in a text editor, and remove/escape any characters that
are regarded as illegal within XML contents. These are typically the
characters <, >, "", ', and &. Once these have been corrected, rename
the .registry.bad file to .registry. Once saved, try running the same
Chocolatey command that was just executed, so verify problem is fixed.
are regarded as illegal within XML strings not surrounded by CData.
These are typically the characters &, ', "", and `<`, `>`. Again, this
is an XML document, so you will see many < and > characters, so just
focus exclusively in the string values not surrounded by CData. Once
these have been corrected, rename the .registry.bad file to .registry.
Once saved, try running the same Chocolatey command that was just
executed, so verify problem is fixed.
NOTE: It will not be possible to rename the file in Windows Explorer.
Instead, you can use the following PowerShell command:
Move-Item .\.registry.bad .\.registry
Expand Down

0 comments on commit a78322d

Please sign in to comment.