Fix Component GUID generation
Rob Mensching committed
Jul 13, 2018 at 22:22 UTC
1668381783283633667df0a12bb9b4568a12def2
1 file changed
+1
-1
src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs
+1
-1
@@ -63,7 +63,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
63
{
64
var is64Bit = (componentRow.Attributes & MsiInterop.MsidbComponentAttributes64bit) != 0;
65
var bitness = is64Bit ? "64" : String.Empty;
66
- var regkey = String.Concat(bitness, foundRow[1], "\\", foundRow[2], "\\", foundRow[3]);
66
+ var regkey = String.Concat(bitness, foundRow.AsString(1), "\\", foundRow.AsString(2), "\\", foundRow.AsString(3));
67
componentRow.ComponentId = Uuid.NewUuid(BindDatabaseCommand.WixComponentGuidNamespace, regkey.ToLowerInvariant()).ToString("B").ToUpperInvariant();
68
}
69
}