diff options
author | Rob Mensching <rob@firegiant.com> | 2024-04-25 11:10:50 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2024-04-25 13:31:39 -0700 |
commit | a500693e3c9e94304c8b9a8229203b2b750900aa (patch) | |
tree | e99d90f31e2848a695f47423a440fb63bb9e8dae /src/test/burn/TestData/DependencyTests/BundleB | |
parent | 4983aeeb2da6e96bc8aad698752b3b962f58e585 (diff) | |
download | wix-a500693e3c9e94304c8b9a8229203b2b750900aa.tar.gz wix-a500693e3c9e94304c8b9a8229203b2b750900aa.tar.bz2 wix-a500693e3c9e94304c8b9a8229203b2b750900aa.zip |
Update tests to use TestVersion property instead of generic Version property
The MSBuild Version property is well-known and can be set by standard
processes. That can cause problem in the tests where the version is explicitly
set to validate WiX behaviors. So, we've switched to using the TestVersion
property that will be specific for our testing purposes.
Diffstat (limited to 'src/test/burn/TestData/DependencyTests/BundleB')
3 files changed, 8 insertions, 8 deletions
diff --git a/src/test/burn/TestData/DependencyTests/BundleB/Bundle.wxs b/src/test/burn/TestData/DependencyTests/BundleB/Bundle.wxs index 8d2dce60..3fa90749 100644 --- a/src/test/burn/TestData/DependencyTests/BundleB/Bundle.wxs +++ b/src/test/burn/TestData/DependencyTests/BundleB/Bundle.wxs | |||
@@ -1,12 +1,12 @@ | |||
1 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | 1 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> |
2 | 2 | ||
3 | <?ifndef Version?> | 3 | <?ifndef TestVersion?> |
4 | <?define Version = 1.0.0.0?> | 4 | <?define TestVersion = 1.0.0.0?> |
5 | <?endif?> | 5 | <?endif?> |
6 | 6 | ||
7 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | 7 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> |
8 | <!-- ProviderKey should be the only thing different from the template --> | 8 | <!-- ProviderKey should be the only thing different from the template --> |
9 | <Bundle Name="~$(var.TestGroupName) - $(var.BundleName)" Version="$(var.Version)" UpgradeCode="$(var.UpgradeCode)" Compressed="yes" ProviderKey="WiX.$(var.TestGroupName).$(var.BundleName).B"> | 9 | <Bundle Name="~$(var.TestGroupName) - $(var.BundleName)" Version="$(var.TestVersion)" UpgradeCode="$(var.UpgradeCode)" Compressed="yes" ProviderKey="WiX.$(var.TestGroupName).$(var.BundleName).B"> |
10 | <Log Prefix="~$(var.TestGroupName)_$(var.BundleName)" /> | 10 | <Log Prefix="~$(var.TestGroupName)_$(var.BundleName)" /> |
11 | 11 | ||
12 | <Variable Name="TestGroupName" Value="$(var.TestGroupName)" /> | 12 | <Variable Name="TestGroupName" Value="$(var.TestGroupName)" /> |
diff --git a/src/test/burn/TestData/DependencyTests/BundleB/BundleB.wixproj b/src/test/burn/TestData/DependencyTests/BundleB/BundleB.wixproj index 4a659ab1..afd71646 100644 --- a/src/test/burn/TestData/DependencyTests/BundleB/BundleB.wixproj +++ b/src/test/burn/TestData/DependencyTests/BundleB/BundleB.wixproj | |||
@@ -3,7 +3,7 @@ | |||
3 | <PropertyGroup> | 3 | <PropertyGroup> |
4 | <OutputType>Bundle</OutputType> | 4 | <OutputType>Bundle</OutputType> |
5 | <UpgradeCode>{228859BB-F917-4F43-A1E0-50C8DCCA92EF}</UpgradeCode> | 5 | <UpgradeCode>{228859BB-F917-4F43-A1E0-50C8DCCA92EF}</UpgradeCode> |
6 | <Version>1.0.0.0</Version> | 6 | <TestVersion>1.0.0.0</TestVersion> |
7 | </PropertyGroup> | 7 | </PropertyGroup> |
8 | <ItemGroup> | 8 | <ItemGroup> |
9 | <ProjectReference Include="..\PackageAv1\PackageAv1.wixproj" /> | 9 | <ProjectReference Include="..\PackageAv1\PackageAv1.wixproj" /> |
diff --git a/src/test/burn/TestData/DependencyTests/BundleB/BundleB.wxs b/src/test/burn/TestData/DependencyTests/BundleB/BundleB.wxs index 670a812c..0b5f2c84 100644 --- a/src/test/burn/TestData/DependencyTests/BundleB/BundleB.wxs +++ b/src/test/burn/TestData/DependencyTests/BundleB/BundleB.wxs | |||
@@ -10,11 +10,11 @@ | |||
10 | <MsiPackage Id="PackageA" SourceFile="$(var.PackageAv1.TargetPath)" /> | 10 | <MsiPackage Id="PackageA" SourceFile="$(var.PackageAv1.TargetPath)" /> |
11 | <MsiPackage Id="PackageB" SourceFile="$(var.PackageB.TargetPath)" /> | 11 | <MsiPackage Id="PackageB" SourceFile="$(var.PackageB.TargetPath)" /> |
12 | <ExePackage Id="ExeA" Cache="remove" PerMachine="yes" | 12 | <ExePackage Id="ExeA" Cache="remove" PerMachine="yes" |
13 | DetectCondition="ExeA_Version AND ExeA_Version >= v$(var.Version)" | 13 | DetectCondition="ExeA_Version AND ExeA_Version >= v$(var.TestVersion)" |
14 | InstallArguments="/regw "HKLM\$(var.TestExeRegistryKey),Version,String,$(var.Version)"" | 14 | InstallArguments="/regw "HKLM\$(var.TestExeRegistryKey),Version,String,$(var.TestVersion)"" |
15 | RepairArguments="/regw "HKLM\$(var.TestExeRegistryKey),Version,String,$(var.Version)"" | 15 | RepairArguments="/regw "HKLM\$(var.TestExeRegistryKey),Version,String,$(var.TestVersion)"" |
16 | UninstallArguments="/regd "HKLM\$(var.TestExeRegistryKey),Version""> | 16 | UninstallArguments="/regd "HKLM\$(var.TestExeRegistryKey),Version""> |
17 | <Provides Key="$(var.TestGroupName)_ExeA,v1.0" Version="$(var.Version)" /> | 17 | <Provides Key="$(var.TestGroupName)_ExeA,v1.0" Version="$(var.TestVersion)" /> |
18 | <PayloadGroupRef Id="TestExePayloads" /> | 18 | <PayloadGroupRef Id="TestExePayloads" /> |
19 | </ExePackage> | 19 | </ExePackage> |
20 | </PackageGroup> | 20 | </PackageGroup> |