diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs | 60 |
1 files changed, 48 insertions, 12 deletions
diff --git a/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs b/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs index be8227f2..1ef5bb2e 100644 --- a/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs +++ b/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs | |||
| @@ -83,7 +83,7 @@ namespace WixToolset.Core.Burn.Bundles | |||
| 83 | writer.WriteAttributeString("DisplayName", this.BundleTuple.Name); | 83 | writer.WriteAttributeString("DisplayName", this.BundleTuple.Name); |
| 84 | writer.WriteAttributeString("LogPathVariable", this.BundleTuple.LogPathVariable); | 84 | writer.WriteAttributeString("LogPathVariable", this.BundleTuple.LogPathVariable); |
| 85 | writer.WriteAttributeString("Compressed", this.BundleTuple.Compressed == true ? "yes" : "no"); | 85 | writer.WriteAttributeString("Compressed", this.BundleTuple.Compressed == true ? "yes" : "no"); |
| 86 | writer.WriteAttributeString("BundleId", this.BundleTuple.BundleId.ToUpperInvariant()); | 86 | writer.WriteAttributeString("Id", this.BundleTuple.BundleId.ToUpperInvariant()); |
| 87 | writer.WriteAttributeString("UpgradeCode", this.BundleTuple.UpgradeCode); | 87 | writer.WriteAttributeString("UpgradeCode", this.BundleTuple.UpgradeCode); |
| 88 | writer.WriteAttributeString("PerMachine", this.BundleTuple.PerMachine ? "yes" : "no"); | 88 | writer.WriteAttributeString("PerMachine", this.BundleTuple.PerMachine ? "yes" : "no"); |
| 89 | 89 | ||
| @@ -98,12 +98,21 @@ namespace WixToolset.Core.Burn.Bundles | |||
| 98 | 98 | ||
| 99 | var size = package.PackageTuple.Size.ToString(CultureInfo.InvariantCulture); | 99 | var size = package.PackageTuple.Size.ToString(CultureInfo.InvariantCulture); |
| 100 | 100 | ||
| 101 | writer.WriteStartElement("WixBundleProperties"); | 101 | writer.WriteStartElement("WixPackageProperties"); |
| 102 | 102 | ||
| 103 | writer.WriteAttributeString("Package", package.PackageId); | 103 | writer.WriteAttributeString("Package", package.PackageId); |
| 104 | writer.WriteAttributeString("Vital", package.PackageTuple.Vital == true ? "yes" : "no"); | 104 | writer.WriteAttributeString("Vital", package.PackageTuple.Vital == true ? "yes" : "no"); |
| 105 | writer.WriteAttributeString("DisplayName", package.PackageTuple.DisplayName); | 105 | |
| 106 | writer.WriteAttributeString("Description", package.PackageTuple.Description); | 106 | if (!String.IsNullOrEmpty(package.PackageTuple.DisplayName)) |
| 107 | { | ||
| 108 | writer.WriteAttributeString("DisplayName", package.PackageTuple.DisplayName); | ||
| 109 | } | ||
| 110 | |||
| 111 | if (!String.IsNullOrEmpty(package.PackageTuple.Description)) | ||
| 112 | { | ||
| 113 | writer.WriteAttributeString("Description", package.PackageTuple.Description); | ||
| 114 | } | ||
| 115 | |||
| 107 | writer.WriteAttributeString("DownloadSize", size); | 116 | writer.WriteAttributeString("DownloadSize", size); |
| 108 | writer.WriteAttributeString("PackageSize", size); | 117 | writer.WriteAttributeString("PackageSize", size); |
| 109 | writer.WriteAttributeString("InstalledSize", package.PackageTuple.InstallSize?.ToString(CultureInfo.InvariantCulture) ?? size); | 118 | writer.WriteAttributeString("InstalledSize", package.PackageTuple.InstallSize?.ToString(CultureInfo.InvariantCulture) ?? size); |
| @@ -175,9 +184,22 @@ namespace WixToolset.Core.Burn.Bundles | |||
| 175 | writer.WriteAttributeString("Package", featureTuple.PackageRef); | 184 | writer.WriteAttributeString("Package", featureTuple.PackageRef); |
| 176 | writer.WriteAttributeString("Feature", featureTuple.Name); | 185 | writer.WriteAttributeString("Feature", featureTuple.Name); |
| 177 | writer.WriteAttributeString("Size", featureTuple.Size.ToString(CultureInfo.InvariantCulture)); | 186 | writer.WriteAttributeString("Size", featureTuple.Size.ToString(CultureInfo.InvariantCulture)); |
| 178 | writer.WriteAttributeString("Parent", featureTuple.Parent); | 187 | |
| 179 | writer.WriteAttributeString("Title", featureTuple.Title); | 188 | if (!String.IsNullOrEmpty(featureTuple.Parent)) |
| 180 | writer.WriteAttributeString("Description", featureTuple.Description); | 189 | { |
| 190 | writer.WriteAttributeString("Parent", featureTuple.Parent); | ||
| 191 | } | ||
| 192 | |||
| 193 | if (!String.IsNullOrEmpty(featureTuple.Title)) | ||
| 194 | { | ||
| 195 | writer.WriteAttributeString("Title", featureTuple.Title); | ||
| 196 | } | ||
| 197 | |||
| 198 | if (!String.IsNullOrEmpty(featureTuple.Description)) | ||
| 199 | { | ||
| 200 | writer.WriteAttributeString("Description", featureTuple.Description); | ||
| 201 | } | ||
| 202 | |||
| 181 | writer.WriteAttributeString("Display", featureTuple.Display.ToString(CultureInfo.InvariantCulture)); | 203 | writer.WriteAttributeString("Display", featureTuple.Display.ToString(CultureInfo.InvariantCulture)); |
| 182 | writer.WriteAttributeString("Level", featureTuple.Level.ToString(CultureInfo.InvariantCulture)); | 204 | writer.WriteAttributeString("Level", featureTuple.Level.ToString(CultureInfo.InvariantCulture)); |
| 183 | writer.WriteAttributeString("Directory", featureTuple.Directory); | 205 | writer.WriteAttributeString("Directory", featureTuple.Directory); |
| @@ -193,14 +215,28 @@ namespace WixToolset.Core.Burn.Bundles | |||
| 193 | 215 | ||
| 194 | foreach (var payloadTuple in payloadTuples) | 216 | foreach (var payloadTuple in payloadTuples) |
| 195 | { | 217 | { |
| 196 | writer.WriteStartElement("WixPackageFeatureInfo"); | 218 | writer.WriteStartElement("WixPayloadProperties"); |
| 219 | |||
| 220 | writer.WriteAttributeString("Payload", payloadTuple.Id.Id); | ||
| 221 | |||
| 222 | if (!String.IsNullOrEmpty(payloadTuple.PackageRef)) | ||
| 223 | { | ||
| 224 | writer.WriteAttributeString("Package", payloadTuple.PackageRef); | ||
| 225 | } | ||
| 226 | |||
| 227 | if (!String.IsNullOrEmpty(payloadTuple.ContainerRef)) | ||
| 228 | { | ||
| 229 | writer.WriteAttributeString("Container", payloadTuple.ContainerRef); | ||
| 230 | } | ||
| 197 | 231 | ||
| 198 | writer.WriteAttributeString("Id", payloadTuple.Id.Id); | ||
| 199 | writer.WriteAttributeString("Package", payloadTuple.PackageRef); | ||
| 200 | writer.WriteAttributeString("Container", payloadTuple.ContainerRef); | ||
| 201 | writer.WriteAttributeString("Name", payloadTuple.Name); | 232 | writer.WriteAttributeString("Name", payloadTuple.Name); |
| 202 | writer.WriteAttributeString("Size", payloadTuple.FileSize.ToString(CultureInfo.InvariantCulture)); | 233 | writer.WriteAttributeString("Size", payloadTuple.FileSize.ToString(CultureInfo.InvariantCulture)); |
| 203 | writer.WriteAttributeString("DownloadUrl", payloadTuple.DownloadUrl); | 234 | |
| 235 | if (!String.IsNullOrEmpty(payloadTuple.DownloadUrl)) | ||
| 236 | { | ||
| 237 | writer.WriteAttributeString("DownloadUrl", payloadTuple.DownloadUrl); | ||
| 238 | } | ||
| 239 | |||
| 204 | writer.WriteAttributeString("LayoutOnly", payloadTuple.LayoutOnly ? "yes" : "no"); | 240 | writer.WriteAttributeString("LayoutOnly", payloadTuple.LayoutOnly ? "yes" : "no"); |
| 205 | 241 | ||
| 206 | writer.WriteEndElement(); | 242 | writer.WriteEndElement(); |
