diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs index 67a074c6..cc16bca5 100644 --- a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs +++ b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerData.cs | |||
| @@ -18,6 +18,12 @@ namespace WixToolset.Data.WindowsInstaller | |||
| 18 | 18 | ||
| 19 | private static readonly Version CurrentVersion = new Version("4.0.0.0"); | 19 | private static readonly Version CurrentVersion = new Version("4.0.0.0"); |
| 20 | private const string WixOutputStreamName = "wix-wid.xml"; | 20 | private const string WixOutputStreamName = "wix-wid.xml"; |
| 21 | private static readonly XmlWriterSettings WriterSettings = new XmlWriterSettings | ||
| 22 | { | ||
| 23 | CheckCharacters = false, | ||
| 24 | CloseOutput = false, | ||
| 25 | OmitXmlDeclaration = true, | ||
| 26 | }; | ||
| 21 | 27 | ||
| 22 | /// <summary> | 28 | /// <summary> |
| 23 | /// Creates a new empty output object. | 29 | /// Creates a new empty output object. |
| @@ -83,7 +89,7 @@ namespace WixToolset.Data.WindowsInstaller | |||
| 83 | /// <param name="wixout">Container to save to.</param> | 89 | /// <param name="wixout">Container to save to.</param> |
| 84 | public void Save(WixOutput wixout) | 90 | public void Save(WixOutput wixout) |
| 85 | { | 91 | { |
| 86 | using (var writer = XmlWriter.Create(wixout.CreateDataStream(WixOutputStreamName))) | 92 | using (var writer = XmlWriter.Create(wixout.CreateDataStream(WixOutputStreamName), WriterSettings)) |
| 87 | { | 93 | { |
| 88 | this.Save(writer); | 94 | this.Save(writer); |
| 89 | } | 95 | } |
