aboutsummaryrefslogtreecommitdiff
path: root/src/wixext
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext')
-rw-r--r--src/wixext/UtilCompiler.cs13
-rw-r--r--src/wixext/UtilConstants.cs2
2 files changed, 9 insertions, 6 deletions
diff --git a/src/wixext/UtilCompiler.cs b/src/wixext/UtilCompiler.cs
index acd96e15..a5745b6c 100644
--- a/src/wixext/UtilCompiler.cs
+++ b/src/wixext/UtilCompiler.cs
@@ -549,7 +549,13 @@ namespace WixToolset.Util
549 549
550 this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element); 550 this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, element);
551 551
552 this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, UtilConstants.UtilBundleExtensionId); 552 var bundleExtensionId = this.ParseHelper.CreateIdentifierValueFromPlatform("Wix4UtilBundleExtension", this.Context.Platform, BurnPlatforms.X86 | BurnPlatforms.X64 | BurnPlatforms.ARM64);
553 if (bundleExtensionId == null)
554 {
555 this.Messaging.Write(ErrorMessages.UnsupportedPlatformForElement(sourceLineNumbers, this.Context.Platform.ToString(), element.Name.LocalName));
556 }
557
558 this.ParseHelper.CreateWixSearchSymbol(section, sourceLineNumbers, element.Name.LocalName, id, variable, condition, after, bundleExtensionId);
553 559
554 if (!this.Messaging.EncounteredError) 560 if (!this.Messaging.EncounteredError)
555 { 561 {
@@ -1498,10 +1504,9 @@ namespace WixToolset.Util
1498 section.AddSymbol(new RemoveFileSymbol(sourceLineNumbers, shortcutId) 1504 section.AddSymbol(new RemoveFileSymbol(sourceLineNumbers, shortcutId)
1499 { 1505 {
1500 ComponentRef = componentId, 1506 ComponentRef = componentId,
1501 DirProperty = directoryId, 1507 DirPropertyRef = directoryId,
1502 OnUninstall = true, 1508 OnUninstall = true,
1503 // TODO: A better way? 1509 FileName = name,
1504 FileName = this.ParseHelper.IsValidShortFilename(name, false) ? name : String.Concat(this.ParseHelper.CreateShortName(name, true, false, directoryId, name), "|", name),
1505 }); 1510 });
1506 } 1511 }
1507 1512
diff --git a/src/wixext/UtilConstants.cs b/src/wixext/UtilConstants.cs
index d9ad460f..28ff368f 100644
--- a/src/wixext/UtilConstants.cs
+++ b/src/wixext/UtilConstants.cs
@@ -13,7 +13,5 @@ namespace WixToolset.Util
13 internal static readonly string[] RegistryPermissions = { "Read", "Write", "CreateSubkeys", "EnumerateSubkeys", "Notify", "CreateLink" }; 13 internal static readonly string[] RegistryPermissions = { "Read", "Write", "CreateSubkeys", "EnumerateSubkeys", "Notify", "CreateLink" };
14 internal static readonly string[] ServicePermissions = { "ServiceQueryConfig", "ServiceChangeConfig", "ServiceQueryStatus", "ServiceEnumerateDependents", "ServiceStart", "ServiceStop", "ServicePauseContinue", "ServiceInterrogate", "ServiceUserDefinedControl" }; 14 internal static readonly string[] ServicePermissions = { "ServiceQueryConfig", "ServiceChangeConfig", "ServiceQueryStatus", "ServiceEnumerateDependents", "ServiceStart", "ServiceStop", "ServicePauseContinue", "ServiceInterrogate", "ServiceUserDefinedControl" };
15 internal static readonly string[] StandardPermissions = { "Delete", "ReadPermission", "ChangePermission", "TakeOwnership", "Synchronize" }; 15 internal static readonly string[] StandardPermissions = { "Delete", "ReadPermission", "ChangePermission", "TakeOwnership", "Synchronize" };
16
17 internal const string UtilBundleExtensionId = "WixUtilBundleExtension";
18 } 16 }
19} 17}