aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2020-09-06 21:09:19 -0400
committerBob Arnson <bob@firegiant.com>2020-09-06 21:13:01 -0400
commit3f05c650723ecd0a8fe7ab151c67db6c13cb5d75 (patch)
tree0e53fd0b2aac76716fc1a3407c6b0d40c95693eb
parentcb6bd363baef3a7d458dfda053b94131420822f0 (diff)
downloadwix-3f05c650723ecd0a8fe7ab151c67db6c13cb5d75.tar.gz
wix-3f05c650723ecd0a8fe7ab151c67db6c13cb5d75.tar.bz2
wix-3f05c650723ecd0a8fe7ab151c67db6c13cb5d75.zip
Replace BinaryKey with BinaryRef and FileKey with FileRef.
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Decompile/Decompiler.cs4
-rw-r--r--src/WixToolset.Core/Compiler.cs20
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/CustomActionCycle.wxs9
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/SimpleCustomAction.wxs5
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/UnscheduledCustomAction.wxs7
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/TestData/Wixipl/Package.wxs2
6 files changed, 22 insertions, 25 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Decompile/Decompiler.cs b/src/WixToolset.Core.WindowsInstaller/Decompile/Decompiler.cs
index 591ff5ef..e471d924 100644
--- a/src/WixToolset.Core.WindowsInstaller/Decompile/Decompiler.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Decompile/Decompiler.cs
@@ -3997,12 +3997,12 @@ namespace WixToolset.Core.WindowsInstaller
3997 switch (source) 3997 switch (source)
3998 { 3998 {
3999 case WindowsInstallerConstants.MsidbCustomActionTypeBinaryData: 3999 case WindowsInstallerConstants.MsidbCustomActionTypeBinaryData:
4000 xCustomAction.SetAttributeValue("BinaryKey", row.FieldAsString(2)); 4000 xCustomAction.SetAttributeValue("BinaryRef", row.FieldAsString(2));
4001 break; 4001 break;
4002 case WindowsInstallerConstants.MsidbCustomActionTypeSourceFile: 4002 case WindowsInstallerConstants.MsidbCustomActionTypeSourceFile:
4003 if (!row.IsColumnNull(2)) 4003 if (!row.IsColumnNull(2))
4004 { 4004 {
4005 xCustomAction.SetAttributeValue("FileKey", row.FieldAsString(2)); 4005 xCustomAction.SetAttributeValue("FileRef", row.FieldAsString(2));
4006 } 4006 }
4007 break; 4007 break;
4008 case WindowsInstallerConstants.MsidbCustomActionTypeDirectory: 4008 case WindowsInstallerConstants.MsidbCustomActionTypeDirectory:
diff --git a/src/WixToolset.Core/Compiler.cs b/src/WixToolset.Core/Compiler.cs
index 2ef85ff0..7be581bc 100644
--- a/src/WixToolset.Core/Compiler.cs
+++ b/src/WixToolset.Core/Compiler.cs
@@ -3159,10 +3159,10 @@ namespace WixToolset.Core
3159 case "Id": 3159 case "Id":
3160 id = this.Core.GetAttributeIdentifier(sourceLineNumbers, attrib); 3160 id = this.Core.GetAttributeIdentifier(sourceLineNumbers, attrib);
3161 break; 3161 break;
3162 case "BinaryKey": 3162 case "BinaryRef":
3163 if (null != source) 3163 if (null != source)
3164 { 3164 {
3165 this.Core.Write(ErrorMessages.CustomActionMultipleSources(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "BinaryKey", "Directory", "FileKey", "Property", "Script")); 3165 this.Core.Write(ErrorMessages.CustomActionMultipleSources(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "BinaryRef", "Directory", "FileRef", "Property", "Script"));
3166 } 3166 }
3167 source = this.Core.GetAttributeIdentifierValue(sourceLineNumbers, attrib); 3167 source = this.Core.GetAttributeIdentifierValue(sourceLineNumbers, attrib);
3168 sourceType = CustomActionSourceType.Binary; 3168 sourceType = CustomActionSourceType.Binary;
@@ -3171,7 +3171,7 @@ namespace WixToolset.Core
3171 case "Directory": 3171 case "Directory":
3172 if (null != source) 3172 if (null != source)
3173 { 3173 {
3174 this.Core.Write(ErrorMessages.CustomActionMultipleSources(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "BinaryKey", "Directory", "FileKey", "Property", "Script")); 3174 this.Core.Write(ErrorMessages.CustomActionMultipleSources(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "BinaryKey", "Directory", "FileRef", "Property", "Script"));
3175 } 3175 }
3176 source = this.Core.CreateDirectoryReferenceFromInlineSyntax(sourceLineNumbers, attrib, null); 3176 source = this.Core.CreateDirectoryReferenceFromInlineSyntax(sourceLineNumbers, attrib, null);
3177 sourceType = CustomActionSourceType.Directory; 3177 sourceType = CustomActionSourceType.Directory;
@@ -3239,10 +3239,10 @@ namespace WixToolset.Core
3239 break; 3239 break;
3240 } 3240 }
3241 break; 3241 break;
3242 case "FileKey": 3242 case "FileRef":
3243 if (null != source) 3243 if (null != source)
3244 { 3244 {
3245 this.Core.Write(ErrorMessages.CustomActionMultipleSources(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "BinaryKey", "Directory", "FileKey", "Property", "Script")); 3245 this.Core.Write(ErrorMessages.CustomActionMultipleSources(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "BinaryRef", "Directory", "FileRef", "Property", "Script"));
3246 } 3246 }
3247 source = this.Core.GetAttributeIdentifierValue(sourceLineNumbers, attrib); 3247 source = this.Core.GetAttributeIdentifierValue(sourceLineNumbers, attrib);
3248 sourceType = CustomActionSourceType.File; 3248 sourceType = CustomActionSourceType.File;
@@ -3268,7 +3268,7 @@ namespace WixToolset.Core
3268 case "Property": 3268 case "Property":
3269 if (null != source) 3269 if (null != source)
3270 { 3270 {
3271 this.Core.Write(ErrorMessages.CustomActionMultipleSources(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "BinaryKey", "Directory", "FileKey", "Property", "Script")); 3271 this.Core.Write(ErrorMessages.CustomActionMultipleSources(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "BinaryRef", "Directory", "FileRef", "Property", "Script"));
3272 } 3272 }
3273 source = this.Core.GetAttributeValue(sourceLineNumbers, attrib); 3273 source = this.Core.GetAttributeValue(sourceLineNumbers, attrib);
3274 sourceType = CustomActionSourceType.Property; 3274 sourceType = CustomActionSourceType.Property;
@@ -3299,7 +3299,7 @@ namespace WixToolset.Core
3299 case "Script": 3299 case "Script":
3300 if (null != source) 3300 if (null != source)
3301 { 3301 {
3302 this.Core.Write(ErrorMessages.CustomActionMultipleSources(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "BinaryKey", "Directory", "FileKey", "Property", "Script")); 3302 this.Core.Write(ErrorMessages.CustomActionMultipleSources(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "BinaryRef", "Directory", "FileRef", "Property", "Script"));
3303 } 3303 }
3304 3304
3305 if (null != target) 3305 if (null != target)
@@ -3394,7 +3394,7 @@ namespace WixToolset.Core
3394 { 3394 {
3395 if (null == source) 3395 if (null == source)
3396 { 3396 {
3397 this.Core.Write(ErrorMessages.IllegalAttributeWithoutOtherAttributes(sourceLineNumbers, node.Name.LocalName, "VBScriptCall", "BinaryKey", "FileKey", "Property")); 3397 this.Core.Write(ErrorMessages.IllegalAttributeWithoutOtherAttributes(sourceLineNumbers, node.Name.LocalName, "VBScriptCall", "BinaryRef", "FileRef", "Property"));
3398 } 3398 }
3399 else if (CustomActionSourceType.Directory == sourceType) 3399 else if (CustomActionSourceType.Directory == sourceType)
3400 { 3400 {
@@ -3405,7 +3405,7 @@ namespace WixToolset.Core
3405 { 3405 {
3406 if (null == source) 3406 if (null == source)
3407 { 3407 {
3408 this.Core.Write(ErrorMessages.IllegalAttributeWithoutOtherAttributes(sourceLineNumbers, node.Name.LocalName, "JScriptCall", "BinaryKey", "FileKey", "Property")); 3408 this.Core.Write(ErrorMessages.IllegalAttributeWithoutOtherAttributes(sourceLineNumbers, node.Name.LocalName, "JScriptCall", "BinaryRef", "FileRef", "Property"));
3409 } 3409 }
3410 else if (CustomActionSourceType.Directory == sourceType) 3410 else if (CustomActionSourceType.Directory == sourceType)
3411 { 3411 {
@@ -3416,7 +3416,7 @@ namespace WixToolset.Core
3416 { 3416 {
3417 if (null == source) 3417 if (null == source)
3418 { 3418 {
3419 this.Core.Write(ErrorMessages.IllegalAttributeWithoutOtherAttributes(sourceLineNumbers, node.Name.LocalName, "ExeCommand", "BinaryKey", "Directory", "FileKey", "Property")); 3419 this.Core.Write(ErrorMessages.IllegalAttributeWithoutOtherAttributes(sourceLineNumbers, node.Name.LocalName, "ExeCommand", "BinaryRef", "Directory", "FileRef", "Property"));
3420 } 3420 }
3421 } 3421 }
3422 else if (CustomActionTargetType.TextData == targetType && CustomActionSourceType.Directory != sourceType && CustomActionSourceType.Property != sourceType && CustomActionSourceType.File != sourceType) 3422 else if (CustomActionTargetType.TextData == targetType && CustomActionSourceType.Directory != sourceType && CustomActionSourceType.Property != sourceType && CustomActionSourceType.File != sourceType)
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/CustomActionCycle.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/CustomActionCycle.wxs
index 56c07eb9..be991c65 100644
--- a/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/CustomActionCycle.wxs
+++ b/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/CustomActionCycle.wxs
@@ -1,14 +1,13 @@
1<?xml version="1.0" encoding="utf-8"?> 1<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
2<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
3 <Fragment> 2 <Fragment>
4 <ComponentGroup Id="ProductComponents"> 3 <ComponentGroup Id="ProductComponents">
5 <ComponentGroupRef Id="MinimalComponentGroup" /> 4 <ComponentGroupRef Id="MinimalComponentGroup" />
6 </ComponentGroup> 5 </ComponentGroup>
7 6
8 <Binary Id="Binary1" SourceFile="test.txt" /> 7 <Binary Id="Binary1" SourceFile="test.txt" />
9 <CustomAction Id="Action1" BinaryKey="Binary1" DllEntry="EntryPoint1" /> 8 <CustomAction Id="Action1" DllEntry="EntryPoint1" BinaryRef="Binary1" />
10 <CustomAction Id="Action2" BinaryKey="Binary1" DllEntry="EntryPoint2" /> 9 <CustomAction Id="Action2" DllEntry="EntryPoint2" BinaryRef="Binary1" />
11 <CustomAction Id="Action3" BinaryKey="Binary1" DllEntry="EntryPoint3" /> 10 <CustomAction Id="Action3" DllEntry="EntryPoint3" BinaryRef="Binary1" />
12 11
13 <InstallExecuteSequence> 12 <InstallExecuteSequence>
14 <Custom Action="Action1" After="Action2" /> 13 <Custom Action="Action1" After="Action2" />
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/SimpleCustomAction.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/SimpleCustomAction.wxs
index 72d5e4a5..ff8741cf 100644
--- a/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/SimpleCustomAction.wxs
+++ b/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/SimpleCustomAction.wxs
@@ -1,12 +1,11 @@
1<?xml version="1.0" encoding="utf-8"?> 1<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
2<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
3 <Fragment> 2 <Fragment>
4 <ComponentGroup Id="ProductComponents"> 3 <ComponentGroup Id="ProductComponents">
5 <ComponentGroupRef Id="MinimalComponentGroup" /> 4 <ComponentGroupRef Id="MinimalComponentGroup" />
6 </ComponentGroup> 5 </ComponentGroup>
7 6
8 <Binary Id="Binary1" SourceFile="test.txt" /> 7 <Binary Id="Binary1" SourceFile="test.txt" />
9 <CustomAction Id="Action1" BinaryKey="Binary1" DllEntry="EntryPoint1" /> 8 <CustomAction Id="Action1" DllEntry="EntryPoint1" BinaryRef="Binary1" />
10 9
11 <InstallExecuteSequence> 10 <InstallExecuteSequence>
12 <Custom Action="Action1" After="InstallFiles" /> 11 <Custom Action="Action1" After="InstallFiles" />
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/UnscheduledCustomAction.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/UnscheduledCustomAction.wxs
index 0784824a..f8ce1c38 100644
--- a/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/UnscheduledCustomAction.wxs
+++ b/src/test/WixToolsetTest.CoreIntegration/TestData/CustomAction/UnscheduledCustomAction.wxs
@@ -1,14 +1,13 @@
1<?xml version="1.0" encoding="utf-8"?> 1<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
2<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
3 <Fragment> 2 <Fragment>
4 <ComponentGroup Id="ProductComponents"> 3 <ComponentGroup Id="ProductComponents">
5 <ComponentGroupRef Id="MinimalComponentGroup" /> 4 <ComponentGroupRef Id="MinimalComponentGroup" />
6 </ComponentGroup> 5 </ComponentGroup>
7 6
8 <Binary Id="Binary1" SourceFile="test.txt" /> 7 <Binary Id="Binary1" SourceFile="test.txt" />
9 <CustomAction Id="CustomAction1" BinaryKey="Binary1" DllEntry="InvalidEntryPoint" /> 8 <CustomAction Id="CustomAction1" DllEntry="InvalidEntryPoint" BinaryRef="Binary1" />
10 <CustomAction Id="DiscardOptimismAllBeingsWhoProceed" Error="Abandon hope all ye who enter here." /> 9 <CustomAction Id="DiscardOptimismAllBeingsWhoProceed" Error="Abandon hope all ye who enter here." />
11 <CustomAction Id="CustomActionWithHiddenTarget" BinaryKey="Binary1" DllEntry="InvalidEntryPoint" Execute="deferred" HideTarget="yes" /> 10 <CustomAction Id="CustomActionWithHiddenTarget" DllEntry="InvalidEntryPoint" Execute="deferred" HideTarget="yes" BinaryRef="Binary1" />
12 <CustomAction Id="CustomAction2" Property="TestAdvtExecuteSequenceProperty" Value="1" /> 11 <CustomAction Id="CustomAction2" Property="TestAdvtExecuteSequenceProperty" Value="1" />
13 <AdminExecuteSequence> 12 <AdminExecuteSequence>
14 <Custom Action="CustomAction2" After="CostInitialize" /> 13 <Custom Action="CustomAction2" After="CostInitialize" />
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/Wixipl/Package.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/Wixipl/Package.wxs
index 00a80fca..bf5223c1 100644
--- a/src/test/WixToolsetTest.CoreIntegration/TestData/Wixipl/Package.wxs
+++ b/src/test/WixToolsetTest.CoreIntegration/TestData/Wixipl/Package.wxs
@@ -5,7 +5,7 @@
5 5
6 <MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" /> 6 <MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />
7 7
8 <CustomAction Id="CAFromExtension" BinaryKey="BinFromWir" DllEntry="DoesntExist" /> 8 <CustomAction Id="CAFromExtension" DllEntry="DoesntExist" BinaryRef="BinFromWir" />
9 9
10 <Feature Id="ProductFeature" Title="!(loc.FeatureTitle)"> 10 <Feature Id="ProductFeature" Title="!(loc.FeatureTitle)">
11 <ComponentGroupRef Id="ProductComponents" /> 11 <ComponentGroupRef Id="ProductComponents" />