Skip to content

Commit

Permalink
test: Update Msi tests in the artifact builder to account for the env…
Browse files Browse the repository at this point in the history
…ironment variable changes. (#1907)
  • Loading branch information
nrcventura authored Sep 12, 2023
1 parent 9399c0a commit e0144c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/ArtifactBuilder/Artifacts/MsiInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ private void ValidateWixIisRegistryDefinitions(WixFragmentComponentGroup framewo
throw new PackagingException($@"Product.wxs Framework registryvalue {component.RegistryValue.Name}\{component.RegistryValue.Name} did not have KeyPath set to yes, but was {component.RegistryValue.KeyPath}.");
}

if (component.RegistryValue.MultiStringValue.Count != 3)
if (component.RegistryValue.MultiStringValue.Count != 4)
{
throw new PackagingException($@"Product.wxs Framework registryvalue {component.RegistryValue.Name}\{component.RegistryValue.Name} did not have correct number of string values: expected 3 was {component.RegistryValue.MultiStringValue.Count}.");
throw new PackagingException($@"Product.wxs Framework registryvalue {component.RegistryValue.Name}\{component.RegistryValue.Name} did not have correct number of string values: expected 4 was {component.RegistryValue.MultiStringValue.Count}.");
}

foreach (var value in _frameworkIISRegistryValues)
Expand All @@ -244,9 +244,9 @@ private void ValidateWixIisRegistryDefinitions(WixFragmentComponentGroup framewo
throw new PackagingException($@"Product.wxs Core registryvalue {component.RegistryValue.Name}\{component.RegistryValue.Name} did not have KeyPath set to yes, but was {component.RegistryValue.KeyPath}.");
}

if (component.RegistryValue.MultiStringValue.Count != 4)
if (component.RegistryValue.MultiStringValue.Count != 5)
{
throw new PackagingException($@"Product.wxs Core registryvalue {component.RegistryValue.Name}\{component.RegistryValue.Name} did not have correct number of string values: expected 4 was {component.RegistryValue.MultiStringValue.Count}.");
throw new PackagingException($@"Product.wxs Core registryvalue {component.RegistryValue.Name}\{component.RegistryValue.Name} did not have correct number of string values: expected 5 was {component.RegistryValue.MultiStringValue.Count}.");
}

foreach (var value in _coreIISRegistryValues)
Expand Down

0 comments on commit e0144c4

Please sign in to comment.